var divRotator={delay:"5000",fadeSpeed:"250",parentDiv:"#rotate-promos",pauseOnHover:true,nodeList:null,currentDiv:0,timerEvent:"",rotate:function(){divRotator.nodeList.eq(divRotator.currentDiv).fadeOut(divRotator.fadeSpeed,function(){if((divRotator.currentDiv+1)<divRotator.nodeList.length){divRotator.currentDiv++;}else{divRotator.currentDiv=0;}jQuery(divRotator.nodeList.eq(divRotator.currentDiv)).css({opacity:""}).fadeIn(divRotator.fadeSpeed);});},begin:function(){divRotator.nodeList=jQuery(divRotator.parentDiv).children("div");divRotator.timerEvent=setInterval(divRotator.rotate,divRotator.delay);if(divRotator.pauseOnHover==true){jQuery(divRotator.parentDiv).mouseenter(function(){clearInterval(divRotator.timerEvent);}).mouseleave(function(){divRotator.timerEvent=setInterval(divRotator.rotate,divRotator.delay);});}}};var divRotatorLarge={Delay:"7000",fadespeed:"500",parentdiv:"#large-promo",pauseonhover:true,nodelist:null,currentdiv:0,timerevent:"",rotate:function(){divRotatorLarge.nodelist.eq(divRotatorLarge.currentdiv).fadeOut(divRotatorLarge.fadespeed,function(){if((divRotatorLarge.currentdiv+1)<divRotatorLarge.nodelist.length){divRotatorLarge.currentdiv++;}else{divRotatorLarge.currentdiv=0;}jQuery(divRotatorLarge.nodelist.eq(divRotatorLarge.currentdiv)).css({opacity:""}).fadeIn(divRotatorLarge.fadespeed);});},begin:function(){divRotatorLarge.nodelist=jQuery(divRotatorLarge.parentdiv).children("div");divRotatorLarge.timerevent=setInterval(divRotatorLarge.rotate,divRotatorLarge.Delay);if(divRotatorLarge.pauseonhover==true){jQuery(divRotatorLarge.parentdiv).mouseenter(function(){clearInterval(divRotatorLarge.timerevent);}).mouseleave(function(){divRotatorLarge.timerevent=setInterval(divRotatorLarge.rotate,divRotatorLarge.Delay);});}}};
