if(typeof Secondsight==="undefined"){Secondsight={};}Secondsight.ImageRotator=function(a){return(function(g){var j=$("#pageHeading div.image").eq(0),i=null,f=0,c=null,e=null,d=$.extend(true,{},Secondsight.ImageRotator.defaults);function b(){e=setTimeout(function(){e=null;c.eq(f).css("z-index","1").fadeOut(d.fadeOutSpeed);f++;if(f>=c.length){f=0;}c.eq(f).css("z-index","2").fadeIn(d.fadeInSpeed,function(){b();});},d.delay);}function h(){i.each(function(l){var k=$("<p></p>");if(l>0){k.hide().css("z-index","1").appendTo(j);this.appendTo(k);}});c=j.children("p");if(c.length>1){f=0;b();}}i=new Abl.UI.ImagePreLoader({onComplete:function(){h();}});i.loadImages(g);$(window).unload(function(){if(i){i.dispose();}if(e){clearTimeout(e);}});}(a));};Secondsight.ImageRotator.defaults={delay:8000,fadeInSpeed:3000,fadeOutSpeed:3000};
