function RadRotator(O,o,ScrollDirection){ this.ClientID=O; this.SmoothScrollDelay=10; this.I=document.getElementById(O+"_\x44\x69v"); this.A=document.getElementById(O+"\137\x46\x72ameC\x6f\x6etai\x6e\x65r"); if (o){ this.o=o; }else { this.o=1; } this.A.style.top="\x30px"; this.A.style.left="0px"; this.CurrentFrame=0; var U=this ; this.Z= function (e){U.z(e); } ; this.W= function (e){U.w(e); } ; this.V= function (e){U.OnMouseOver(e); } ; this.v= function (e){U.OnMouseOut(e); } ; this.T= function (){U.Start(); } ; this.t(this.I,"mouseen\x74\x65r",this.Z); this.t(this.I,"mou\x73\x65leave",this.W); this.t(this.I,"mouseov\x65\x72",this.V); this.t(this.I,"mouseout",this.v); this.t(window,"\x6c\157ad",this.T); var S=window[O]; if (S){S.R(); }} ; RadRotator.prototype.attachEvent= function (r,Q){var P=this.N(Q); var n= function (M,m){return P(M,m); };this[r+"Handler"]=n; } ; RadRotator.prototype.N= function (L){var n= function (M,m){} ; if (typeof(L).toString().toLowerCase()=="\x66\x75nction"){n=L; }else if (typeof(L).toString().toLowerCase()=="\x73tring"){try {n=eval(L);}catch (l){}}return n; };RadRotator.prototype.FireOnClientFrameChanging= function (M){if (this.OnClientFrameChangingHandler!=null){var n=this.OnClientFrameChangingHandler; return n(this, {} ); }};RadRotator.prototype.FireOnClientFrameChanged= function (M){ this.K(); var U=this ; if (this.RotatorMode.toLowerCase()=="scrol\x6c"){window.clearTimeout(this.k); this.k=0; this.k=window.setTimeout( function (){U.J();} ,this.FrameTimeout); }if (this.RotatorMode.toLowerCase()=="\x73lideshow"){window.clearTimeout(this.H); this.H=0; this.H=window.setTimeout( function (){U.h();} ,this.FrameTimeout); }if (this.OnClientFrameChangedHandler!=null){var n=this.OnClientFrameChangedHandler; return n(this, {} ); }};RadRotator.prototype.G= function (max){return parseInt(((max*Math.random())%max)); } ; RadRotator.prototype.g= function (F){if (F){ this.f= true; }else { this.f= false; }} ; RadRotator.prototype.t= function (D,r,Q){try {if (document.all){D.attachEvent("o\x6e"+r,Q); }else {D.addEventListener(r,Q, true); }}catch (l){}} ; RadRotator.prototype.z= function (e){if (!this.AutoAdvance){return; }if (this.PauseOnMouseOver){ this.g( true); }};RadRotator.prototype.w= function (){if (!this.AutoAdvance){return; }if (this.PauseOnMouseOver){ this.g( false); }} ; RadRotator.prototype.OnMouseOver= function (){if (!this.AutoAdvance){return; }if (document.all && !window.opera){return; }if (this.PauseOnMouseOver){ this.g( true); }} ; RadRotator.prototype.OnMouseOut= function (){if (!this.AutoAdvance){return; }if (document.all && !window.opera){return; }if (this.PauseOnMouseOver){ this.g( false); }} ; RadRotator.prototype.d= function (id){var C="__doPo\x73tBack(\047"+this.c+"\047\x2c\x27"+id+"\047\x29"; eval(C); return; } ; RadRotator.prototype.StartRotator= function (){ this.B= false; if (this.o0==0){return; } this.o0=0; this.AutoAdvance=1; if (this.RotatorMode.toLowerCase()=="scr\x6f\x6cl"){ this.J(); }else { this.h(); }} ; RadRotator.prototype.StopRotator= function (){if (this.RotatorMode.toLowerCase()=="scroll"){ this.O0(); }else { this.l0(); }} ; RadRotator.prototype.l0= function (){ this.o0=1; this.AutoAdvance=0; } ; RadRotator.prototype.O0= function (){ this.o0=1; this.AutoAdvance=0; } ; RadRotator.prototype.Start= function (){if (this.I.offsetWidth==0){return; } this.FixHeight(); this.K(); if (this.RotatorMode!=null && this.RotatorMode.toLowerCase()=="scroll"){ this.i0(); var U=this ; window.clearTimeout(this.k); this.k=window.setTimeout( function (){U.J();} ,this.FrameTimeout); }if (this.RotatorMode!=null && this.RotatorMode.toLowerCase()=="\x73lideshow"){var U=this ; window.clearTimeout(this.H); if (this.UseRandomSlide){U.h(); }else { this.H=window.setTimeout( function (){U.h();} ,this.FrameTimeout); }}} ; RadRotator.prototype.K= function (){if (this.HasTickers){ this.ResetTickers(); var I0=this.FrameIdArray; var o1=O1(this.I); for (var i=0; i0){width=this.I.offsetWidth; }else {width=this.I.style.width; }if (parseInt(this.I.offsetHeight)>0){height=this.I.offsetHeight; }else {height=this.I.style.height; }if (this.RotatorMode.toLowerCase()=="scroll" && (this.ScrollDirection.toLowerCase()=="left" || this.ScrollDirection.toLowerCase()=="\x72ight")){ this.o2=parseInt(width)/this.o; this.O2=parseInt(height); this.A.style.width=(this.o2*this.NumberOfFrames)+"px"; }if (this.RotatorMode.toLowerCase()=="scro\x6c\x6c" && (this.ScrollDirection.toLowerCase()=="\x75p" || this.ScrollDirection.toLowerCase()=="down")){ this.o2=parseInt(width); this.O2=parseInt(height)/this.o; this.A.style.height=(this.O2*this.NumberOfFrames)+"\x70\x78"; }if (this.RotatorMode.toLowerCase()=="slideshow"){ this.o2=parseInt(width); this.O2=parseInt(height); }var I0=this.FrameIdArray; for (var i=0; ithis.o2*(-1)){ this.I2= true; if (!this.UseSmoothScroll){ this.A.style.left=(parseInt(this.A.style.left)-1)+"\160\x78"; }else {var o3=(this.o2*(-1)-parseInt(this.A.style.left))/this.SmoothScrollDelay; this.A.style.left=(parseInt(this.A.style.left)+o3-1)+"\x70x"; }var U=this ; this.i2=0; this.i2=window.setTimeout( function (){U.ScrollLeftNextFrame();} ,this.ScrollSpeed); }else {var O3=this.A.firstChild.firstChild.firstChild; this.A.firstChild.firstChild.removeChild(this.A.firstChild.firstChild.firstChild); this.A.firstChild.firstChild.appendChild(O3); this.A.style.left="\x30px"; this.CurrentFrame=(this.CurrentFrame+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); this.I2= false; }} ; RadRotator.prototype.ScrollRightNextFrame= function (){if (this.RotatorMode.toLowerCase()!="\x73\x63roll"){alert("\x44o not cal\x6c\x20thi\x73\x20fu\x6e\x63tio\x6e\x20wh\x65\x6e \x72otato\x72\040\x69s in \x73\154i\x64eshow\x20mode!"); return; }if (this.ScrollDirection.toLowerCase()=="up" || this.ScrollDirection.toLowerCase()=="down"){alert("Do\x20\x6eot cal\x6c\x20thi\x73\x20fu\x6e\x63tio\x6e\x20wh\x65\x6e \x72\157t\x61tor is\x20in ve\x72\164i\x63al sc\x72ollin\x67 mo\x64e!"); return; }if (this.B){return; }if (this.f){var U=this ; this.i2=0; this.i2=window.setTimeout( function (){U.ScrollRightNextFrame();} ,this.ScrollSpeed);return; }if (parseInt(this.A.style.left)this.O2*(-1)){ this.I2= true; if (!this.UseSmoothScroll){ this.A.style.top=(parseInt(this.A.style.top)-1)+"\160\x78"; }else {var o3=(this.O2*(-1)-parseInt(this.A.style.top))/this.SmoothScrollDelay; this.A.style.top=(parseInt(this.A.style.top)+o3-1)+"\x70x"; }var U=this ; this.i2=0; this.i2=window.setTimeout( function (){U.ScrollUpNextFrame();} ,this.ScrollSpeed); }else {try {var O3=this.A.firstChild; this.A.removeChild(this.A.firstChild); this.A.appendChild(O3); this.A.style.top="0px"; this.CurrentFrame=(this.CurrentFrame+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); this.I2= false; }catch (e){alert(e); }}} ; function l3(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; } ; l3.prototype.i3= function (){return new l3(this.left,this.top,this.width,this.height); } ; l3.prototype.I3= function (x,y){return (this.left<=x && x<=(this.left+this.width) && this.top<=y && y<=(this.top+this.height)); } ; l3.prototype.I1= function (o4){if (null==o4){return false; }if (this ==o4){return true; }return (o4.leftthis.left && o4.bottom>this.top); } ; l3.prototype.O4= function (o4){if (null==o4){return false; }if (this ==o4){return this.i3(); }if (!this.I1(o4)){return new l3(); }var left=Math.max(this.left,o4.left); var top=Math.max(this.top,o4.top); var right=Math.min(this.right,o4.right); var bottom=Math.min(this.bottom,o4.bottom); return new l3(left,right,right-left,bottom-top); } ; RadRotator.prototype.R= function (){window.clearTimeout(this.k); window.clearTimeout(this.H); window.clearTimeout(this.i2); } ; function O1(D){if (!D){D=this ; }var left=0; var top=0; var width=D.offsetWidth; var height=D.offsetHeight; while (D.offsetParent){left+=D.offsetLeft; top+=D.offsetTop; D=D.offsetParent; }if (D.x){left=D.x; }if (D.y){top=D.y; }return new l3(left,top,width,height); } ;