function RadRotator(O,o,ScrollDirection){ this.ClientID=O; this.SmoothScrollDelay=10; this.I=document.getElementById(O+"\x5f\x44iv"); this.A=document.getElementById(O+"\x5fFrameCon\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,"\155\x6f\x75selea\x76\x65",this.w); this.S(this.I,"mouse\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+"Handler"]=M; } ; RadRotator.prototype.n= function (l){var M= function (m,L){} ; if (typeof(l).toString().toLowerCase()=="function"){M=l; }else if (typeof(l).toString().toLowerCase()=="\x73t\x72\x69ng"){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()=="sc\x72\x6fll"){window.clearTimeout(this.J); this.J=0; this.J=window.setTimeout( function (){Z.H();} ,this.FrameTimeout); }if (this.RotatorMode.toLowerCase()=="\x73lideshow"){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("o\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="__doPostBac\x6b(\047"+this.B+"\047\x2c\047"+id+"\x27\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()=="\x73croll"){ 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()=="\x73croll"){ 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()=="\x73lideshow"){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 && "\143\x6fmplete"!=document.readyState){ this.S(window,"load",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()=="\x73crol\x6c" && (this.ScrollDirection.toLowerCase()=="\x6c\145f\x74" || this.ScrollDirection.toLowerCase()=="right")){ this.l2=parseInt(width)/this.o; this.i2=parseInt(height); this.A.style.width=(this.l2*this.NumberOfFrames)+"px"; }if (this.RotatorMode.toLowerCase()=="scroll" && (this.ScrollDirection.toLowerCase()=="\x75p" || this.ScrollDirection.toLowerCase()=="do\x77\x6e")){ this.l2=parseInt(width); this.i2=parseInt(height)/this.o; this.A.style.height=(this.i2*this.NumberOfFrames)+"px"; }if (this.RotatorMode.toLowerCase()=="\x73lideshow"){ 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()=="\x64own"){ this.A.style.top=(this.NumberOfFrames-this.o)*this.i2*(-1)+"\x70x"; }if (this.ScrollDirection.toLowerCase()=="\x72ight"){ 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 "up":{ this.ScrollUpNextFrame(); break; }case "\x64own":{ this.ScrollDownNextFrame(); break; }case "\x6c\x65ft":{ this.ScrollLeftNextFrame(); break; }case "r\x69\x67ht":{ this.ScrollRightNextFrame(); break; }}} ; RadRotator.prototype.ShowPrevFrame= function (){if (this.RotatorMode.toLowerCase()!="\163\x6c\x69desh\x6f\x77"){alert("\x44o not call \x74\x68is \x66\x75n\x63tion w\x68\x65n r\x6ftato\x72 is i\x6e\040\x73croll\x69\156g\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()!="\x73\x6cideshow"){alert("\x44o not cal\x6c\x20thi\x73\x20fu\x6e\x63tio\x6e\x20whe\x6e\040\x72otato\x72\040i\x73 in s\x63\x72ol\x6cing m\x6fde!"); 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+"px"; this.I.filters[0].Play(); }else { this.A.style.top=Height+"\x70\x78"; } this.FireOnClientFrameChanged(); } ; RadRotator.prototype.ScrollLeftNextFrame= function (){if (this.RotatorMode.toLowerCase()!="\x73croll"){alert("Do not call\x20\x74his\x20\x66unc\x74ion whe\x6e\x20ro\x74\x61to\x72 is \x69\156\x20\163l\x69d\x65show \x6d\157\x64\145\x21"); return; }if (this.ScrollDirection.toLowerCase()=="u\x70" || this.ScrollDirection.toLowerCase()=="down"){alert("Do not c\x61\x6cl t\x68\x69s f\x75\156c\x74\x69on\x20\x77hen\x20rotat\x6f\162 \x69\163 \x69n ver\x74\151c\x61l sc\x72\157l\x6cing\x20mo\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)+"\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)+"px"; }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="\060\x70x"; this.U=(this.U+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); this.O3= false; }} ; RadRotator.prototype.ScrollRightNextFrame= function (){if (this.RotatorMode.toLowerCase()!="scroll"){alert("\x44o n\x6f\x74 call\x20\x74his\x20functio\x6e\040\x77\150e\x6e rot\x61tor is\x20\151n\x20slide\x73\150o\x77 mode\x21"); return; }if (this.ScrollDirection.toLowerCase()=="\x75p" || this.ScrollDirection.toLowerCase()=="d\x6f\x77n"){alert("\x44\x6f not c\x61\154l\x20\x74his\x20\x66unc\x74\151on\x20\167h\x65n rota\x74or is \x69\156 \x76ertic\x61\154 \x73crol\x6c\151\x6eg mo\x64e!"); 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+"\x70\x78"; }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()!="scr\x6f\x6cl"){alert("\x44o not ca\x6c\x6c thi\x73\x20f\x75nction \x77\x68en \x72\157\x74ator\x20is in\x20\163l\x69\144e\x73how m\x6fde!"); return; }if (this.ScrollDirection.toLowerCase()=="r\x69\x67ht" || this.ScrollDirection.toLowerCase()=="\x6c\145ft"){alert("Do not call \x74his func\x74\x69on \x77\150e\x6e\040\x72\157t\x61tor is\x20\151n\x20\150o\x72izont\x61\154 \x73croll\x69ng m\x6fde!"); 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+"\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()!="\x73croll"){alert("\x44o not call \x74\x68is \x66\x75nc\x74ion whe\x6e\x20ro\x74\x61\x74or is \x69\156\x20slide\x73\150o\x77 mode\x21"); return; }if (this.ScrollDirection.toLowerCase()=="\x72ight" || this.ScrollDirection.toLowerCase()=="\x6c\x65ft"){alert("Do not call\x20\x74his \x66\x75nc\x74\x69on \x77\150e\x6e\x20ro\x74ator i\x73 in ho\x72\151z\x6fntal \x73croll\x69ng mo\x64e!"); 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)+"px"; }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="0px"; 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); } ;
