function loadCarouselImages(){var $img;$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-1628_992_26");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("1628_992_26","","11026","P");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/1628_992_26-w115-h150-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-4412_8247_26");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("4412_8247_26","","11026","P");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/4412_8247_26-w115-h150-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-4338_8193_26");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("4338_8193_26","","11026","P");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/4338_8193_26-w115-h150-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-4276_8183_26");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("4276_8183_26","","11026","P");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/4276_8183_26-w115-h150-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-3716_8126_26");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("3716_8126_26","","11026","P");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/3716_8126_26-w115-h150-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-3713_8085_26");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("3713_8085_26","","11026","P");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/3713_8085_26-w115-h150-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-4020_8072_26");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("4020_8072_26","","11026","P");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/4020_8072_26-w115-h150-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-4321_7994_26");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("4321_7994_26","","11026","P");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/4321_7994_26-w115-h150-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-3582_7989_26");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("3582_7989_26","","11026","P");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/3582_7989_26-w115-h150-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-4000_7954_26");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("4000_7954_26","","11026","P");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/4000_7954_26-w115-h150-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-4150_7945_26");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("4150_7945_26","","11026","P");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/4150_7945_26-w115-h150-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-3741_7917_26");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("3741_7917_26","","11026","P");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/3741_7917_26-w115-h150-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-4145_7908_26");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("4145_7908_26","","11026","P");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/4145_7908_26-w115-h150-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-3462_7882_26");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("3462_7882_26","","11026","P");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/3462_7882_26-w115-h150-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-4325_7849_26");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("4325_7849_26","","11026","P");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/4325_7849_26-w115-h150-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-3822_7776_26");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("3822_7776_26","","11026","P");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/3822_7776_26-w115-h150-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-4119_7702_26");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("4119_7702_26","","11026","P");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/4119_7702_26-w115-h150-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-3529_7692_26");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("3529_7692_26","","11026","P");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/3529_7692_26-w115-h150-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-4048_7687_26");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("4048_7687_26","","11026","P");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/4048_7687_26-w115-h150-r0.jpg");$img=$(new Image());$img.load(function(){var $wrapper=$("#carousel-item-wrapper-3582_7686_26");$(this).css({cursor:"pointer"});$(this).click(function(){onCarouselItemMore("3582_7686_26","","11026","P");});$(this).hide();$wrapper.append(this);$(this).fadeIn(500);});$img.attr("src","/c/i/productcarousel/featured/3582_7686_26-w115-h150-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=10";overlayURLByIndex[1]="/home.product.ProductSplashTextOverlayDiv?productCategoryID=10";overlayURLByIndex[2]="/home.product.ProductSplashTextOverlayDiv?productCategoryID=10";overlayURLByIndex[3]="/home.product.ProductSplashTextOverlayDiv?productCategoryID=10";$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-letterhead/splash-letterhead-c.jpg");}function onImg3Loaded(){var $wrapper=$("#canvas");$wrapper.append($img3);$img4.attr("src","/c/i/@producthome/category-letterhead/splash-letterhead-d.jpg");}function onImg4Loaded(){startCycle();}function onImg2Error(){$img3.attr("src","/c/i/@producthome/category-letterhead/splash-letterhead-c.jpg");}function onImg3Error(){$img4.attr("src","/c/i/@producthome/category-letterhead/splash-letterhead-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-letterhead/splash-letterhead-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();});