ns4 = (document.layers) ? true : false;
ie4 = (document.all) ? true : false;

txts = new Array(4);
var txtsi = 0;

function init()
{
        var n = 0;
        if(ns4) txtl = document.divTX;
        else if(ie4){ txtl = divTX.style; txtl.cxip = new Object(); }
        else document.location="nosuchfile.html";

        for( var i = 0; i  4; i++ )
        {
                if(ns4) txts[i] = eval('document.divT' + i);
                else if(ie4) txts[i] = eval('divT' + i +'.style');
        }
        
        w = ns4 ? txtl.document.width : 600;
        xclp0(txtl,0, w, 0, 240);  
         
        txtl.visibility = "visible";
        txtl.yinc = 20;
        txtl.ct = 0;
        txtl.ctlim = 7; 
        
        setTimeout("mvt()", 120);
        setTimeout("sht()", 120);
        setTimeout("shwf(1);", 1000);
}

function xclp0(o,l,r,t,b)
{
        if(ie4) { o.clip="rect("+t+","+r+","+b+","+l+")"; 
                  o.cxip.left=l; o.cxip.right=r; o.cxip.top=t; o.cxip.bottom=b; }
        if(ns4) { o.clip.left=l; o.clip.right=r; o.clip.top=t; o.clip.bottom=b; }
}

function mvt()
{
        if( txtl.ct++ == 0 )
                txtl.visibility = "visible";
        if( txtl.ct == txtl.ctlim )
        {
                txtl.visibility = "hidden";
                txtl.ct = 0;
                txtl.ctlim = Math.round(Math.random()*10)+1;
        }
                
        c = ns4 ? txtl.clip : txtl.cxip;
        h = ns4 ? txtl.document.height/2 : 150;
        t = ns4 ? txtl.top : parseInt(txtl.top);
        if( t = 150-h )
        {
                t += h;
                c.top -= h;
                c.bottom -= h;     
        }
        
        txtl.top = t - txtl.yinc;
        c.top += txtl.yinc;
        c.bottom += txtl.yinc;
        if( ie4 ) txtl.clip = "rect("+c.top+","+c.right+","+c.bottom+","+c.left+")";
        
        setTimeout("mvt()", 100);       
}