function RadRotator(O,o,ScrollDirection){ this.ClientID=O; this.SmoothScrollDelay=10; this.I=document.getElementById(O+"\x5f\x44iv"); this.A=document.getElementById(O+"\x5f\x46rameCo\x6e\x74ai\x6e\x65r"); if (o){ this.o=o; }else { this.o=1; } this.A.style.top="\x30px"; this.A.style.left="\x30px"; 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,"\x6dous\x65\x65nter",this.z); this.S(this.I,"mouse\x6c\x65ave",this.w); this.S(this.I,"m\x6f\x75seover",this.v); this.S(this.I,"\x6douseou\x74",this.T); if (window.OnCallbackRequestStart){var R=this ; var r=window.OnCallbackRequestStart; window.OnCallbackRequestStart= function (){R.Q(); r(); };}} ; RadRotator.prototype.attachEvent= function (P,N){var n=this.M(N); var m= function (L,l){return n(L,l); };this[P+"\x48andler"]=m; } ; RadRotator.prototype.M= function (K){var m= function (L,l){} ; if (typeof(K).toString().toLowerCase()=="function"){m=K; }else if (typeof(K).toString().toLowerCase()=="string"){try {m=eval(K);}catch (k){}}return m; };RadRotator.prototype.FireOnClientFrameChanging= function (L){if (this.OnClientFrameChangingHandler!=null){var m=this.OnClientFrameChangingHandler; return m(this, {} ); }};RadRotator.prototype.FireOnClientFrameChanged= function (L){ this.J(); var Z=this ; if (this.RotatorMode.toLowerCase()=="\x73croll"){window.clearTimeout(this.H); this.H=0; this.H=window.setTimeout( function (){Z.h();} ,this.FrameTimeout); }if (this.RotatorMode.toLowerCase()=="\x73\x6cideshow"){window.clearTimeout(this.G); this.G=0; this.G=window.setTimeout( function (){Z.g();} ,this.FrameTimeout); }if (this.OnClientFrameChangedHandler!=null){var m=this.OnClientFrameChangedHandler; return m(this, {} ); }};RadRotator.prototype.F= function (max){return parseInt(((max*Math.random())%max)); } ; RadRotator.prototype.f= function (D){if (D){ this.d= true; }else { this.d= false; }} ; RadRotator.prototype.S= function (C,P,N){try {if (document.all){C.attachEvent("\x6fn"+P,N); }else {C.addEventListener(P,N, 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 B="__doP\x6fst\x42\x61ck(\x27"+this.o0+"\047\x2c\047"+id+"\047\x29"; eval(B); return; } ; RadRotator.prototype.StartRotator= function (){ this.O0= false; if (this.l0==0){return; } this.l0=0; this.AutoAdvance=1; if (this.RotatorMode.toLowerCase()=="scro\x6c\x6c"){ this.h(); }else { this.g(); }} ; RadRotator.prototype.StopRotator= function (){if (this.RotatorMode.toLowerCase()=="\x73\143rol\x6c"){ this.i0(); }else { this.I0(); }} ; RadRotator.prototype.I0= function (){ this.l0=1; this.AutoAdvance=0; } ; RadRotator.prototype.i0= function (){ this.l0=1; this.AutoAdvance=0; } ; RadRotator.prototype.Start= function (){ this.FixHeight(); this.J(); if (this.RotatorMode!=null && this.RotatorMode.toLowerCase()=="\x73croll"){ this.o1(); var Z=this ; window.clearTimeout(this.H); this.H=window.setTimeout( function (){Z.h();} ,this.FrameTimeout); }if (this.RotatorMode!=null && this.RotatorMode.toLowerCase()=="slides\x68\x6fw"){var Z=this ; window.clearTimeout(this.G); this.G=window.setTimeout( function (){Z.g();} ,this.FrameTimeout); }} ; RadRotator.prototype.J= function (){if (this.HasTickers){ this.O1(); var l1=this.FrameIdArray; var i1=I1(this.I); for (var i=0; i<this.NumberOfFrames; i++){var o2=document.getElementById(l1[i]); var O2=I1(o2); if (i1.l2(O2)){eval(this[o2.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 && "c\x6fmplete"!=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()=="sc\x72\x6fll" && (this.ScrollDirection.toLowerCase()=="\x6ceft" || this.ScrollDirection.toLowerCase()=="\x72ight")){ this.i2=parseInt(width)/this.o; this.I2=parseInt(height); this.A.style.width=(this.i2*this.NumberOfFrames)+"\x70x"; }if (this.RotatorMode.toLowerCase()=="\x73croll" && (this.ScrollDirection.toLowerCase()=="\x75p" || this.ScrollDirection.toLowerCase()=="do\x77\x6e")){ this.i2=parseInt(width); this.I2=parseInt(height)/this.o; this.A.style.height=(this.I2*this.NumberOfFrames)+"\x70\x78"; }if (this.RotatorMode.toLowerCase()=="\x73\x6cideshow"){ this.i2=parseInt(width); this.I2=parseInt(height); }var l1=this.FrameIdArray; for (var i=0; i<this.NumberOfFrames; i++){var o2=document.getElementById(l1[i]); o2.style.height=this.I2+"\x70x"; o2.style.width=this.i2+"\x70\x78"; }} ; RadRotator.prototype.g= function (){if (this.NumberOfFrames/this.o<=1){return; }if (this.AutoAdvance){ this.ShowNextFrame(); }} ; RadRotator.prototype.o1= 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.i2*(-1)+"px"; } this.J(); };RadRotator.prototype.h= function (){if (this.NumberOfFrames/this.o<=1){return; }if (this.FireOnClientFrameChanging(this )== false){return; }if (this.AutoAdvance){ this.o3(); }} ; RadRotator.prototype.o3= function (){switch (this.ScrollDirection.toLowerCase()){case "\x75\x70":{ this.ScrollUpNextFrame(); break; }case "\x64\x6fwn":{ this.ScrollDownNextFrame(); break; }case "\x6ceft":{ this.ScrollLeftNextFrame(); break; }case "right":{ this.ScrollRightNextFrame(); break; }}} ; RadRotator.prototype.ShowPrevFrame= function (){if (this.RotatorMode.toLowerCase()!="\x73\154\x69\x64esho\x77"){alert("Do no\x74\x20call \x74\x68is f\x75nction \x77hen ro\x74\x61to\x72 is \x69n scro\x6cling 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()!="slidesho\x77"){alert("\x44o not call \x74\x68is \x66\x75nc\x74\x69on \x77\x68en \x72\157\x74ator i\x73\040\x69n scr\x6flling\x20\155o\x64e!"); return; }if (this.d){var Z=this ; window.clearTimeout(this.G); this.G=0; this.G=window.setTimeout( function (){Z.ShowNextFrame();} ,this.FrameTimeout); return; }if (this.FireOnClientFrameChanging(this )== false){return; }var Height; if (this.UseRandomSlide){ do {Height=this.F(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.F(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+"\160\x78"; } this.FireOnClientFrameChanged(); } ; RadRotator.prototype.ScrollLeftNextFrame= function (){if (this.RotatorMode.toLowerCase()!="scroll"){alert("\x44o not c\x61\x6cl t\x68\x69s f\x75nction \x77\x68en \x72otato\x72 is in\x20\163\x6c\x69de\x73\150\x6f\167 \x6dode!"); return; }if (this.ScrollDirection.toLowerCase()=="up" || this.ScrollDirection.toLowerCase()=="\x64\x6fwn"){alert("\x44o not cal\x6c\040\x74\150is\x20functi\x6f\x6e w\x68\x65n \x72otato\x72\040\x69\163 \x69n ver\x74ical \x73crol\x6c\151\x6eg m\x6fde!"); 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.i2*(-1)){ this.l3= true; if (!this.UseSmoothScroll){ this.A.style.left=(parseInt(this.A.style.left)-1)+"px"; }else {var i3=(this.i2*(-1)-parseInt(this.A.style.left))/this.SmoothScrollDelay; this.A.style.left=(parseInt(this.A.style.left)+i3-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="\x30\x70x"; this.U=(this.U+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); this.l3= false; }} ; RadRotator.prototype.ScrollRightNextFrame= function (){if (this.RotatorMode.toLowerCase()!="scroll"){alert("Do \x6e\x6ft cal\x6c\x20thi\x73\x20fu\x6e\x63tio\x6e\040\x77hen r\x6ftator\x20is in \x73lidesh\x6fw mod\x65!"); return; }if (this.ScrollDirection.toLowerCase()=="up" || this.ScrollDirection.toLowerCase()=="down"){alert("Do not cal\x6c\040\x74\150is\x20functio\x6e\040w\x68\x65n \x72\157\x74\141t\x6f\162 \x69s in \x76\145r\x74ical\x20\163\x63\162\x6fll\x69ng \x6dode!"); 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.i2*(this.NumberOfFrames-this.o-1)*(-1)){ this.l3= true; if (!this.UseSmoothScroll){ this.A.style.left=parseInt(this.A.style.left)+1+"px"; }else {var i3=(((this.NumberOfFrames-this.o)*this.i2*(-1)+this.i2)-parseInt(this.A.style.left))/this.SmoothScrollDelay; this.A.style.left=parseInt(this.A.style.left)+i3+"\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.i2*(-1)+"p\x78"; this.U=(this.U+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); this.l3= false; }} ; RadRotator.prototype.ScrollDownNextFrame= function (){if (this.RotatorMode.toLowerCase()!="scroll"){alert("Do not\x20\x63all\x20\x74his \x66unction\x20\x77he\x6e\x20rot\x61tor \x69\163\x20\151n\x20slide\x73\150o\x77 mode\x21"); return; }if (this.ScrollDirection.toLowerCase()=="right" || this.ScrollDirection.toLowerCase()=="left"){alert("Do not\x20\x63all t\x68\151s\x20\146u\x6e\x63tio\x6e\x20wh\x65\x6e r\x6ftator \x69s in h\x6frizon\x74\141l\x20scrol\x6cing \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.l3= true; if (!this.UseSmoothScroll){ this.A.style.top=parseInt(this.A.style.top)+1+"\x70x"; }else {var i3=(((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)+i3+"px"; }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.l3= false; }} ; RadRotator.prototype.ScrollUpNextFrame= function (){if (this.RotatorMode.toLowerCase()!="\x73croll"){alert("D\x6f\x20not ca\x6c\154\x20\x74hi\x73 functi\x6f\x6e w\x68\x65n \x72ota\x74\x6fr \x69\163 \x69n sli\x64\145s\x68ow mo\x64e!"); return; }if (this.ScrollDirection.toLowerCase()=="\x72ight" || this.ScrollDirection.toLowerCase()=="left"){alert("Do not cal\x6c\x20thi\x73\x20fun\x63\x74ion\x20\167h\x65\x6e r\x6ftator \x69\163 \x69n hori\x7aontal\x20\163c\x72ollin\x67 mod\x65!"); 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.l3= true; if (!this.UseSmoothScroll){ this.A.style.top=(parseInt(this.A.style.top)-1)+"\x70x"; }else {var i3=(this.I2*(-1)-parseInt(this.A.style.top))/this.SmoothScrollDelay; this.A.style.top=(parseInt(this.A.style.top)+i3-1)+"\x70x"; }var Z=this ; this.O3=0; this.O3=window.setTimeout( function (){Z.ScrollUpNextFrame();} ,this.ScrollSpeed); }else {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.l3= false; }} ; function o4(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; } ; o4.prototype.O4= function (){return new o4(this.left,this.top,this.width,this.height); } ; o4.prototype.l4= function (x,y){return (this.left<=x && x<=(this.left+this.width) && this.top<=y && y<=(this.top+this.height)); } ; o4.prototype.l2= function (i4){if (null==i4){return false; }if (this ==i4){return true; }return (i4.left<this.right && i4.top<this.bottom && i4.right>this.left && i4.bottom>this.top); } ; o4.prototype.I4= function (i4){if (null==i4){return false; }if (this ==i4){return this.O4(); }if (!this.l2(i4)){return new o4(); }var left=Math.max(this.left,i4.left); var top=Math.max(this.top,i4.top); var right=Math.min(this.right,i4.right); var bottom=Math.min(this.bottom,i4.bottom); return new o4(left,right,right-left,bottom-top); } ; RadRotator.prototype.Q= function (){window.clearTimeout(this.H); window.clearTimeout(this.G); window.clearTimeout(this.O3); } ; function I1(C){if (!C){C=this ; }var left=0; var top=0; var width=C.offsetWidth; var height=C.offsetHeight; while (C.offsetParent){left+=C.offsetLeft; top+=C.offsetTop; C=C.offsetParent; }if (C.x){left=C.x; }if (C.y){top=C.y; }return new o4(left,top,width,height); } ;
