SplashPage=new Class({Implements:[Chain,Events,Options],eLoader:null,eGallery:null,oGallery:null,numSlidesPlayed:0,imageData:null,options:{baseURLs:["content/custom-screens/splash/"],maxWidth:0,maxHeight:0,startOn:0,iDelay:4500,fitToScreen:false,loadImageAsABackground:false,center:true,autoAdvance:true,autoEnterSite:true},initialize:function(a,c){this.setOptions(c);this.eLoader=this.buildLoader().inject($(document.body));this.eLoader.fireEvent("show");if(a){this.imageData=a.gallery;if(this.eGallery=
$("gallery")){if(this.imageData.length<=1)this.options.autoAdvance=false;var b=this;this.oGallery=new LG_gallery(this.eGallery,this.imageData,{startIndex:this.options.startOn,onNew:this.options.autoEnterSite?function(d){b.checkForGalleryEnd(d)}:$empty,baseURLs:this.options.baseURLs,delay:this.options.iDelay,autoAdvance:this.options.autoAdvance,loader:this.eLoader,center:this.options.center,sizeAdjustment:0,fitToScreen:this.options.fitToScreen,maxWidth:this.options.maxWidth,maxHeight:this.options.maxHeight,
loadImageAsABackground:this.options.loadImageAsABackground});if(this.options.fitToScreen){window.onresize=function(){b.fitGalleryToWindow()};$(body).onorientationchange=function(){b.fitGalleryToWindow()}}}}},checkForGalleryEnd:function(){++this.numSlidesPlayed>this.imageData.length&&this.enterMainSite()},fitGalleryToWindow:function(){this.oGallery.onOrientationChange()},enterMainSite:function(){document.location="/index.php"},buildLoader:function(){var a=new Element("div",{id:"dataloader",html:'<div class="animation"><div class="spinner"><div class="bar1"></div><div class="bar2"></div><div class="bar3"></div><div class="bar4"></div><div class="bar5"></div><div class="bar6"></div><div class="bar7"></div><div class="bar8"></div><div class="bar9"></div><div class="bar10"></div><div class="bar11"></div><div class="bar12"></div></div></div>',
style:"display:none"});a.set("events",{hide:function(){a.removeClass("op-in");a.addClass("op-out");a.store("isShown",false)},show:function(){a.store("isShown",true);a.setStyle("display","block");a.removeClass("op-out");a.addClass("op-in")}});return a}});
