function RadRotator(O,o,ScrollDirection){ this.ClientID=O; this.SmoothScrollDelay=10; this.I=document.getElementById(O+"\x5f\x44iv"); this.A=document.getElementById(O+"_FrameCon\x74\x61ine\x72"); if (o){ this.o=o; }else { this.o=1; } this.A.style.top="\x30px"; this.A.style.left="\x30\x70x"; this.U=0; var Z=this ; 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.FixHeight(); } ; this.S(this.I,"\x6douse\x65\x6eter",this.z); this.S(this.I,"\x6douseleav\x65",this.w); this.S(this.I,"mouseover",this.v); this.S(this.I,"\x6d\157u\x73\x65out",this.T); var R=window[O]; if (R){R.r(); }} ; RadRotator.prototype.attachEvent= function (Q,P){var N=this.n(P); var M= function (m,L){return N(m,L); };this[Q+"\x48and\x6c\x65r"]=M; } ; RadRotator.prototype.n= function (l){var M= function (m,L){} ; if (typeof(l).toString().toLowerCase()=="\x66\x75nctio\x6e"){M=l; }else if (typeof(l).toString().toLowerCase()=="\x73trin\x67"){try {M=eval(l);}catch (K){}}return M; };RadRotator.prototype.FireOnClientFrameChanging= function (m){if (this.OnClientFrameChangingHandler!=null){var M=this.OnClientFrameChangingHandler; return M(this, {} ); }};RadRotator.prototype.FireOnClientFrameChanged= function (m){ this.k(); var Z=this ; if (this.RotatorMode.toLowerCase()=="scro\x6c\x6c"){window.clearTimeout(this.J); this.J=0; this.J=window.setTimeout( function (){Z.H();} ,this.FrameTimeout); }if (this.RotatorMode.toLowerCase()=="slideshow"){window.clearTimeout(this.h); this.h=0; this.h=window.setTimeout( function (){Z.G();} ,this.FrameTimeout); }if (this.OnClientFrameChangedHandler!=null){var M=this.OnClientFrameChangedHandler; return M(this, {} ); }};RadRotator.prototype.g= function (max){return parseInt(((max*Math.random())%max)); } ; RadRotator.prototype.F= function (f){if (f){ this.D= true; }else { this.D= false; }} ; RadRotator.prototype.S= function (d,Q,P){try {if (document.all){d.attachEvent("\x6fn"+Q,P); }else {d.addEventListener(Q,P, true); }}catch (K){}} ; RadRotator.prototype.W= function (e){if (!this.AutoAdvance){return; }if (this.PauseOnMouseOver){ this.F( true); }};RadRotator.prototype.V= function (){if (!this.AutoAdvance){return; }if (this.PauseOnMouseOver){ this.F( false); }} ; RadRotator.prototype.OnMouseOver= function (){if (!this.AutoAdvance){return; }if (document.all && !window.opera){return; }if (this.PauseOnMouseOver){ this.F( true); }} ; RadRotator.prototype.OnMouseOut= function (){if (!this.AutoAdvance){return; }if (document.all && !window.opera){return; }if (this.PauseOnMouseOver){ this.F( false); }} ; RadRotator.prototype.C= function (id){var c="__doP\x6fstBack(\x27"+this.B+"\x27,\047"+id+"\047)"; eval(c); return; } ; RadRotator.prototype.StartRotator= function (){ this.o0= false; if (this.O0==0){return; } this.O0=0; this.AutoAdvance=1; if (this.RotatorMode.toLowerCase()=="scroll"){ this.H(); }else { this.G(); }} ; RadRotator.prototype.StopRotator= function (){if (this.RotatorMode.toLowerCase()=="\x73croll"){ this.l0(); }else { this.i0(); }} ; RadRotator.prototype.i0= function (){ this.O0=1; this.AutoAdvance=0; } ; RadRotator.prototype.l0= function (){ this.O0=1; this.AutoAdvance=0; } ; RadRotator.prototype.Start= function (){ this.FixHeight(); this.k(); if (this.RotatorMode!=null && this.RotatorMode.toLowerCase()=="scroll"){ this.I0(); var Z=this ; window.clearTimeout(this.J); this.J=window.setTimeout( function (){Z.H();} ,this.FrameTimeout); }if (this.RotatorMode!=null && this.RotatorMode.toLowerCase()=="slideshow"){var Z=this ; window.clearTimeout(this.h); if (this.UseRandomSlide){Z.G(); }else { this.h=window.setTimeout( function (){Z.G();} ,this.FrameTimeout); }}} ; RadRotator.prototype.k= function (){if (this.HasTickers){ this.o1(); var O1=this.FrameIdArray; var l1=i1(this.I); for (var i=0; i<this.NumberOfFrames; i++){var I1=document.getElementById(O1[i]); var o2=i1(I1); if (l1.O2(o2)){eval(this[I1.id+"\137\x73"]); }}}} ; RadRotator.prototype.o1= function (){if (this.HasTickers){for (var i=0; i<this.NumberOfTickers; i++){eval(this.TickerIdArray[i]).ResetTicker(); }}} ; RadRotator.prototype.Freeze= function (){ this.o0= true; };RadRotator.prototype.FixHeight= function (){var width; var height; if (null!=document.readyState && "comple\x74e"!=document.readyState){ this.S(window,"l\x6f\x61d",this.t); }if (parseInt(this.I.offsetWidth)>0){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()=="s\x63\x72oll" && (this.ScrollDirection.toLowerCase()=="\x6ceft" || this.ScrollDirection.toLowerCase()=="\x72\151g\x68\x74")){ this.l2=parseInt(width)/this.o; this.i2=parseInt(height); this.A.style.width=(this.l2*this.NumberOfFrames)+"px"; }if (this.RotatorMode.toLowerCase()=="\x73croll" && (this.ScrollDirection.toLowerCase()=="\x75p" || this.ScrollDirection.toLowerCase()=="\x64own")){ this.l2=parseInt(width); this.i2=parseInt(height)/this.o; this.A.style.height=(this.i2*this.NumberOfFrames)+"\x70x"; }if (this.RotatorMode.toLowerCase()=="\x73lides\x68\x6fw"){ this.l2=parseInt(width); this.i2=parseInt(height); }var O1=this.FrameIdArray; for (var i=0; i<this.NumberOfFrames; i++){var I1=document.getElementById(O1[i]); I1.style.height=this.i2+"px"; I1.style.width=this.l2+"px"; }} ; RadRotator.prototype.G= function (){if (this.NumberOfFrames/this.o<=1){return; }if (this.AutoAdvance){ this.ShowNextFrame(); }} ; RadRotator.prototype.I0= function (){if (this.ScrollDirection.toLowerCase()=="down"){ this.A.style.top=(this.NumberOfFrames-this.o)*this.i2*(-1)+"px"; }if (this.ScrollDirection.toLowerCase()=="right"){ this.A.style.left=(this.NumberOfFrames-this.o)*this.l2*(-1)+"\x70x"; } this.k(); };RadRotator.prototype.H= function (){if (this.NumberOfFrames/this.o<=1){return; }if (this.FireOnClientFrameChanging(this )== false){return; }if (this.AutoAdvance){ this.I2(); }} ; RadRotator.prototype.I2= function (){switch (this.ScrollDirection.toLowerCase()){case "\x75\160":{ this.ScrollUpNextFrame(); break; }case "\x64\x6fwn":{ this.ScrollDownNextFrame(); break; }case "left":{ this.ScrollLeftNextFrame(); break; }case "right":{ this.ScrollRightNextFrame(); break; }}} ; RadRotator.prototype.ShowPrevFrame= function (){if (this.RotatorMode.toLowerCase()!="\x73\x6cideshow"){alert("\x44o not cal\x6c\x20thi\x73\x20fu\x6ection \x77\x68en \x72otato\x72 is i\x6e\040\x73crol\x6c\x69ng\x20mode!"); return; } this.U=(this.U-2)%this.NumberOfFrames; if (this.U<-1){ this.U=this.NumberOfFrames-2; } this.ShowNextFrame(); } ; RadRotator.prototype.ShowNextFrame= function (){if (this.RotatorMode.toLowerCase()!="\x73lideshow"){alert("\x44\x6f not c\x61\x6cl th\x69\x73 f\x75\x6ecti\x6f\x6e wh\x65\156\x20rotato\x72\040\x69\163 \x69n scr\x6flling\x20mode!"); return; }if (this.D){var Z=this ; window.clearTimeout(this.h); this.h=0; this.h=window.setTimeout( function (){Z.ShowNextFrame();} ,this.FrameTimeout); return; }if (this.FireOnClientFrameChanging(this )== false){return; }var Height; if (this.UseRandomSlide){ do {Height=this.g(this.NumberOfFrames)*this.i2*(-1); }while (Height==parseInt(this.A.style.top));}else { this.U=(this.U+1)%this.NumberOfFrames; Height=this.U*this.i2*(-1); }if (this.UseTransition && document.all && !window.opera){if (this.UseRandomEffect){ this.I.style.filter=this.TransitionStrings[this.g(17)]; }else { this.I.style.filter=this.TransitionString; } this.I.filters[0].Apply(); this.A.style.top=Height+"\160\x78"; this.I.filters[0].Play(); }else { this.A.style.top=Height+"px"; } this.FireOnClientFrameChanged(); } ; RadRotator.prototype.ScrollLeftNextFrame= function (){if (this.RotatorMode.toLowerCase()!="scrol\x6c"){alert("Do\x20\x6eot cal\x6c\x20thi\x73\x20f\x75\156c\x74\x69on\x20\x77h\x65n rot\x61\164o\x72\040\x69s in \x73lides\x68\157\x77\040\x6dod\x65!"); return; }if (this.ScrollDirection.toLowerCase()=="up" || this.ScrollDirection.toLowerCase()=="\x64own"){alert("\x44o not \x63\x61ll t\x68\x69s \x66\x75nct\x69\157n\x20\167h\x65\156 \x72otator\x20is in\x20\166e\x72tical\x20scrol\x6cing \x6dode!"); return; }if (this.o0){return; }if (this.D){var Z=this ; this.o3=0; this.o3=window.setTimeout( function (){Z.ScrollLeftNextFrame();} ,this.ScrollSpeed);return; }if (parseInt(this.A.style.left)>this.l2*(-1)){ this.O3= true; if (!this.UseSmoothScroll){ this.A.style.left=(parseInt(this.A.style.left)-1)+"\x70x"; }else {var l3=(this.l2*(-1)-parseInt(this.A.style.left))/this.SmoothScrollDelay; this.A.style.left=(parseInt(this.A.style.left)+l3-1)+"\x70x"; }var Z=this ; this.o3=0; this.o3=window.setTimeout( function (){Z.ScrollLeftNextFrame();} ,this.ScrollSpeed); }else {var i3=this.A.firstChild.firstChild.firstChild; this.A.firstChild.firstChild.removeChild(this.A.firstChild.firstChild.firstChild); this.A.firstChild.firstChild.appendChild(i3); this.A.style.left="\x30px"; this.U=(this.U+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); this.O3= false; }} ; RadRotator.prototype.ScrollRightNextFrame= function (){if (this.RotatorMode.toLowerCase()!="scroll"){alert("Do not\x20\x63all \x74\x68is \x66\165\x6ection w\x68\145n\x20\x72o\x74ator \x69\163 \x69\156 \x73lides\x68ow mo\x64e!"); return; }if (this.ScrollDirection.toLowerCase()=="\x75p" || this.ScrollDirection.toLowerCase()=="\x64own"){alert("\x44o not cal\x6c\x20thi\x73\x20fun\x63\164i\x6f\x6e w\x68\x65n \x72otator\x20\151s\x20\151n\x20verti\x63\141\x6c\040\x73crol\x6cing\x20mod\x65!"); return; }if (this.o0){return; }if (this.D){var Z=this ; this.o3=0; this.o3=window.setTimeout( function (){Z.ScrollRightNextFrame();} ,this.ScrollSpeed);return; }if (parseInt(this.A.style.left)<this.l2*(this.NumberOfFrames-this.o-1)*(-1)){ this.O3= true; if (!this.UseSmoothScroll){ this.A.style.left=parseInt(this.A.style.left)+1+"\x70x"; }else {var l3=(((this.NumberOfFrames-this.o)*this.l2*(-1)+this.l2)-parseInt(this.A.style.left))/this.SmoothScrollDelay; this.A.style.left=parseInt(this.A.style.left)+l3+"\x70x"; }var Z=this ; this.o3=0; this.o3=window.setTimeout( function (){Z.ScrollRightNextFrame();} ,this.ScrollSpeed); }else {var i3=this.A.firstChild.firstChild.lastChild; this.A.firstChild.firstChild.removeChild(this.A.firstChild.firstChild.lastChild); this.A.firstChild.firstChild.insertBefore(i3,this.A.firstChild.firstChild.firstChild); this.A.style.left=(this.NumberOfFrames-this.o)*this.l2*(-1)+"\x70x"; this.U=(this.U+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); this.O3= false; }} ; RadRotator.prototype.ScrollDownNextFrame= function (){if (this.RotatorMode.toLowerCase()!="\x73\x63roll"){alert("\x44\x6f not \x63\x61ll t\x68\x69s\x20\146\x75\156c\x74\x69on\x20when \x72otator\x20is in \x73lides\x68\157\x77\040\x6dode!"); return; }if (this.ScrollDirection.toLowerCase()=="right" || this.ScrollDirection.toLowerCase()=="left"){alert("\x44\x6f not \x63\x61ll \x74\x68is \x66\x75nc\x74\x69on \x77\150\x65\156 \x72o\x74ator i\x73 in h\x6f\162i\x7aonta\x6c\040\x73cro\x6clin\x67\040\x6dode!"); return; }if (this.o0){return; }if (this.D){var Z=this ; this.o3=0; this.o3=window.setTimeout( function (){Z.ScrollDownNextFrame();} ,this.ScrollSpeed);return; }if (parseInt(this.A.style.top)<(this.NumberOfFrames-this.o)*this.i2*(-1)+this.i2){ this.O3= true; if (!this.UseSmoothScroll){ this.A.style.top=parseInt(this.A.style.top)+1+"px"; }else {var l3=(((this.NumberOfFrames-this.o)*this.i2*(-1)+this.i2)-parseInt(this.A.style.top))/this.SmoothScrollDelay; this.A.style.top=parseInt(this.A.style.top)+l3+"p\x78"; }var Z=this ; this.o3=0; this.o3=window.setTimeout( function (){Z.ScrollDownNextFrame();} ,this.ScrollSpeed); }else {var i3=this.A.lastChild; this.A.removeChild(this.A.lastChild); this.A.insertBefore(i3,this.A.firstChild); this.A.style.top=(this.NumberOfFrames-this.o)*this.i2*(-1)+"px"; this.U=(this.U+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); this.O3= false; }} ; RadRotator.prototype.ScrollUpNextFrame= function (){if (this.RotatorMode.toLowerCase()!="\x73\x63roll"){alert("Do not cal\x6c\x20this\x20\x66un\x63tion wh\x65\156\x20\x72ot\x61tor i\x73 in s\x6c\151d\x65show \x6d\157d\x65!"); return; }if (this.ScrollDirection.toLowerCase()=="rig\x68\x74" || this.ScrollDirection.toLowerCase()=="left"){alert("Do no\x74\x20call \x74\x68is \x66\165n\x63\x74ion\x20\167h\x65\x6e \x72\157t\x61\164o\x72\040\x69s in \x68orizo\x6etal s\x63roll\x69ng \x6dode!"); return; }if (this.o0){return; }if (this.D){var Z=this ; this.o3=0; this.o3=window.setTimeout( function (){Z.ScrollUpNextFrame();} ,this.ScrollSpeed);return; }if (parseInt(this.A.style.top)>this.i2*(-1)){ this.O3= true; if (!this.UseSmoothScroll){ this.A.style.top=(parseInt(this.A.style.top)-1)+"\x70\x78"; }else {var l3=(this.i2*(-1)-parseInt(this.A.style.top))/this.SmoothScrollDelay; this.A.style.top=(parseInt(this.A.style.top)+l3-1)+"\x70x"; }var Z=this ; this.o3=0; this.o3=window.setTimeout( function (){Z.ScrollUpNextFrame();} ,this.ScrollSpeed); }else {try {var i3=this.A.firstChild; this.A.removeChild(this.A.firstChild); this.A.appendChild(i3); this.A.style.top="\x30px"; this.U=(this.U+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); this.O3= false; }catch (e){alert(e); }}} ; function I3(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; } ; I3.prototype.o4= function (){return new I3(this.left,this.top,this.width,this.height); } ; I3.prototype.O4= function (x,y){return (this.left<=x && x<=(this.left+this.width) && this.top<=y && y<=(this.top+this.height)); } ; I3.prototype.O2= function (l4){if (null==l4){return false; }if (this ==l4){return true; }return (l4.left<this.right && l4.top<this.bottom && l4.right>this.left && l4.bottom>this.top); } ; I3.prototype.i4= function (l4){if (null==l4){return false; }if (this ==l4){return this.o4(); }if (!this.O2(l4)){return new I3(); }var left=Math.max(this.left,l4.left); var top=Math.max(this.top,l4.top); var right=Math.min(this.right,l4.right); var bottom=Math.min(this.bottom,l4.bottom); return new I3(left,right,right-left,bottom-top); } ; RadRotator.prototype.r= function (){window.clearTimeout(this.J); window.clearTimeout(this.h); window.clearTimeout(this.o3); } ; function i1(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 I3(left,top,width,height); } ;
