Press ESC to exit<\/div>").appendTo($("body")).delay(2e3).animate({opacity:0},500,function(){$(this).remove()}))},zoomOut:function(){$(".exit-message").hide();$(".thumbnails").fadeIn();$(".made").fadeIn();$(".zoom-icon").removeClass("zoom-icon-out").addClass("zoom-icon-in");setTimeout(function(){$(".magazine").addClass("animated").removeClass("zoom-in");resizeViewport()},0)}}});$(document).keydown(function(n){switch(n.keyCode){case 37:$(".magazine").turn("previous");n.preventDefault();break;case 39:$(".magazine").turn("next");n.preventDefault();break;case 27:$(".magazine-viewport").zoom("zoomOut");n.preventDefault()}});Hash.on("^page/([0-9]*)$",{yep:function(n,t){var i=t[1];i!==undefined&&$(".magazine").turn("is")&&$(".magazine").turn("page",i)},nop:function(){$(".magazine").turn("is")&&$(".magazine").turn("page",1)}});$(window).resize(function(){resizeViewport()}).bind("orientationchange",function(){resizeViewport()});$(".thumbnails").click(function(n){var t;n.target&&(t=/page-([0-9]+)/.exec($(n.target).attr("class")))&&$(".magazine").turn("page",t[1])});$(".thumbnails li").bind($.mouseEvents.over,function(){$(this).addClass("thumb-hover")}).bind($.mouseEvents.out,function(){$(this).removeClass("thumb-hover")});$.isTouch?$(".thumbnails").addClass("thumbanils-touch").bind($.mouseEvents.move,function(n){n.preventDefault()}):$(".thumbnails ul").mouseover(function(){$(".thumbnails").addClass("thumbnails-hover")}).mousedown(function(){return!1}).mouseout(function(){$(".thumbnails").removeClass("thumbnails-hover")});$.isTouch?$(".magazine").bind("touchstart",regionClick):$(".magazine").click(regionClick);$(".next-button").bind($.mouseEvents.over,function(){$(this).addClass("next-button-hover")}).bind($.mouseEvents.out,function(){$(this).removeClass("next-button-hover")}).bind($.mouseEvents.down,function(){$(this).addClass("next-button-down")}).bind($.mouseEvents.up,function(){$(this).removeClass("next-button-down")}).click(function(){$(".magazine").turn("next")});$(".previous-button").bind($.mouseEvents.over,function(){$(this).addClass("previous-button-hover")}).bind($.mouseEvents.out,function(){$(this).removeClass("previous-button-hover")}).bind($.mouseEvents.down,function(){$(this).addClass("previous-button-down")}).bind($.mouseEvents.up,function(){$(this).removeClass("previous-button-down")}).click(function(){$(".magazine").turn("previous")});resizeViewport();$(".magazine").addClass("animated")}function loadMagazine(){$("#flipbook").turn({width:400,height:300,autoCenter:!0})}function loadProductPage(n,t){$("#catalog-page-"+n).children().clone().appendTo(t);t.find(".loader").remove()}function addPageMagazine(n,t){var r=t.turn("pages"),i=$("
",{});t.turn("addPage",i,n)&&(i.html('
<\/div>
<\/div>'),loadProductPage(n,i))}$(".zoom-icon").bind("mouseover",function(){$(this).hasClass("zoom-icon-in")&&$(this).addClass("zoom-icon-in-hover");$(this).hasClass("zoom-icon-out")&&$(this).addClass("zoom-icon-out-hover")}).bind("mouseout",function(){$(this).hasClass("zoom-icon-in")&&$(this).removeClass("zoom-icon-in-hover");$(this).hasClass("zoom-icon-out")&&$(this).removeClass("zoom-icon-out-hover")}).bind("click",function(){$(this).hasClass("zoom-icon-in")?$(".magazine-viewport").zoom("zoomIn"):$(this).hasClass("zoom-icon-out")&&$(".magazine-viewport").zoom("zoomOut")});$("#canvas").hide();var divProd="";yepnope({test:Modernizr.csstransforms,yep:["/Plugins/NopStation.FlipBook/Contents/lib/turn.js"],nope:["/Plugins/NopStation.FlipBook/Contents/lib/turn.html4.min.js"],both:["/Plugins/NopStation.FlipBook/Contents/lib/zoom.min.js","/Plugins/NopStation.FlipBook/Contents/js/magazine.js","/Plugins/NopStation.FlipBook/Contents/styles/magazine.css"],complete:loadApp})