var activeHover;var noHover=false;window.addEvent("domready",function(){if($("carousel")){var duration=500,tab=new Carousel.Extra({container:"carousel",scroll:3,circular:true,current:0,distance:1,previous:null,next:$("nextbtn"),previous:$("prevbtn"),mode:"horizontal",onChange:function(index){},fx:{duration:duration,onStart:function(){noHover=true;if(activeHover){activeHover.setStyle("dispay","none");}},onComplete:function(){noHover=false;}},interval:8,delay:12});$("carouselwindow").addEvent("mouseenter",function(){tab.stop();
});$("carouselwindow").addEvent("mouseleave",function(){tab.start();if(activeHover){hideHover(activeHover);}});}var showHover=function(el){el.setStyle("display","block");if(!Browser.Engines.trident()){if(!el.fx){el.fx=new Fx.Tween(el,{duration:100,link:"cancel"});}el.fx.start("opacity",0,1);}};if($$(".kid")){new HoverIntent({elements:$$(".kid"),outElements:$$(".kidinfo"),mouseIn:function(){if(noHover){return;}var hover=$("hover"+this.get("id"));var coords=this.getElement("img").getPosition($("content"));
hover.setStyle("top",(coords.y-34)+"px");hover.setStyle("left",(coords.x-35)+"px");showHover(hover);var hoverBlock=hover.getElement(".kidinfo");var fn=function(){hideHover(this);activeHover=false;hoverBlock.removeEvents("mouseleave");}.bind(hover);hoverBlock.addEvent("mouseleave",fn);},mouseOut:function(){}});}var hideHover=function(el){if(Browser.Engines.trident()){el.setStyle("display","none");}else{if(!el.fx){el.fx=new Fx.Tween(el,{duration:100,link:"cancel"});}el.fx.start("opacity",1,0);}};if(Browser.Engines.trident()){$$("a.btn").each(function(el){el.addEvent("onfocus",function(){alert(1);
this.addClass("active");});});}});
