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; 
    return this 
} 
bw = new verifyCompatibleBrowser() 
 
function ConstructObject(obj,obj2)
{ 
    obj2=(!obj2) ? '':'document.'+obj2+'.' 
    this.objekt = bw.dom ? document.getElementById(obj):bw.ie4 ? document.all[obj]:bw.ns4 ? eval(obj2+'document.'+obj):0; 
    this.css = bw.dom ? document.getElementById(obj).style:bw.ie4 ? document.all[obj].style:bw.ns4 ? eval(obj2+'document.'+obj):0; 
    this.scrollHeight = bw.ns4 ? this.css.document.height:this.objekt.offsetHeight 
    this.clipHeight = bw.ns4 ? this.css.clip.height:this.objekt.offsetHeight 
    this.up = MoveAreaUp; this.down = MoveAreaDown; 
    this.MoveArea = MoveArea; this.x; this.y; 
    return this 
} 

var odpocet = 50;
function MoveArea(y)
{ 
	this.y = y; 
    this.css.top = this.y;
} 

var loop; 
function MoveAreaDown(move)
{ 
	if(this.y> - this.scrollHeight + objScrollArea.clipHeight){ 
    this.MoveArea(this.y-move) 
    if(loop) setTimeout("objDivContent.down("+move+")",odpocet) 
	} 
} 
function MoveAreaUp(move)
{ 
	if(this.y<0)
	{ 
    this.MoveArea(this.y-move) 
    if(loop) setTimeout("objDivContent.up("+move+")",odpocet) 
	} 
} 
 


function scroll(speed)
{ 
	if(initialize){ 
		loop=true; 
		if(speed>0) objDivContent.down(speed) 
		else objDivContent.up(speed) 
	} 
} 
 
function stop()
{ 
    loop=false;
} 
var initialised; 
function initialize()
{ 
    objScrollArea=new ConstructObject('scrollArea') 
    objDivContent=new ConstructObject('divContent','scrollArea') 
    objDivContent.MoveArea(0) 
    objScrollArea.css.visibility='visible' 
    initialised=true;
} 