function RadRotator(O,o,ScrollDirection){var I=window[O]; if (I && typeof(I.Dispose)=="function"){I.Dispose(); } this.ClientID=O; this.SmoothScrollDelay=10; this.A=document.getElementById(O+"_Div"); this.U=document.getElementById(O+"_FrameCon\x74\x61iner"); if (o){ this.o=o; }else { this.o=1; } this.U.style.top="0px"; this.U.style.left="\x30px"; this.CurrentFrame=0; var Z=this ; this.A.RadResize=this.A.RadShow= function (){Z.FixHeight(); Z.Start(); };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.Start(); } ; this.S(this.A,"\x6dousee\x6e\x74er",this.z); this.S(this.A,"\x6douse\x6c\x65ave",this.w); this.S(this.A,"\x6douseove\x72",this.v); this.S(this.A,"mou\x73\x65out",this.T); this.S(window,"l\x6f\x61d",this.t); this.R= function (){Z.Dispose(); } ; this.S(window,"unloa\x64",Z.R); } ; RadRotator.prototype.Dispose= function (){ this.r= true; try { this.Q(window,"\x75\x6eload",this.R); this.R=null; this.P(); this.Q(this.A,"\x6d\157\x75\x73eent\x65\x72",this.z); this.z=null; this.Q(this.A,"\x6douselea\x76\x65",this.w); this.w=null; this.Q(this.A,"\x6douseover",this.v); this.v=null; this.Q(this.A,"\x6d\x6fuseout",this.T); this.T=null; this.Q(window,"\x6coad",this.t); this.t=null; this.A=null; this.U=null; }catch (N){}};RadRotator.prototype.attachEvent= function (n,M){var m=this.L(M); var l= function (K,k){return m(K,k); };this[n+"Ha\x6e\x64ler"]=l; } ; RadRotator.prototype.L= function (J){var l= function (K,k){} ; if (typeof(J).toString().toLowerCase()=="functi\x6f\x6e"){l=J; }else if (typeof(J).toString().toLowerCase()=="stri\x6e\x67"){try {l=eval(J);}catch (N){}}return l; };RadRotator.prototype.FireOnClientFrameChanging= function (K){if (this.OnClientFrameChangingHandler!=null){var l=this.OnClientFrameChangingHandler; return l(this, {} ); }};RadRotator.prototype.FireOnClientFrameChanged= function (K){ this.H(); var Z=this ; if (this.RotatorMode.toLowerCase()=="\x73croll"){window.clearTimeout(this.h); this.h=0; this.h=window.setTimeout( function (){Z.G();} ,this.FrameTimeout); }if (this.RotatorMode.toLowerCase()=="slidesh\x6f\x77"){window.clearTimeout(this.g); this.g=0; this.g=window.setTimeout( function (){Z.F();} ,this.FrameTimeout); }if (this.OnClientFrameChangedHandler!=null){var l=this.OnClientFrameChangedHandler; return l(this, {} ); }};RadRotator.prototype.f= function (max){return parseInt(((max*Math.random())%max)); } ; RadRotator.prototype.D= function (d){if (d){ this.C= true; }else { this.C= false; }} ; RadRotator.prototype.S= function (c,n,M){try {if (c.attachEvent){c.attachEvent("on"+n,M); }else {c.addEventListener(n,M, true); }}catch (N){}} ; RadRotator.prototype.Q= function (c,n,M){if (c==null || n==null || M==null)return; try {if (c.detachEvent){c.detachEvent("\x6f\x6e"+n,M); }else {c.removeEventListener(n,M, true); }}catch (N){}} ; RadRotator.prototype.W= function (e){if (!this.AutoAdvance){return; }if (this.PauseOnMouseOver){ this.D( true); }};RadRotator.prototype.V= function (){if (!this.AutoAdvance){return; }if (this.PauseOnMouseOver){ this.D( false); }} ; RadRotator.prototype.OnMouseOver= function (){if (!this.AutoAdvance){return; }if (document.all && !window.opera){return; }if (this.PauseOnMouseOver){ this.D( true); }} ; RadRotator.prototype.OnMouseOut= function (){if (!this.AutoAdvance){return; }if (document.all && !window.opera){return; }if (this.PauseOnMouseOver){ this.D( false); }} ; RadRotator.prototype.B= function (id){var o0="\137\x5f\144oPo\x73\x74Bac\x6b\x28\x27"+this.O0+"\047\x2c\047"+id+"\x27)"; eval(o0); return; } ; RadRotator.prototype.StartRotator= function (){ this.l0= false; if (this.i0==0){return; } this.i0=0; this.AutoAdvance=1; if (this.RotatorMode.toLowerCase()=="s\x63\x72\x6fll"){ this.G(); }else { this.F(); }} ; RadRotator.prototype.StopRotator= function (){if (this.RotatorMode.toLowerCase()=="\x73\x63roll"){ this.I0(); }else { this.o1(); }} ; RadRotator.prototype.o1= function (){ this.i0=1; this.AutoAdvance=0; } ; RadRotator.prototype.I0= function (){ this.i0=1; this.AutoAdvance=0; } ; RadRotator.prototype.Start= function (){if (this.r== true)return; if (this.A.offsetWidth==0){return; } this.FixHeight(); this.H(); if (this.RotatorMode!=null && this.RotatorMode.toLowerCase()=="scroll"){ this.O1(); var Z=this ; window.clearTimeout(this.h); this.h=window.setTimeout( function (){Z.G();} ,this.FrameTimeout); }if (this.RotatorMode!=null && this.RotatorMode.toLowerCase()=="\x73lideshow"){var Z=this ; window.clearTimeout(this.g); if (this.UseRandomSlide){Z.F(); }else { this.g=window.setTimeout( function (){Z.F();} ,this.FrameTimeout); }}} ; RadRotator.prototype.H= function (){if (this.r== true)return; if (this.HasTickers){ this.ResetTickers(); var l1=this.FrameIdArray; var i1=I1(this.A); for (var i=0; i<this.NumberOfFrames; i++){var o2=document.getElementById(l1[i]); var O2=I1(o2); if (i1.l2(O2) || ((null!=document.readyState && "c\x6fmplete"!=document.readyState))){eval(this[o2.id+"_s"]); }}}} ; RadRotator.prototype.ResetTickers= function (){if (this.HasTickers){for (var i=0; i<this.NumberOfTickers; i++){eval(this.TickerIdArray[i]).ResetTicker(); }}} ; RadRotator.prototype.Freeze= function (){ this.l0= true; };RadRotator.prototype.FixHeight= function (){var width; var height; if (parseInt(this.A.offsetWidth)>0){width=this.A.offsetWidth; }else {width=this.A.style.width; }if (parseInt(this.A.offsetHeight)>0){height=this.A.offsetHeight; }else {height=this.A.style.height; }if (this.RotatorMode.toLowerCase()=="\x73crol\x6c" && (this.ScrollDirection.toLowerCase()=="left" || this.ScrollDirection.toLowerCase()=="\x72ight")){ this.i2=parseInt(width)/this.o; this.I2=parseInt(height); this.U.style.width=(this.i2*this.NumberOfFrames)+"\x70\x78"; }if (this.RotatorMode.toLowerCase()=="\x73croll" && (this.ScrollDirection.toLowerCase()=="u\x70" || this.ScrollDirection.toLowerCase()=="\x64own")){ this.i2=parseInt(width); this.I2=parseInt(height)/this.o; this.U.style.height=(this.I2*this.NumberOfFrames)+"\160\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+"px"; o2.style.width=this.i2+"px"; }} ; RadRotator.prototype.F= function (){if (this.r== true)return; if (this.NumberOfFrames/this.o<=1){return; }if (this.AutoAdvance){ this.ShowNextFrame(); }} ; RadRotator.prototype.O1= function (){if (this.ScrollDirection.toLowerCase()=="\144\x6f\x77n"){ this.U.style.top=(this.NumberOfFrames-this.o)*this.I2*(-1)+"\x70\x78"; }if (this.ScrollDirection.toLowerCase()=="\x72ight"){ this.U.style.left=(this.NumberOfFrames-this.o)*this.i2*(-1)+"px"; } this.H(); };RadRotator.prototype.G= function (){if (this.r== true)return; 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 "\x75p":{ 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()!="\x73lideshow"){alert("\x44o not call t\x68\151s\x20\x66u\x6e\x63tio\x6e\x20whe\x6e\x20\x72otat\x6f\162 \x69s in s\x63rolli\x6e\147 \x6dode!"); return; } this.CurrentFrame=(this.CurrentFrame-2)%this.NumberOfFrames; if (this.CurrentFrame<-1){ this.CurrentFrame=this.NumberOfFrames-2; } this.ShowNextFrame(); } ; RadRotator.prototype.ShowNextFrame= function (){if (this.r== true)return; if (this.RotatorMode.toLowerCase()!="\163li\x64\x65show"){alert("Do not\x20\x63all t\x68\x69s fu\x6ection w\x68\x65n r\x6f\164a\x74or is\x20in scr\x6f\154l\x69ng mo\x64\145!"); return; }if (this.C){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.U.style.top));}else { this.CurrentFrame=(this.CurrentFrame+1)%this.NumberOfFrames; Height=this.CurrentFrame*this.I2*(-1); }if (this.UseTransition && document.all && !window.opera){try {if (this.UseRandomEffect){ this.A.style.filter=this.TransitionStrings[this.f(17)]; }else { this.A.style.filter=this.TransitionString; } this.A.filters[0].Apply(); this.A.filters[0].Play(); }catch (e){}} this.U.style.top=Height+"\x70x"; this.FireOnClientFrameChanged(); } ; RadRotator.prototype.ScrollLeftNextFrame= function (){if (this.r== true)return; if (this.RotatorMode.toLowerCase()!="\x73croll"){alert("Do not ca\x6c\x6c th\x69\x73 fu\x6ection \x77\x68en \x72otator\x20is in \x73lides\x68\157\x77\040\x6dode!"); return; }if (this.ScrollDirection.toLowerCase()=="\x75p" || this.ScrollDirection.toLowerCase()=="down"){alert("\x44o no\x74\x20call\x20\x74his \x66unction\x20\x77hen\x20\162\x6f\164a\x74\157r\x20\151s\x20in ve\x72\164i\x63al sc\x72olli\x6eg \x6dode!"); return; }if (this.l0){return; }if (this.C){var Z=this ; this.O3=0; this.O3=window.setTimeout( function (){Z.ScrollLeftNextFrame();} ,this.ScrollSpeed);return; }if (parseInt(this.U.style.left)>this.i2*(-1)){ this.l3= true; if (!this.UseSmoothScroll){ this.U.style.left=(parseInt(this.U.style.left)-1)+"px"; }else {var i3=(this.i2*(-1)-parseInt(this.U.style.left))/this.SmoothScrollDelay; this.U.style.left=(parseInt(this.U.style.left)+i3-1)+"px"; }var Z=this ; this.O3=0; this.O3=window.setTimeout( function (){Z.ScrollLeftNextFrame();} ,this.ScrollSpeed); }else {var I3=this.U.firstChild.firstChild.firstChild; this.U.firstChild.firstChild.removeChild(this.U.firstChild.firstChild.firstChild); this.U.firstChild.firstChild.appendChild(I3); this.U.style.left="\x30px"; this.CurrentFrame=(this.CurrentFrame+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); this.l3= false; }} ; RadRotator.prototype.ScrollRightNextFrame= function (){if (this.r== true)return; if (this.RotatorMode.toLowerCase()!="sc\x72\x6fll"){alert("\x44\x6f not ca\x6c\x6c th\x69\x73 \x66\165n\x63\x74io\x6e\x20wh\x65n ro\x74\141t\x6f\162 \x69s in \x73\154i\x64eshow\x20mode\x21"); return; }if (this.ScrollDirection.toLowerCase()=="up" || this.ScrollDirection.toLowerCase()=="\x64own"){alert("Do not call\x20\x74his\x20\x66unc\x74\x69on\x20\x77hen\x20\x72ot\x61tor is\x20\151\x6e\040\x76ertic\x61l scr\x6f\154\x6c\151n\x67 mo\x64e!"); return; }if (this.l0){return; }if (this.C){var Z=this ; this.O3=0; this.O3=window.setTimeout( function (){Z.ScrollRightNextFrame();} ,this.ScrollSpeed);return; }if (parseInt(this.U.style.left)<this.i2*(this.NumberOfFrames-this.o-1)*(-1)){ this.l3= true; if (!this.UseSmoothScroll){ this.U.style.left=parseInt(this.U.style.left)+1+"\x70x"; }else {var i3=(((this.NumberOfFrames-this.o)*this.i2*(-1)+this.i2)-parseInt(this.U.style.left))/this.SmoothScrollDelay; this.U.style.left=parseInt(this.U.style.left)+i3+"\x70x"; }var Z=this ; this.O3=0; this.O3=window.setTimeout( function (){Z.ScrollRightNextFrame();} ,this.ScrollSpeed); }else {var I3=this.U.firstChild.firstChild.lastChild; this.U.firstChild.firstChild.removeChild(this.U.firstChild.firstChild.lastChild); this.U.firstChild.firstChild.insertBefore(I3,this.U.firstChild.firstChild.firstChild); this.U.style.left=(this.NumberOfFrames-this.o)*this.i2*(-1)+"\x70x"; this.CurrentFrame=(this.CurrentFrame+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); this.l3= false; }} ; RadRotator.prototype.ScrollDownNextFrame= function (){if (this.r== true)return; if (this.RotatorMode.toLowerCase()!="scrol\x6c"){alert("\x44\x6f not \x63\x61ll \x74\x68is\x20\x66un\x63\x74ion\x20\167\x68en ro\x74ator \x69\163 \x69n sli\x64\145s\x68ow m\x6f\144e\x21"); return; }if (this.ScrollDirection.toLowerCase()=="right" || this.ScrollDirection.toLowerCase()=="\x6ceft"){alert("Do not\x20\x63all t\x68\x69s f\x75\156c\x74\x69on \x77\150e\x6e\x20r\x6f\164a\x74\157r\x20\151s\x20in ho\x72izont\x61\154\x20\163\x63rol\x6c\151\x6eg mo\x64e!"); return; }if (this.l0){return; }if (this.C){var Z=this ; this.O3=0; this.O3=window.setTimeout( function (){Z.ScrollDownNextFrame();} ,this.ScrollSpeed);return; }if (parseInt(this.U.style.top)<(this.NumberOfFrames-this.o)*this.I2*(-1)+this.I2){ this.l3= true; if (!this.UseSmoothScroll){ this.U.style.top=parseInt(this.U.style.top)+1+"\x70x"; }else {var i3=(((this.NumberOfFrames-this.o)*this.I2*(-1)+this.I2)-parseInt(this.U.style.top))/this.SmoothScrollDelay; this.U.style.top=parseInt(this.U.style.top)+i3+"px"; }var Z=this ; this.O3=0; this.O3=window.setTimeout( function (){Z.ScrollDownNextFrame();} ,this.ScrollSpeed); }else {var I3=this.U.lastChild; this.U.removeChild(this.U.lastChild); this.U.insertBefore(I3,this.U.firstChild); this.U.style.top=(this.NumberOfFrames-this.o)*this.I2*(-1)+"\x70x"; this.CurrentFrame=(this.CurrentFrame+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); this.l3= false; }} ; RadRotator.prototype.ScrollUpNextFrame= function (){if (this.r== true)return; if (this.RotatorMode.toLowerCase()!="\x73croll"){alert("\x44o not c\x61\x6cl th\x69\x73 f\x75nction \x77\x68en \x72\157\x74ato\x72 is in\x20\163l\x69desho\x77\040\x6dode!"); return; }if (this.ScrollDirection.toLowerCase()=="right" || this.ScrollDirection.toLowerCase()=="left"){alert("Do not\x20\x63all \x74\x68is f\x75nction \x77\x68en \x72otator \x69s in h\x6frizont\x61l scr\x6f\154\x6c\151n\x67 mod\x65\041"); return; }if (this.l0){return; }if (this.C){var Z=this ; this.O3=0; this.O3=window.setTimeout( function (){Z.ScrollUpNextFrame();} ,this.ScrollSpeed);return; }if (parseInt(this.U.style.top)>this.I2*(-1)){ this.l3= true; if (!this.UseSmoothScroll){ this.U.style.top=(parseInt(this.U.style.top)-1)+"\x70x"; }else {var i3=(this.I2*(-1)-parseInt(this.U.style.top))/this.SmoothScrollDelay; this.U.style.top=(parseInt(this.U.style.top)+i3-1)+"\x70x"; }var Z=this ; this.O3=0; this.O3=window.setTimeout( function (){Z.ScrollUpNextFrame();} ,this.ScrollSpeed); }else {try {var I3=this.U.firstChild; this.U.removeChild(this.U.firstChild); this.U.appendChild(I3); this.U.style.top="0px"; this.CurrentFrame=(this.CurrentFrame+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); this.l3= false; }catch (e){alert(e); }}} ; 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.P= 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); } ;
if (typeof(Sys) != "undefined"){if (Sys.Application != null && Sys.Application.notifyScriptLoaded != null){Sys.Application.notifyScriptLoaded();}}if (typeof(Sys) != "undefined"){if (Sys.Application != null && Sys.Application.notifyScriptLoaded != null){Sys.Application.notifyScriptLoaded();}}