function RadRotator(O,o,ScrollDirection){var I=window[O]; if (I && typeof(I.Dispose)=="funct\x69\x6f\x6e"){I.Dispose(); } this.ClientID=O; this.SmoothScrollDelay=10; this.A=document.getElementById(O+"_Div"); this.U=document.getElementById(O+"_FrameConta\x69\x6eer"); if (o){ this.o=o; }else { this.o=1; } this.U.style.top="0px"; this.U.style.left="0px"; this.CurrentFrame=0; var Z=this ; this.A.RadResize=this.A.RadShow= function (){Z.FixHeight(); Z.Start(); };this.z= function (e){Z.W(e); } ; this.w= function (e){Z.V(e); } ; this.v= function (e){Z.OnMouseOver(e); } ; this.T= function (e){Z.OnMouseOut(e); } ; this.t= function (){Z.Start(); } ; this.S(this.A,"m\x6f\x75seent\x65\x72",this.z); this.S(this.A,"mou\x73\x65leave",this.w); this.S(this.A,"mouseover",this.v); this.S(this.A,"\x6douseout",this.T); this.S(window,"\x6coad",this.t); this.R= function (){Z.Dispose(); } ; this.S(window,"\x75nload",Z.R); } ; RadRotator.prototype.Dispose= function (){ this.r= true; try { this.Q(window,"unload",this.R); this.R=null; this.P(); this.Q(this.A,"mous\x65\x65nter",this.z); this.z=null; this.Q(this.A,"\x6d\x6fuselea\x76\x65",this.w); this.w=null; this.Q(this.A,"mouseove\x72",this.v); this.v=null; this.Q(this.A,"\x6douseo\x75\x74",this.T); this.T=null; this.Q(window,"\x6coad",this.t); this.t=null; this.A=null; this.U=null; }catch (N){}};RadRotator.prototype.attachEvent= function (n,M){var m=this.L(M); var l= function (K,k){return m(K,k); };this[n+"\x48andl\x65\x72"]=l; } ; RadRotator.prototype.L= function (J){var l= function (K,k){} ; if (typeof(J).toString().toLowerCase()=="\x66unctio\x6e"){l=J; }else if (typeof(J).toString().toLowerCase()=="stri\x6e\x67"){try {l=eval(J);}catch (N){}}return l; };RadRotator.prototype.FireOnClientFrameChanging= function (K){if (this.OnClientFrameChangingHandler!=null){var l=this.OnClientFrameChangingHandler; return l(this, {} ); }};RadRotator.prototype.FireOnClientFrameChanged= function (K){ this.H(); var Z=this ; if (this.RotatorMode.toLowerCase()=="scroll"){window.clearTimeout(this.h); this.h=0; this.h=window.setTimeout( function (){Z.G();} ,this.FrameTimeout); }if (this.RotatorMode.toLowerCase()=="\x73lidesh\x6f\x77"){window.clearTimeout(this.g); this.g=0; this.g=window.setTimeout( function (){Z.F();} ,this.FrameTimeout); }if (this.OnClientFrameChangedHandler!=null){var l=this.OnClientFrameChangedHandler; return l(this, {} ); }};RadRotator.prototype.f= function (max){return parseInt(((max*Math.random())%max)); } ; RadRotator.prototype.D= function (d){if (d){ this.C= true; }else { this.C= false; }} ; RadRotator.prototype.S= function (c,n,M){try {if (c.attachEvent){c.attachEvent("\x6f\x6e"+n,M); }else {c.addEventListener(n,M, true); }}catch (N){}} ; RadRotator.prototype.Q= function (c,n,M){if (c==null || n==null || M==null)return; try {if (c.detachEvent){c.detachEvent("\x6fn"+n,M); }else {c.removeEventListener(n,M, true); }}catch (N){}} ; RadRotator.prototype.W= function (e){if (!this.AutoAdvance){return; }if (this.PauseOnMouseOver){ this.D( true); }};RadRotator.prototype.V= function (){if (!this.AutoAdvance){return; }if (this.PauseOnMouseOver){ this.D( false); }} ; RadRotator.prototype.OnMouseOver= function (){if (!this.AutoAdvance){return; }if (document.all && !window.opera){return; }if (this.PauseOnMouseOver){ this.D( true); }} ; RadRotator.prototype.OnMouseOut= function (){if (!this.AutoAdvance){return; }if (document.all && !window.opera){return; }if (this.PauseOnMouseOver){ this.D( false); }} ; RadRotator.prototype.B= function (id){var o0="\x5f_\x64\x6fPostB\x61\x63k(\x27"+this.O0+"\047\054\047"+id+"\x27\051"; eval(o0); return; } ; RadRotator.prototype.StartRotator= function (){ this.l0= false; if (this.i0==0){return; } this.i0=0; this.AutoAdvance=1; if (this.RotatorMode.toLowerCase()=="scrol\x6c"){ this.G(); }else { this.F(); }} ; RadRotator.prototype.StopRotator= function (){if (this.RotatorMode.toLowerCase()=="\x73croll"){ this.I0(); }else { this.o1(); }} ; RadRotator.prototype.o1= function (){ this.i0=1; this.AutoAdvance=0; } ; RadRotator.prototype.I0= function (){ this.i0=1; this.AutoAdvance=0; } ; RadRotator.prototype.Start= function (){if (this.r== true)return; if (this.A.offsetWidth==0){return; } this.FixHeight(); this.H(); if (this.RotatorMode!=null && this.RotatorMode.toLowerCase()=="\x73\x63roll"){ this.O1(); var Z=this ; window.clearTimeout(this.h); this.h=window.setTimeout( function (){Z.G();} ,this.FrameTimeout); }if (this.RotatorMode!=null && this.RotatorMode.toLowerCase()=="\x73lideshow"){var Z=this ; window.clearTimeout(this.g); if (this.UseRandomSlide){Z.F(); }else { this.g=window.setTimeout( function (){Z.F();} ,this.FrameTimeout); }}} ; RadRotator.prototype.H= function (){if (this.r== true)return; if (this.HasTickers){ this.ResetTickers(); var l1=this.FrameIdArray; var i1=I1(this.A); for (var i=0; i0){width=this.A.offsetWidth; }else {width=this.A.style.width; }if (parseInt(this.A.offsetHeight)>0){height=this.A.offsetHeight; }else {height=this.A.style.height; }if (this.RotatorMode.toLowerCase()=="\x73croll" && (this.ScrollDirection.toLowerCase()=="\x6ceft" || this.ScrollDirection.toLowerCase()=="right")){ this.i2=parseInt(width)/this.o; this.I2=parseInt(height); this.U.style.width=(this.i2*this.NumberOfFrames)+"px"; }if (this.RotatorMode.toLowerCase()=="\x73croll" && (this.ScrollDirection.toLowerCase()=="\x75p" || this.ScrollDirection.toLowerCase()=="\x64\x6fwn")){ this.i2=parseInt(width); this.I2=parseInt(height)/this.o; this.U.style.height=(this.I2*this.NumberOfFrames)+"\x70x"; }if (this.RotatorMode.toLowerCase()=="\x73lideshow"){ this.i2=parseInt(width); this.I2=parseInt(height); }var l1=this.FrameIdArray; for (var i=0; ithis.i2*(-1)){ this.l3= true; if (!this.UseSmoothScroll){ this.U.style.left=(parseInt(this.U.style.left)-1)+"\x70x"; }else {var i3=(this.i2*(-1)-parseInt(this.U.style.left))/this.SmoothScrollDelay; this.U.style.left=(parseInt(this.U.style.left)+i3-1)+"\x70x"; }var Z=this ; this.O3=0; this.O3=window.setTimeout( function (){Z.ScrollLeftNextFrame();} ,this.ScrollSpeed); }else {var I3=this.U.firstChild.firstChild.firstChild; this.U.firstChild.firstChild.removeChild(this.U.firstChild.firstChild.firstChild); this.U.firstChild.firstChild.appendChild(I3); this.U.style.left="\x30px"; this.CurrentFrame=(this.CurrentFrame+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); this.l3= false; }} ; RadRotator.prototype.ScrollRightNextFrame= function (){if (this.r== true)return; if (this.RotatorMode.toLowerCase()!="\x73\x63roll"){alert("\x44\x6f not c\x61\x6cl t\x68\x69s \x66\x75nct\x69\x6fn \x77\x68e\x6e rota\x74\x6fr \x69\163\x20\151n\x20slide\x73how m\x6fde!"); return; }if (this.ScrollDirection.toLowerCase()=="\x75\x70" || this.ScrollDirection.toLowerCase()=="down"){alert("Do\x20\x6eot call\x20\164h\x69\x73 f\x75\x6ecti\x6f\x6e w\x68\x65n \x72otator\x20is in \x76ertica\x6c scro\x6cling \x6dode!"); return; }if (this.l0){return; }if (this.C){var Z=this ; this.O3=0; this.O3=window.setTimeout( function (){Z.ScrollRightNextFrame();} ,this.ScrollSpeed);return; }if (parseInt(this.U.style.left)this.I2*(-1)){ this.l3= true; if (!this.UseSmoothScroll){ this.U.style.top=(parseInt(this.U.style.top)-1)+"\160\x78"; }else {var i3=(this.I2*(-1)-parseInt(this.U.style.top))/this.SmoothScrollDelay; this.U.style.top=(parseInt(this.U.style.top)+i3-1)+"\x70\x78"; }var Z=this ; this.O3=0; this.O3=window.setTimeout( function (){Z.ScrollUpNextFrame();} ,this.ScrollSpeed); }else {try {var I3=this.U.firstChild; this.U.removeChild(this.U.firstChild); this.U.appendChild(I3); this.U.style.top="\x30px"; this.CurrentFrame=(this.CurrentFrame+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); this.l3= false; }catch (e){alert(e); }}} ; function o4(left,top,width,height){ this.left=(null!=left?left: 0); this.top=(null!=top?top: 0); this.width=(null!=width?width: 0); this.height=(null!=height?height: 0); this.right=left+width; this.bottom=top+height; } ; o4.prototype.O4= function (){return new o4(this.left,this.top,this.width,this.height); } ; o4.prototype.l4= function (x,y){return (this.left<=x && x<=(this.left+this.width) && this.top<=y && y<=(this.top+this.height)); } ; o4.prototype.l2= function (i4){if (null==i4){return false; }if (this ==i4){return true; }return (i4.leftthis.left && i4.bottom>this.top); } ; o4.prototype.I4= function (i4){if (null==i4){return false; }if (this ==i4){return this.O4(); }if (!this.l2(i4)){return new o4(); }var left=Math.max(this.left,i4.left); var top=Math.max(this.top,i4.top); var right=Math.min(this.right,i4.right); var bottom=Math.min(this.bottom,i4.bottom); return new o4(left,right,right-left,bottom-top); } ; RadRotator.prototype.P= function (){window.clearTimeout(this.h); window.clearTimeout(this.g); window.clearTimeout(this.O3); } ; function I1(c){if (!c){c=this ; }var left=0; var top=0; var width=c.offsetWidth; var height=c.offsetHeight; while (c.offsetParent){left+=c.offsetLeft; top+=c.offsetTop; c=c.offsetParent; }if (c.x){left=c.x; }if (c.y){top=c.y; }return new o4(left,top,width,height); } ; if (typeof(Sys) != "undefined"){if (Sys.Application != null && Sys.Application.notifyScriptLoaded != null){Sys.Application.notifyScriptLoaded();}}if (typeof(Sys) != "undefined"){if (Sys.Application != null && Sys.Application.notifyScriptLoaded != null){Sys.Application.notifyScriptLoaded();}}