function RadRotator(O,o,ScrollDirection){ this.ClientID=O; this.SmoothScrollDelay=10; this.Y=document.getElementById(O); this.I=document.getElementById(O+"\137FrameCont\x61in\x65r"); if (o){ this.o=o; }else { this.o=1; } this.I.style.top="0px"; this.I.style.left="0px"; this.A=0; var U=this ; this.Z= function (e){U.z(e); } ; this.X= function (e){U.W(e); } ; this.w= function (e){U.V(e); } ; this.v= function (e){U.T(e); } ; this.t(this.Y,"m\x6fu\x73\x65en\x74er",this.Z); this.t(this.Y,"\x6douse\x6c\x65a\x76e",this.X); this.t(this.Y,"mo\x75seover",this.w); this.t(this.Y,"\x6dous\x65\x6fut",this.v); if (window.addEventListener){window.addEventListener("load", function (){U.S();} , false); }if (window.attachEvent){window.attachEvent("\x6f\x6e\x6coad", function (){U.S();} ); }} ; RadRotator.prototype.attachEvent= function (R,r){var Q=this.P(r); var N= function (n,M){return Q(n,M); };this[R+"\x48a\x6e\x64ler"]=N; } ; RadRotator.prototype.P= function (m){var N= function (n,M){} ; if (typeof(m).toString().toLowerCase()=="\x66\x75nctio\x6e"){N=m; }else if (typeof(m).toString().toLowerCase()=="\x73\x74ring"){try {N=eval(m);}catch (L){}}return N; };RadRotator.prototype.FireOnClientFrameChanging= function (n){if (this.OnClientFrameChangingHandler!=null){var N=this.OnClientFrameChangingHandler; return N(this, {} ); }};RadRotator.prototype.FireOnClientFrameChanged= function (n){ this.l(); var U=this ; if (this.RotatorMode.toLowerCase()=="\x73\x63\x72oll"){window.setTimeout( function (){U.K();} ,this.FrameTimeout); }if (this.RotatorMode.toLowerCase()=="slideshow"){window.setTimeout( function (){U.k();} ,this.FrameTimeout); }if (this.OnClientFrameChangedHandler!=null){var N=this.OnClientFrameChangedHandler; return N(this, {} ); }};RadRotator.prototype.J= function (max){return parseInt(((max*Math.random())%max)); } ; RadRotator.prototype.j= function (H){if (H){ this.h= true; }else { this.h= false; }} ; RadRotator.prototype.t= function (G,R,r){try {if (document.all){G.attachEvent("on"+R,r); }else {G.addEventListener(R,r, true); }}catch (L){}} ; RadRotator.prototype.z= function (e){if (!this.AutoAdvance){return; }if (this.PauseOnMouseOver){ this.j( true); }};RadRotator.prototype.W= function (){if (!this.AutoAdvance){return; }if (this.PauseOnMouseOver){ this.j( false); }} ; RadRotator.prototype.V= function (){if (!this.AutoAdvance){return; }if (document.all && !window.opera){return; }if (this.PauseOnMouseOver){ this.j( true); }} ; RadRotator.prototype.T= function (){if (!this.AutoAdvance){return; }if (document.all && !window.opera){return; }if (this.PauseOnMouseOver){ this.j( false); }} ; RadRotator.prototype.g= function (id){var F="\x5f\x5fdoPostBa\x63k(\047"+this.f+"\047\x2c\047"+id+"\047)"; eval(F); return; } ; RadRotator.prototype.StartRotator= function (){if (this.D==0){return; } this.D=0; this.AutoAdvance=1; if (this.RotatorMode.toLowerCase()=="s\x63\x72\157\x6cl"){ this.K(); }else { this.k(); }} ; RadRotator.prototype.StopRotator= function (){if (this.RotatorMode.toLowerCase()=="\163croll"){ this.d(); }else { this.C(); }} ; RadRotator.prototype.C= function (){ this.D=1; this.AutoAdvance=0; } ; RadRotator.prototype.d= function (){ this.D=1; this.AutoAdvance=0; } ; RadRotator.prototype.S= function (){ this.FixHeight(); if (this.RotatorMode!=null && this.RotatorMode.toLowerCase()=="\x73\x63roll"){ this.c(); this.K(); }if (this.RotatorMode!=null && this.RotatorMode.toLowerCase()=="s\x6c\x69desho\x77"){ this.k(); }} ; RadRotator.prototype.l= function (){if (this.HasTickers){ this.B(); var o0=this.FrameIdArray; var O0=l0(this.Y); for (var i=0; i<this.NumberOfFrames; i++){var i0=document.getElementById(o0[i]); var I0=l0(i0); if (O0.o1(I0)){eval(this[i0.id+"\x5f\x73"]); }}}} ; RadRotator.prototype.B= function (){if (this.HasTickers){for (var i=0; i<this.NumberOfTickers; i++){eval(this.TickerIdArray[i]).ResetTicker(); }}} ; RadRotator.prototype.FixHeight= function (){if (this.RotatorMode.toLowerCase()=="\x73croll" && (this.ScrollDirection.toLowerCase()=="left" || this.ScrollDirection.toLowerCase()=="\x72i\x67\x68t")){ this.O1=parseInt(this.Y.offsetWidth)/this.o; this.l1=parseInt(this.Y.offsetHeight); this.I.style.width=(this.O1*this.NumberOfFrames)+"\160x"; }if (this.RotatorMode.toLowerCase()=="scr\x6fll" && (this.ScrollDirection.toLowerCase()=="up" || this.ScrollDirection.toLowerCase()=="\144\x6fwn")){ this.O1=parseInt(this.Y.offsetWidth); this.l1=parseInt(this.Y.offsetHeight)/this.o; this.I.style.height=(this.l1*this.NumberOfFrames)+"\x70\x78"; }if (this.RotatorMode.toLowerCase()=="\x73lidesh\x6f\x77"){ this.O1=parseInt(this.Y.offsetWidth); this.l1=parseInt(this.Y.style.height); }var o0=this.FrameIdArray; for (var i=0; i<this.NumberOfFrames; i++){var i0=document.getElementById(o0[i]); i0.style.height=this.l1+"\x70\170"; i0.style.width=this.O1+"px"; }} ; RadRotator.prototype.k= function (){if (this.NumberOfFrames/this.o<=1){return; }if (this.AutoAdvance){ this.ShowNextFrame(); }} ; RadRotator.prototype.c= function (){if (this.ScrollDirection.toLowerCase()=="\x64\x6fwn"){ this.I.style.top=(this.NumberOfFrames-this.o)*this.l1*(-1)+"\x70x"; }if (this.ScrollDirection.toLowerCase()=="rig\x68t"){ this.I.style.left=(this.NumberOfFrames-this.o)*this.O1*(-1)+"px"; } this.l(); };RadRotator.prototype.K= function (){if (this.NumberOfFrames/this.o<=1){return; }if (this.FireOnClientFrameChanging(this )== false){return; }if (this.AutoAdvance){ this.i1(); }} ; RadRotator.prototype.i1= function (){switch (this.ScrollDirection.toLowerCase()){case "\165\x70":{ this.ScrollUpNextFrame(); break; }case "do\x77n":{ this.ScrollDownNextFrame(); break; }case "left":{ this.ScrollLeftNextFrame(); break; }case "righ\x74":{ this.ScrollRightNextFrame(); break; }}} ; RadRotator.prototype.ShowPrevFrame= function (){ this.A=(this.A-2)%this.NumberOfFrames; if (this.A<-1){ this.A=this.NumberOfFrames-2; } this.ShowNextFrame(); } ; RadRotator.prototype.ShowNextFrame= function (){if (this.h){var U=this ; window.setTimeout( function (){U.ShowNextFrame();} ,this.FrameTimeout);return; }if (this.FireOnClientFrameChanging(this )== false){return; }var I1; if (this.UseRandomSlide){ do {I1=this.J(this.NumberOfFrames)*this.l1*(-1); }while (I1==parseInt(this.I.style.top));}else { this.A=(this.A+1)%this.NumberOfFrames; I1=this.A*this.l1*(-1); }if (this.UseTransition && document.all && !window.opera){if (this.UseRandomEffect){ this.Y.style.filter=this.TransitionStrings[this.J(17)]; }else { this.Y.style.filter=this.TransitionString; } this.Y.filters[0].Apply(); this.I.style.top=I1+"p\x78"; this.Y.filters[0].Play(); }else { this.I.style.top=I1+"px"; } this.FireOnClientFrameChanged(); } ; RadRotator.prototype.ScrollLeftNextFrame= function (){if (this.h){var U=this ; window.setTimeout( function (){U.ScrollLeftNextFrame();} ,this.ScrollSpeed);return; }if (parseInt(this.I.style.left)>this.O1*(-1)){if (!this.UseSmoothScroll){ this.I.style.left=(parseInt(this.I.style.left)-1)+"\160\x78"; }else {var o2=(this.O1*(-1)-parseInt(this.I.style.left))/this.SmoothScrollDelay; this.I.style.left=(parseInt(this.I.style.left)+o2-1)+"\x70\x78"; }var U=this ; window.setTimeout( function (){U.ScrollLeftNextFrame();} ,this.ScrollSpeed); }else {var O2=this.I.firstChild.firstChild.firstChild; this.I.firstChild.firstChild.removeChild(this.I.firstChild.firstChild.firstChild); this.I.firstChild.firstChild.appendChild(O2); this.I.style.left="\x30\x70x"; this.A=(this.A+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); }} ; RadRotator.prototype.ScrollRightNextFrame= function (){if (this.h){var U=this ; window.setTimeout( function (){U.ScrollRightNextFrame();} ,this.ScrollSpeed);return; }if (parseInt(this.I.style.left)<this.O1*(this.NumberOfFrames-this.o-1)*(-1)){if (!this.UseSmoothScroll){ this.I.style.left=parseInt(this.I.style.left)+1+"\160x"; }else {var o2=(this.O1*(this.NumberOfFrames-2)*(-1)-parseInt(this.I.style.left))/this.SmoothScrollDelay; this.I.style.left=parseInt(this.I.style.left)+o2+"\x70\x78"; }var U=this ; window.setTimeout( function (){U.ScrollRightNextFrame();} ,this.ScrollSpeed); }else {var O2=this.I.firstChild.firstChild.lastChild; this.I.firstChild.firstChild.removeChild(this.I.firstChild.firstChild.lastChild); this.I.firstChild.firstChild.insertBefore(O2,this.I.firstChild.firstChild.firstChild); this.I.style.left=(this.NumberOfFrames-this.o)*this.O1*(-1)+"\160\170"; this.A=(this.A+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); }} ; RadRotator.prototype.ScrollDownNextFrame= function (){if (this.h){var U=this ; window.setTimeout( function (){U.ScrollDownNextFrame();} ,this.ScrollSpeed);return; }if (parseInt(this.I.style.top)<(this.NumberOfFrames-this.o)*this.l1*(-1)+this.l1){if (!this.UseSmoothScroll){ this.I.style.top=parseInt(this.I.style.top)+1+"\x70\x78"; }else {var o2=(((this.NumberOfFrames-this.o)*this.l1*(-1)+this.l1)-parseInt(this.I.style.top))/this.SmoothScrollDelay; this.I.style.top=parseInt(this.I.style.top)+o2+"\x70\x78"; }var U=this ; window.setTimeout( function (){U.ScrollDownNextFrame();} ,this.ScrollSpeed); }else {var O2=this.I.lastChild; this.I.removeChild(this.I.lastChild); this.I.insertBefore(O2,this.I.firstChild); this.I.style.top=(this.NumberOfFrames-this.o)*this.l1*(-1)+"\160\x78"; this.A=(this.A+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); }} ; RadRotator.prototype.ScrollUpNextFrame= function (){if (this.h){var U=this ; window.setTimeout( function (){U.ScrollUpNextFrame();} ,this.ScrollSpeed);return; }if (parseInt(this.I.style.top)>this.l1*(-1)){if (!this.UseSmoothScroll){ this.I.style.top=(parseInt(this.I.style.top)-1)+"\160x"; }else {var o2=(this.l1*(-1)-parseInt(this.I.style.top))/this.SmoothScrollDelay; this.I.style.top=(parseInt(this.I.style.top)+o2-1)+"p\x78"; }var U=this ; window.setTimeout( function (){U.ScrollUpNextFrame();} ,this.ScrollSpeed); }else {var O2=this.I.firstChild; this.I.removeChild(this.I.firstChild); this.I.appendChild(O2); this.I.style.top="0px"; this.A=(this.A+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); }} ; function l2(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; } ; l2.prototype.i2= function (){return new l2(this.left,this.top,this.width,this.height); } ; l2.prototype.I2= function (x,y){return (this.left<=x && x<=(this.left+this.width) && this.top<=y && y<=(this.top+this.height)); } ; l2.prototype.o1= function (o3){if (null==o3){return false; }if (this ==o3){return true; }return (o3.left<this.right && o3.top<this.bottom && o3.right>this.left && o3.bottom>this.top); } ; l2.prototype.O3= function (o3){if (null==o3){return false; }if (this ==o3){return this.i2(); }if (!this.o1(o3)){return new l2(); }var left=Math.max(this.left,o3.left); var top=Math.max(this.top,o3.top); var right=Math.min(this.right,o3.right); var bottom=Math.min(this.bottom,o3.bottom); return new l2(left,right,right-left,bottom-top); } ; function l0(G){if (!G){G=this ; }var left=0; var top=0; var width=G.offsetWidth; var height=G.offsetHeight; while (G.offsetParent){left+=G.offsetLeft; top+=G.offsetTop; G=G.offsetParent; }if (G.x){left=G.x; }if (G.y){top=G.y; }return new l2(left,top,width,height); } ;
