﻿function SarosTicker(O)
{
    var o5=window[O]; 
    if (o5 && typeof(o5.Dispose)=="\146unction")
        {o5.Dispose(); }
    
    o5=null; 
    this.ClientID=O; 
    this.A=document.getElementById(O); 
    this.O5=0; 
    this.l5=0; 
    var Z=this ; 
    this.R= function (){Z.Dispose(); } ; 
    
    this.S(window,"unlo\x61d",Z.R); 
    if (window.OnCallbackRequestStart){
        var i5=this ; 
        var I5=window.OnCallbackRequestStart; 
        window.OnCallbackRequestStart= function (){i5.P(); I5(); };
    }
}

SarosTicker.prototype.Dispose= function (){ 
    this.r= true; 
    try { 
        this.P(); 
        this.Q(window,"\x75nload",this.R); 
        this.R=null; 
        this.A=null; 
    }
    catch (N){}
};
    
SarosTicker.prototype.S= function (c,n,M){
    try {
        if (c.attachEvent){
            c.attachEvent("on"+n,M); }
        else {
            c.addEventListener(n,M, true); }
        }
        catch (N){}
} ; 

SarosTicker.prototype.Q= function (c,n,M){
    if (c==null || n==null || M==null)return; 
    
    try {
        if (c.detachEvent){
            c.detachEvent("on"+n,M); }
        else {
            c.removeEventListener(n,M, true); 
        }
    }
    catch (N){}
} ; 

SarosTicker.prototype.Start= function (){
    if (this.AutoStart){ 
        this.StartTicker(); }
};

SarosTicker.prototype.StartTicker= function (){ 
    this.o6=1; 
    this.O6(0); 
};

SarosTicker.prototype.l6= function (){ 
    this.O6(this.O5); 
};

SarosTicker.prototype.O6= function (which){
    if (this.r== true)return; 
    
    this.l5=0; 
    this.A.innerHTML=""; 
    this.O5=which; 
    this.i6(which); 
};

SarosTicker.prototype.ResetTicker= function (){ 
    this.l5=0; 
    this.P(); 
    this.A.innerHTML=""; 
    return; 
};

SarosTicker.prototype.I6= function (o7){
    return o7.replace(/^\s{1,}/ig,"").replace(/\s{1,}$/ig,""); 
} ; 

SarosTicker.prototype.i6= function (which){
    if (this.r== true)return; 
    var O7=this.I6(this["Tic\x6berLine"+which]); 
    var l7=O7.length; 
    var i7=this.l5; 
    if (i7<l7){
        var innerHTML=this.A.innerHTML; 
    
        if (O7.charAt(i7)=="&"){
            innerHTML=innerHTML+"\x26amp;"; }
        else if (O7.charAt(i7)=="\x20" && i7+1<l7 && O7.charAt(i7+1)==" "){
            innerHTML=innerHTML+" "+"&n\x62\x73p;"; 
            this.l5++; }
        else {
            innerHTML=innerHTML+O7.charAt(i7); } 
            
        this.A.innerHTML=innerHTML; 
        this.l5++; 
        var Z=this ; 
        this.I7=window.setTimeout( function (){Z.i6(which);} ,this.TickSpeed); 
    }
    else { 
        this.o8(); 
        var action = this["Tic\x6berLineAction"+which];
        var target = this["Tic\x6berLineActionTarget"+which];
        this.A.parentNode.href = action;
        this.A.parentNode.target = target;
    }
};

SarosTicker.prototype.P= function (which){
    window.clearTimeout(this.I7); 
    window.clearTimeout(this.O8); 
};

SarosTicker.prototype.o8= function (which){ 
    this.l5=0; 
    var l8=(this.O5+1)%this.TickerLines; 
    if (l8<=this.O5 && !this.Loop){ 
        this.i8(); 
        return; }
    else { 
        this.O5=l8; }
        
    if (this.AutoAdvance){
        var Z=this ; 
        this.O8=window.setTimeout( function (){Z.O6(l8);} ,this.LineDuration); 
    }
};

SarosTicker.prototype.i8= function (){if (this.OnTickerEndCode){eval(this.OnTickerEndCode); }};

function DoAlert()
{
    alert(hello);
}