window.DSG=window.DSG||{};window.DSG.initCarousels=function(){var $essential=$j("#col-main div.box-essential div.box-content");var $collections=$j("#col-main div.box-collections div.box-content");var $carousels=$essential.add($collections);var sEssentialItemLength=$essential.find("ul li").length;var sCollectionItemLength=$collections.find("ul li").length;if(sEssentialItemLength>1){$essential.carousel({autoSlide:true,autoSlideInterval:10000,effect:"fade",animSpeed:1000,loop:true});}
if(sCollectionItemLength>1){$collections.carousel({effect:"fade",animSpeed:1000});}
$carousels.find("ul li").each(function(){var $this=$j(this);var $link=$this.find("p.label a").attr("href");if(!$this.find(">:first").is("object")){$this.find(">:first").wrap("<a href="+$link+"></a>");}}).parents("div.box-content").each(function(){var carouselTimeOut=0;var $this=$j(this);var $labels=$this.find("ul li p.label");$this.hover(function(){window.clearTimeout(carouselTimeOut);carouselTimeOut=window.setTimeout(function(){$labels.css({height:"0",opacity:"0"}).show().stop().animate({height:"39px",opacity:".7"},300,function(){$j(this).parents("div.box-content").find("span.carousel-control").show();});},300);},function(){window.clearTimeout(carouselTimeOut);carouselTimeOut=window.setTimeout(function(){$this.find("span.carousel-control").hide();$labels.stop().animate({height:"0",opacity:"0"},300,function(){$labels.hide()});},300);});});$carousels.find("ul li p.label").add("span.carousel-control").hide();};window.DSG.initPushProducts=function(){$j("#col-main dl.box-product-push dd").simplelabel();};