var revision2_Screen=function(){revision2_Screen.superclass.constructor.apply(this,arguments)};YAHOO.lang.extend(revision2_Screen,AviarcWidget,{startup:function(){this.newTimer=this.attributes.timerVersion&&this.attributes.timerVersion==="2"},_notifyPageLoaded:function(){this.raiseEvent("onPageLoad",{widget:this})},getTimerDiv:function(){if(!this.timerDiv){this.timerDiv=document.getElementById(this.getName()+":timer")}return this.timerDiv},resize:function(B,A){},showTimer:function(){var E=this;var G=this.getTimerDiv();var F=YAHOO.util.Dom;if(this.newTimer){var C=document.getElementById(this.name+":timer-container");var A=[F.getViewportWidth(),F.getViewportHeight()];C.style[aviarc_kWidth]=A[0]+aviarc_kPx;C.style[aviarc_kHeight]=A[1]+aviarc_kPx;F.removeClass(C,"display-none");F.removeClass(G,"display-none");var D=YAHOO.util.Dom.getRegion(G);D.width=D.right-D.left;D.height=D.bottom-D.top;G.style[aviarc_kTop]=(A[1]-D.width)/2+aviarc_kPx;G.style[aviarc_kLeft]=(A[0]-D.height)/2+aviarc_kPx;F.removeClass(G,"invisible");var B=0;this.timerAnimator=setInterval(function(){G.style.backgroundPosition=B+"px -0px";B=(B-D.width)%(parseInt(E.attributes.timerFrames,10)*D.width)},125)}else{var E=this;YAHOO.util.Dom.addClass(document.body,"wait-cursor");setTimeout(function(){YAHOO.util.Dom.removeClass(E.getTimerDiv(),"revision2__screen-timer-hidden");YAHOO.util.Dom.addClass(E.getContainerDiv(),"revision2__screen-content-busy")},250)}},hideTimer:function(){var D=this.getTimerDiv();var C=YAHOO.util.Dom;if(this.newTimer){var A=document.getElementById(this.name+":timer-container");C.addClass(A,"display-none");C.addClass(D,"display-none");clearInterval(this.timerAnimator)}else{var B=this;YAHOO.util.Dom.removeClass(document.body,"wait-cursor");setTimeout(function(){YAHOO.util.Dom.addClass(B.getTimerDiv(),"revision2__screen-timer-hidden");YAHOO.util.Dom.removeClass(B.getContainerDiv(),"revision2__screen-content-busy")},250)}}});
