function RadRotator(O,o,ScrollDirection){ this.ClientID=O; this.SmoothScrollDelay=10; this.I=document.getElementById(O+"\x5f\x44iv"); this.A=document.getElementById(O+"_\x46\x72ameCon\x74\x61ine\x72"); if (o){ this.o=o; }else { this.o=1; } this.A.style.top="\x30px"; this.A.style.left="0px"; 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,"mous\x65\x65nter",this.z); this.S(this.I,"\x6d\x6fuseleav\x65",this.w); this.S(this.I,"mou\x73\x65\x6f\x76er",this.v); this.S(this.I,"mouseout",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+"\x48andler"]=M; } ; RadRotator.prototype.n= function (l){var M= function (m,L){} ; if (typeof(l).toString().toLowerCase()=="\146\x75\156cti\x6f\x6e"){M=l; }else if (typeof(l).toString().toLowerCase()=="\x73tring"){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()=="scroll"){window.clearTimeout(this.J); this.J=0; this.J=window.setTimeout( function (){Z.H();} ,this.FrameTimeout); }if (this.RotatorMode.toLowerCase()=="sli\x64eshow"){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("\x6f\x6e"+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="__do\x50\x6fstBa\x63\x6b(\047"+this.B+"\x27,\047"+id+"\047\x29"; 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()=="\163c\x72\x6fll"){ this.H(); }else { this.G(); }} ; RadRotator.prototype.StopRotator= function (){if (this.RotatorMode.toLowerCase()=="scroll"){ 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()=="sc\x72\157ll"){ 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()=="\x73\x6cidesho\x77"){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+"_s"]); }}}} ; 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 && "\x63om\x70\x6cete"!=document.readyState){ this.S(window,"\x6coad",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()=="\x73croll" && (this.ScrollDirection.toLowerCase()=="left" || this.ScrollDirection.toLowerCase()=="\x72ight")){ this.l2=parseInt(width)/this.o; this.i2=parseInt(height); this.A.style.width=(this.l2*this.NumberOfFrames)+"\160x"; }if (this.RotatorMode.toLowerCase()=="scroll" && (this.ScrollDirection.toLowerCase()=="\x75p" || this.ScrollDirection.toLowerCase()=="down")){ this.l2=parseInt(width); this.i2=parseInt(height)/this.o; this.A.style.height=(this.i2*this.NumberOfFrames)+"\x70\x78"; }if (this.RotatorMode.toLowerCase()=="\x73lidesh\x6f\x77"){ 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+"\x70x"; }} ; 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)+"px"; } 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 "up":{ this.ScrollUpNextFrame(); break; }case "\x64\x6f\x77n":{ this.ScrollDownNextFrame(); break; }case "left":{ this.ScrollLeftNextFrame(); break; }case "r\x69\x67ht":{ this.ScrollRightNextFrame(); break; }}} ; RadRotator.prototype.ShowPrevFrame= function (){if (this.RotatorMode.toLowerCase()!="slideshow"){alert("\104\x6f\x20not \x63\x61ll \x74\x68is\x20functi\x6f\x6e wh\x65\156\x20rot\x61\x74or\x20\151s\x20in sc\x72\157l\x6cing m\x6fde!"); 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()!="slideshow"){alert("Do not\x20\x63all \x74\x68is \x66\165n\x63\x74ion\x20\x77hen\x20rotat\x6f\x72 i\x73\040\x69n scr\x6flling\x20\155\x6f\144e\x21"); 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+"p\x78"; this.I.filters[0].Play(); }else { this.A.style.top=Height+"p\x78"; } this.FireOnClientFrameChanged(); } ; RadRotator.prototype.ScrollLeftNextFrame= function (){if (this.RotatorMode.toLowerCase()!="s\x63\x72oll"){alert("\x44o not call\x20\x74his\x20\x66un\x63\164\x69\x6fn w\x68\x65n \x72ota\x74\157r\x20\151s\x20\151n\x20slide\x73how m\x6fde!"); return; }if (this.ScrollDirection.toLowerCase()=="up" || this.ScrollDirection.toLowerCase()=="d\x6f\x77n"){alert("\x44o not cal\x6c\x20thi\x73\x20fun\x63\164i\x6f\x6e w\x68\x65n \x72otator\x20is in \x76ertic\x61\154 \x73croll\x69ng mo\x64e!"); 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)+"px"; }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()!="\x73croll"){alert("\x44o not \x63\x61ll t\x68\x69s f\x75nction \x77\150\x65\156 \x72otato\x72 is i\x6e\x20sl\x69desho\x77\040\x6dode!"); return; }if (this.ScrollDirection.toLowerCase()=="\x75p" || this.ScrollDirection.toLowerCase()=="down"){alert("\x44o not \x63\x61ll t\x68\x69s f\x75\156c\x74\x69on\x20\x77he\x6e rotat\x6fr is i\x6e\040\x76\145r\x74ical \x73croll\x69ng m\x6fde\x21"); 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+"px"; }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+"px"; }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)+"px"; this.U=(this.U+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); this.O3= false; }} ; RadRotator.prototype.ScrollDownNextFrame= function (){if (this.RotatorMode.toLowerCase()!="\163cro\x6c\x6c"){alert("\x44\157 n\x6f\x74 cal\x6c\x20this fun\x63\164i\x6f\x6e wh\x65\x6e\x20rotat\x6f\162 \x69\163 \x69n sli\x64\145s\x68ow mo\x64e!"); return; }if (this.ScrollDirection.toLowerCase()=="\x72\151ght" || this.ScrollDirection.toLowerCase()=="\x6ceft"){alert("\x44o not c\x61\x6cl th\x69\x73 fu\x6e\x63tio\x6e\x20whe\x6e\040\x72otato\x72\040\x69\x73 i\x6e\040\x68\157r\x69zonta\x6c scro\x6clin\x67 mo\x64e!"); 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+"p\x78"; }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+"\x70x"; }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)+"\x70x"; this.U=(this.U+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); this.O3= false; }} ; RadRotator.prototype.ScrollUpNextFrame= function (){if (this.RotatorMode.toLowerCase()!="scroll"){alert("Do not call \x74his func\x74ion \x77hen r\x6f\x74ato\x72\x20is\x20in sli\x64eshow\x20\155\x6fde!"); return; }if (this.ScrollDirection.toLowerCase()=="\x72ight" || this.ScrollDirection.toLowerCase()=="\x6ceft"){alert("\x44o not call \x74\150i\x73\x20fun\x63\164io\x6e\040\x77\150e\x6e\040\x72\x6fta\x74\157r\x20is in\x20\150o\x72izont\x61l sc\x72oll\x69ng m\x6fde!"); 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)+"px"; }else {var l3=(this.i2*(-1)-parseInt(this.A.style.top))/this.SmoothScrollDelay; this.A.style.top=(parseInt(this.A.style.top)+l3-1)+"\160x"; }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); } ;
