ttmy_rdo = Math.random()*100000000000000000;
ttmy_ns6 = navigator.userAgent.match('Gecko');
ttmy_ns4linux = navigator.userAgent.match('Linux') && navigator.userAgent.match('Mozilla/4.');

function verifyCompatibleBrowser(){
    this.ver=navigator.appVersion
    this.dom=document.getElementById?1:0
    this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
    this.ie4=(document.all && !this.dom)?1:0;
    this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;

    this.ns4=(document.layers && !this.dom)?1:0;
    this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
    return this
}

ttmy_bw=new verifyCompatibleBrowser()

var ttmy_speed=50
var ttmy_loop, ttmy_timer, ttmy_scroll
var ttmy_lines=0;
var ttmy_countloops=0;
var ttmy_isticker=0;

function ConstructObject(obj,nest){
    nest=(!nest) ? '':'document.'+nest+'.'
    this.el=ttmy_bw.dom?document.getElementById(obj):ttmy_bw.ie4?document.all[obj]:ttmy_bw.ns4?eval(nest+'document.'+obj):0;
    this.css=ttmy_bw.dom?document.getElementById(obj).style:ttmy_bw.ie4?document.all[obj].style:ttmy_bw.ns4?eval(nest+'document.'+obj):0;
    this.scrollHeight=ttmy_bw.ns4?this.css.document.height:this.el.offsetHeight
    this.clipHeight=ttmy_bw.ns4?this.css.clip.height:this.el.offsetHeight
    this.up=MoveAreaUp;this.down=MoveAreaDown;
    this.MoveArea=MoveArea; this.x; this.y;
    this.obj = obj + "Object"

	eval(this.obj + "=this")
    return this
}

function MoveArea(x,y){
    this.x=x;this.y=y
    this.css.left=this.x
    this.css.top=this.y
}

function MoveAreaUp(move){
	if(this.y<0){
    this.MoveArea(0,this.y-move)
    if(ttmy_loop) ttmy_timer=setTimeout(this.obj+".up("+move+")",ttmy_speed)
	}
}

function MoveAreaDown(move){

	if(this.y>-this.scrollHeight+objContainer.clipHeight)
	{
		this.MoveArea(0,this.y-move)
		if(ttmy_loop) ttmy_timer=setTimeout(this.obj+".down("+move+")",ttmy_speed)
		ttmy_lines++;
		if (ttmy_lines>23) PauseScroll(4000, move);
	} else {
		PauseScroll(4000, move)
	}
}


function PerformScroll(ttmy_speed){

    if (ttmy_speed > 0) ttmy_speed = 1;
    clearTimeout(ttmy_scroll);
	if(ttmy_initialised){
                ttmy_loop=true;
		if(ttmy_speed>0) obj_scroller.down(ttmy_speed)
		else obj_scroller.up(ttmy_speed)
	}
}

function PauseScroll(pause, move){
    ttmy_loop=false
    if(ttmy_timer)
    {
        clearTimeout(ttmy_timer)
        ttmy_lines=0;
        ttmy_countloops++;
        if (ttmy_countloops<6)
                ttmy_scroll=setTimeout("PerformScroll(2)",pause);
        else
        {
                ttmy_countloops=0;
                obj_scroller.MoveArea(0,0)
                ttmy_scroll=setTimeout("PerformScroll(2)",2500);
        }
    }
}

var ttmy_initialised;

function InitialiseScrollableArea(){
    objContainer=new ConstructObject('divContainer')
    obj_scroller=new ConstructObject('divContent','divContainer')
    obj_scroller.MoveArea(0,0)
    objContainer.css.visibility='visible'

    ttmy_initialised=true;
}



