function RadRotator(O,o,ScrollDirection){ this.ClientID=O; this.SmoothScrollDelay=10; this.Y=document.getElementById(O); this.I=document.getElementById(O+"_Fra\x6deConta\x69ner"); if (o){ this.o=o; }else { this.o=1; } this.I.style.top="\x30px"; this.I.style.left="\x30\x70\x78"; 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,"mou\x73eenter",this.Z); this.t(this.Y,"mousele\x61ve",this.X); this.t(this.Y,"mouseov\x65r",this.w); this.t(this.Y,"\x6dous\x65\x6fut",this.v); if (window.addEventListener){window.addEventListener("l\x6f\x61d", function (){U.S();} , false); }if (window.attachEvent){window.attachEvent("onload", 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+"\x48andle\x72"]=N; } ; RadRotator.prototype.P= function (m){var N= function (n,M){} ; if (typeof(m).toString().toLowerCase()=="\x66u\x6e\x63tio\x6e"){N=m; }else if (typeof(m).toString().toLowerCase()=="\x73tring"){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\162\x6fll"){window.clearTimeout(this.K); this.K=0; this.K=window.setTimeout( function (){U.k();} ,this.FrameTimeout); }if (this.RotatorMode.toLowerCase()=="\x73\x6cidesho\x77"){window.clearTimeout(this.J); this.J=0; this.J=window.setTimeout( function (){U.j();} ,this.FrameTimeout); }if (this.OnClientFrameChangedHandler!=null){var N=this.OnClientFrameChangedHandler; return N(this, {} ); }};RadRotator.prototype.H= function (max){return parseInt(((max*Math.random())%max)); } ; RadRotator.prototype.h= function (G){if (G){ this.g= true; }else { this.g= false; }} ; RadRotator.prototype.t= function (F,R,r){try {if (document.all){F.attachEvent("\157n"+R,r); }else {F.addEventListener(R,r, true); }}catch (L){}} ; RadRotator.prototype.z= function (e){if (!this.AutoAdvance){return; }if (this.PauseOnMouseOver){ this.h( true); }};RadRotator.prototype.W= function (){if (!this.AutoAdvance){return; }if (this.PauseOnMouseOver){ this.h( false); }} ; RadRotator.prototype.V= function (){if (!this.AutoAdvance){return; }if (document.all && !window.opera){return; }if (this.PauseOnMouseOver){ this.h( true); }} ; RadRotator.prototype.T= function (){if (!this.AutoAdvance){return; }if (document.all && !window.opera){return; }if (this.PauseOnMouseOver){ this.h( false); }} ; RadRotator.prototype.f= function (id){var D="\x5f\x5f\x64oPo\x73tBack\x28\047"+this.d+"\047\x2c\047"+id+"\x27)"; eval(D); return; } ; RadRotator.prototype.StartRotator= function (){if (this.C==0){return; } this.C=0; this.AutoAdvance=1; if (this.RotatorMode.toLowerCase()=="s\x63roll"){ this.k(); }else { this.j(); }} ; RadRotator.prototype.StopRotator= function (){if (this.RotatorMode.toLowerCase()=="\163\x63rol\x6c"){ this.c(); }else { this.B(); }} ; RadRotator.prototype.B= function (){ this.C=1; this.AutoAdvance=0; } ; RadRotator.prototype.c= function (){ this.C=1; this.AutoAdvance=0; } ; RadRotator.prototype.S= function (){ this.FixHeight(); this.l(); if (this.RotatorMode!=null && this.RotatorMode.toLowerCase()=="\x73c\x72\x6fll"){ this.o0(); var U=this ; window.clearTimeout(this.K); this.K=window.setTimeout( function (){U.k();} ,this.FrameTimeout); }if (this.RotatorMode!=null && this.RotatorMode.toLowerCase()=="\x73lides\x68\x6f\x77"){var U=this ; window.clearTimeout(this.J); this.J=window.setTimeout( function (){U.j();} ,this.FrameTimeout); }} ; RadRotator.prototype.l= function (){if (this.HasTickers){ this.O0(); var l0=this.FrameIdArray; var i0=I0(this.Y); for (var i=0; i<this.NumberOfFrames; i++){var o1=document.getElementById(l0[i]); var O1=I0(o1); if (i0.l1(O1)){eval(this[o1.id+"_\x73"]); }}}} ; RadRotator.prototype.O0= 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()=="\x73\x63roll" && (this.ScrollDirection.toLowerCase()=="left" || this.ScrollDirection.toLowerCase()=="\x72ight")){ this.i1=parseInt(this.Y.offsetWidth)/this.o; this.I1=parseInt(this.Y.offsetHeight); this.I.style.width=(this.i1*this.NumberOfFrames)+"p\x78"; }if (this.RotatorMode.toLowerCase()=="scroll" && (this.ScrollDirection.toLowerCase()=="up" || this.ScrollDirection.toLowerCase()=="dow\x6e")){ this.i1=parseInt(this.Y.offsetWidth); this.I1=parseInt(this.Y.offsetHeight)/this.o; this.I.style.height=(this.I1*this.NumberOfFrames)+"px"; }if (this.RotatorMode.toLowerCase()=="sli\x64\x65show"){ this.i1=parseInt(this.Y.offsetWidth); this.I1=parseInt(this.Y.style.height); }var l0=this.FrameIdArray; for (var i=0; i<this.NumberOfFrames; i++){var o1=document.getElementById(l0[i]); o1.style.height=this.I1+"\160x"; o1.style.width=this.i1+"p\x78"; }} ; RadRotator.prototype.j= function (){if (this.NumberOfFrames/this.o<=1){return; }if (this.AutoAdvance){ this.ShowNextFrame(); }} ; RadRotator.prototype.o0= function (){if (this.ScrollDirection.toLowerCase()=="do\x77\x6e"){ this.I.style.top=(this.NumberOfFrames-this.o)*this.I1*(-1)+"\x70x"; }if (this.ScrollDirection.toLowerCase()=="\x72ig\x68\x74"){ this.I.style.left=(this.NumberOfFrames-this.o)*this.i1*(-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.o2(); }} ; RadRotator.prototype.o2= function (){switch (this.ScrollDirection.toLowerCase()){case "\x75p":{ this.ScrollUpNextFrame(); break; }case "d\x6fwn":{ this.ScrollDownNextFrame(); break; }case "\x6cef\x74":{ this.ScrollLeftNextFrame(); break; }case "\x72ight":{ this.ScrollRightNextFrame(); break; }}} ; RadRotator.prototype.ShowPrevFrame= function (){if (this.RotatorMode.toLowerCase()!="\163\154i\x64\145\x73how"){alert("Do not c\x61ll \x74his fu\x6ectio\x6e whe\x6e rota\x74or is\x20in\x20sc\x72ol\x6cing\x20mode\x21"); return; } this.A=(this.A-2)%this.NumberOfFrames; if (this.A<-1){ this.A=this.NumberOfFrames-2; } this.ShowNextFrame(); } ; RadRotator.prototype.ShowNextFrame= function (){if (this.RotatorMode.toLowerCase()!="s\x6c\x69deshow"){alert("\x44\x6f not cal\x6c this\x20\146unctio\x6e when\x20rotat\x6fr is\x20in \x73crol\x6cing \x6dode!"); return; }if (this.g){var U=this ; window.clearTimeout(this.J); this.J=0; this.J=window.setTimeout( function (){U.ShowNextFrame();} ,this.FrameTimeout); return; }if (this.FireOnClientFrameChanging(this )== false){return; }var O2; if (this.UseRandomSlide){ do {O2=this.H(this.NumberOfFrames)*this.I1*(-1); }while (O2==parseInt(this.I.style.top));}else { this.A=(this.A+1)%this.NumberOfFrames; O2=this.A*this.I1*(-1); }if (this.UseTransition && document.all && !window.opera){if (this.UseRandomEffect){ this.Y.style.filter=this.TransitionStrings[this.H(17)]; }else { this.Y.style.filter=this.TransitionString; } this.Y.filters[0].Apply(); this.I.style.top=O2+"\160x"; this.Y.filters[0].Play(); }else { this.I.style.top=O2+"px"; } this.FireOnClientFrameChanged(); } ; RadRotator.prototype.ScrollLeftNextFrame= function (){if (this.RotatorMode.toLowerCase()!="\x73\x63roll"){alert("\x44\x6f\040not c\x61ll this\x20fun\x63tion \x77hen r\x6ftato\x72 i\x73 in\x20slid\x65sho\x77 mod\x65!"); return; }if (this.ScrollDirection.toLowerCase()=="u\x70" || this.ScrollDirection.toLowerCase()=="\x64o\x77\x6e"){alert("\x44o no\x74\x20\x63all t\x68is f\x75nctio\x6e when\x20rotat\x6fr i\x73 in \x76erti\x63al \x73crol\x6cing\x20mod\x65!"); return; }if (this.g){var U=this ; window.setTimeout( function (){U.ScrollLeftNextFrame();} ,this.ScrollSpeed);return; }if (parseInt(this.I.style.left)>this.i1*(-1)){if (!this.UseSmoothScroll){ this.I.style.left=(parseInt(this.I.style.left)-1)+"\160\x78"; }else {var l2=(this.i1*(-1)-parseInt(this.I.style.left))/this.SmoothScrollDelay; this.I.style.left=(parseInt(this.I.style.left)+l2-1)+"px"; }var U=this ; window.setTimeout( function (){U.ScrollLeftNextFrame();} ,this.ScrollSpeed); }else {var i2=this.I.firstChild.firstChild.firstChild; this.I.firstChild.firstChild.removeChild(this.I.firstChild.firstChild.firstChild); this.I.firstChild.firstChild.appendChild(i2); this.I.style.left="\x30\x70x"; this.A=(this.A+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); }} ; RadRotator.prototype.ScrollRightNextFrame= function (){if (this.RotatorMode.toLowerCase()!="scrol\x6c"){alert("Do \x6eot ca\x6cl this\x20functi\x6fn w\x68en ro\x74ator \x69s in\x20sl\x69desh\x6fw mo\x64e!"); return; }if (this.ScrollDirection.toLowerCase()=="up" || this.ScrollDirection.toLowerCase()=="down"){alert("D\x6f not ca\x6cl this\x20functi\x6fn whe\x6e rota\x74or is\x20in \x76erti\x63al s\x63roll\x69ng \x6dode\x21"); return; }if (this.g){var U=this ; window.setTimeout( function (){U.ScrollRightNextFrame();} ,this.ScrollSpeed);return; }if (parseInt(this.I.style.left)<this.i1*(this.NumberOfFrames-this.o-1)*(-1)){if (!this.UseSmoothScroll){ this.I.style.left=parseInt(this.I.style.left)+1+"\x70\x78"; }else {var l2=(((this.NumberOfFrames-this.o)*this.i1*(-1)+this.i1)-parseInt(this.I.style.left))/this.SmoothScrollDelay; this.I.style.left=parseInt(this.I.style.left)+l2+"px"; }var U=this ; window.setTimeout( function (){U.ScrollRightNextFrame();} ,this.ScrollSpeed); }else {var i2=this.I.firstChild.firstChild.lastChild; this.I.firstChild.firstChild.removeChild(this.I.firstChild.firstChild.lastChild); this.I.firstChild.firstChild.insertBefore(i2,this.I.firstChild.firstChild.firstChild); this.I.style.left=(this.NumberOfFrames-this.o)*this.i1*(-1)+"px"; this.A=(this.A+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); }} ; RadRotator.prototype.ScrollDownNextFrame= function (){if (this.RotatorMode.toLowerCase()!="scr\x6fll"){alert("D\x6f not cal\x6c this \x66uncti\x6fn w\x68\145\x6e \x72otato\x72 i\x73 in\x20slid\x65sho\x77 mod\x65!"); return; }if (this.ScrollDirection.toLowerCase()=="\x72\x69\x67ht" || this.ScrollDirection.toLowerCase()=="\154\x65ft"){alert("\x44o not ca\x6cl this\x20\146\x75ncti\x6fn when\x20rota\x74or is\x20in h\x6frizo\x6etal\x20scro\x6clin\x67 mo\x64e!"); return; }if (this.g){var U=this ; window.setTimeout( function (){U.ScrollDownNextFrame();} ,this.ScrollSpeed);return; }if (parseInt(this.I.style.top)<(this.NumberOfFrames-this.o)*this.I1*(-1)+this.I1){if (!this.UseSmoothScroll){ this.I.style.top=parseInt(this.I.style.top)+1+"\x70x"; }else {var l2=(((this.NumberOfFrames-this.o)*this.I1*(-1)+this.I1)-parseInt(this.I.style.top))/this.SmoothScrollDelay; this.I.style.top=parseInt(this.I.style.top)+l2+"\x70x"; }var U=this ; window.setTimeout( function (){U.ScrollDownNextFrame();} ,this.ScrollSpeed); }else {var i2=this.I.lastChild; this.I.removeChild(this.I.lastChild); this.I.insertBefore(i2,this.I.firstChild); this.I.style.top=(this.NumberOfFrames-this.o)*this.I1*(-1)+"\x70x"; this.A=(this.A+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); }} ; RadRotator.prototype.ScrollUpNextFrame= function (){if (this.RotatorMode.toLowerCase()!="\x73\x63\x72oll"){alert("Do not \x63all\x20this fu\x6ecti\x6fn wh\x65\156 rota\x74or is\x20in\x20sli\x64esh\x6fw mo\x64e!"); return; }if (this.ScrollDirection.toLowerCase()=="r\x69\x67ht" || this.ScrollDirection.toLowerCase()=="left"){alert("Do n\x6ft cal\x6c thi\x73 functi\x6fn w\x68en ro\x74ator \x69s in\x20hor\x69zont\x61l sc\x72oll\x69ng \x6dode\x21"); return; }if (this.g){var U=this ; window.setTimeout( function (){U.ScrollUpNextFrame();} ,this.ScrollSpeed);return; }if (parseInt(this.I.style.top)>this.I1*(-1)){if (!this.UseSmoothScroll){ this.I.style.top=(parseInt(this.I.style.top)-1)+"\x70\x78"; }else {var l2=(this.I1*(-1)-parseInt(this.I.style.top))/this.SmoothScrollDelay; this.I.style.top=(parseInt(this.I.style.top)+l2-1)+"\160\x78"; }var U=this ; window.setTimeout( function (){U.ScrollUpNextFrame();} ,this.ScrollSpeed); }else {var i2=this.I.firstChild; this.I.removeChild(this.I.firstChild); this.I.appendChild(i2); this.I.style.top="\060px"; this.A=(this.A+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); }} ; function I2(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; } ; I2.prototype.o3= function (){return new I2(this.left,this.top,this.width,this.height); } ; I2.prototype.O3= function (x,y){return (this.left<=x && x<=(this.left+this.width) && this.top<=y && y<=(this.top+this.height)); } ; I2.prototype.l1= function (l3){if (null==l3){return false; }if (this ==l3){return true; }return (l3.left<this.right && l3.top<this.bottom && l3.right>this.left && l3.bottom>this.top); } ; I2.prototype.i3= function (l3){if (null==l3){return false; }if (this ==l3){return this.o3(); }if (!this.l1(l3)){return new I2(); }var left=Math.max(this.left,l3.left); var top=Math.max(this.top,l3.top); var right=Math.min(this.right,l3.right); var bottom=Math.min(this.bottom,l3.bottom); return new I2(left,right,right-left,bottom-top); } ; function I0(F){if (!F){F=this ; }var left=0; var top=0; var width=F.offsetWidth; var height=F.offsetHeight; while (F.offsetParent){left+=F.offsetLeft; top+=F.offsetTop; F=F.offsetParent; }if (F.x){left=F.x; }if (F.y){top=F.y; }return new I2(left,top,width,height); } ;
