function loadCarouselImages(){var $img;$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-1946_3290_8");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("1946_3290_8","","10098","L");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/1946_3290_8-w101-h72-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-3393_7033_14");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("3393_7033_14","","10914","L");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/3393_7033_14-w150-h97-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-1961_3065_8");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("1961_3065_8","","10098","L");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/1961_3065_8-w101-h72-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-3355_6881_14");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("3355_6881_14","","10914","L");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/3355_6881_14-w150-h97-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-1948_2782_8");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("1948_2782_8","","10098","L");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/1948_2782_8-w101-h72-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-3295_6726_14");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("3295_6726_14","","10914","L");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/3295_6726_14-w150-h97-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-2237_2716_8");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("2237_2716_8","","10098","P");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/2237_2716_8-w72-h101-r90.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-3201_6462_14");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("3201_6462_14","","10914","L");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/3201_6462_14-w150-h97-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-3200_6444_14");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("3200_6444_14","","10914","P");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/3200_6444_14-w97-h150-r90.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-1947_3076_8");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("1947_3076_8","","10098","L");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/1947_3076_8-w101-h72-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-3291_6272_14");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("3291_6272_14","","10914","P");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/3291_6272_14-w97-h150-r90.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-2168_2927_8");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("2168_2927_8","","10098","P");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/2168_2927_8-w72-h101-r90.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-3401_6184_14");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("3401_6184_14","","10914","L");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/3401_6184_14-w150-h97-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-1950_2718_8");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("1950_2718_8","","10098","L");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/1950_2718_8-w101-h72-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-1951_3060_14");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("1951_3060_14","","10914","L");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/1951_3060_14-w150-h97-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-1951_2695_8");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("1951_2695_8","","10098","L");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/1951_2695_8-w101-h72-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-2237_3006_14");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("2237_3006_14","","10914","P");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/2237_3006_14-w97-h150-r90.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-1946_2993_14");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("1946_2993_14","","10914","L");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/1946_2993_14-w150-h97-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-1961_2699_14");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("1961_2699_14","","10914","L");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/1961_2699_14-w150-h97-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-3345_7041_14");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("3345_7041_14","","10914","L");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/3345_7041_14-w150-h97-r0.jpg");}var overlayURLByIndex=new Object();var overlayURLIndex=0;var $img2;var $img3;var $img4;function beforeSlideNext(){$("#text-overlay").fadeOut(200,function(){$(this).load(overlayURLByIndex[overlayURLIndex],{},function(){$(this).fadeIn(300);overlayURLIndex++;overlayURLIndex=overlayURLIndex%4;});});}function startCycle(){$("#canvas").cycle({fx:"fade",speed:5000,timeout:200,before:beforeSlideNext});$img2.css({visibility:"visible"});$img3.css({visibility:"visible"});$img4.css({visibility:"visible"});}function loadSlideShowImages(){overlayURLByIndex[0]="/home.product.ProductSplashTextOverlayDiv?productCategoryID=9";overlayURLByIndex[1]="/home.product.ProductSplashTextOverlayDiv?productCategoryID=9";overlayURLByIndex[2]="/home.product.ProductSplashTextOverlayDiv?productCategoryID=9";overlayURLByIndex[3]="/home.product.ProductSplashTextOverlayDiv?productCategoryID=9";$img2=$(new Image());$img3=$(new Image());$img4=$(new Image());$img2.attr("id","img-slideshow-2");$img3.attr("id","img-slideshow-3");$img4.attr("id","img-slideshow-4");$img2.css({visibility:"hidden"});$img3.css({visibility:"hidden"});$img4.css({visibility:"hidden"});function onImg2Loaded(){var $wrapper=$("#canvas");$wrapper.append($img2);$img3.attr("src","/c/i/@producthome/category-seasonal/splash-seasonal-c.jpg");}function onImg3Loaded(){var $wrapper=$("#canvas");$wrapper.append($img3);$img4.attr("src","/c/i/@producthome/category-seasonal/splash-seasonal-d.jpg");}function onImg4Loaded(){startCycle();}function onImg2Error(){$img3.attr("src","/c/i/@producthome/category-seasonal/splash-seasonal-c.jpg");}function onImg3Error(){$img4.attr("src","/c/i/@producthome/category-seasonal/splash-seasonal-d.jpg");}function onImg4Error(){startCycle();}$img2.load(onImg2Loaded);$img2.error(onImg2Error);$img3.load(onImg3Loaded);$img3.error(onImg3Error);$img4.load(onImg4Loaded);$img4.error(onImg4Error);$img2.attr("src","/c/i/@producthome/category-seasonal/splash-seasonal-b.jpg");}var boxy;function hideModalUnfriendly(){if(isOldIE()){}}function showModalUnfriendly(){if(isOldIE()){}}function newBoxy(url,options){options=options||{};var ajax={url:url,type:"GET",dataType:"html",cache:false,success:function(html){html=jQuery(html);if(options.filter){html=jQuery(options.filter,html);}boxy=new Boxy(html,options);boxy.center();}};jQuery.each(["type","cache"],function(){if(this in options){ajax[this]=options[this];delete options[this];}});jQuery.ajax(ajax);}function afterShow(){$(document).keypress(function(e){if(e.keyCode==27){hidePopup();}});}function hidePopup(){if(boxy!=undefined){boxy.hideAndUnload();}showModalUnfriendly();}function showMorePricing(productCategoryID,documentTypeID){newBoxy("/home.product.PricingDiv?productCategoryID="+productCategoryID+"&documentTypeID="+documentTypeID,{modal:true,afterShow:afterShow});}function onCarouselItemStart(id,orientation){$.post("/a/editdocument/checkForFreeDesign",{catalogItemID:catalogItemID},function(){$(document).attr("location","/a/EditDocument/openCopy?catalogItemID="+id+"&catalogItemOrientation="+orientation);});}function onCarouselItemMore(id,industryCategoryMnemonic,productCategoryID,orientation){$.post("/a/home/startCatalog",{productCategoryID:productCategoryID,catalogItemID:id,orientation:orientation},function(){$(document).attr("location","/catalog");});}$("document").ready(function(){loadSlideShowImages();$("#canvas").css({visibility:"visible"});loadCarouselImages();});