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.scrollWidth = bw.ns4 ? this.css.document.width:this.objekt.offsetWidth  
    this.clipWidth = bw.ns4 ? this.css.clip.width:this.objekt.offsetWidth  
    this.left = MoveAreaLeft; this.right = MoveAreaRight; 
    this.MoveArea = MoveArea; this.x; this.y; 
    return this 
} 

var odpocet = 50;
function MoveArea(x){ 
	this.x = x; 
    this.css.left = this.x;
} 


var loop; 
function MoveAreaRight(move){ 
	if(this.x> - this.scrollWidth + 450){ 
    this.MoveArea(this.x+move) 
    if(loop) setTimeout("objDivContent.right("+move+")",odpocet) 
	} 
} 
function MoveAreaLeft(move){ 
	if(this.x<0){ 
    this.MoveArea(this.x+move) 
    if(loop) setTimeout("objDivContent.left("+move+")",odpocet) 
	} 
} 
 


function scrolluj(speed){ 
	if(inicializuj){ 
		loop=true; 
		if(speed>0) objDivContent.left(speed) 
		else objDivContent.right(speed) 
	} 
} 
 
function zastav(){ 
    loop=false;
} 
var initialised; 
function inicializuj(){ 
    objScrollArea=new ConstructObject('scrollArea') 
    objDivContent=new ConstructObject('divContent','scrollArea') 
    objDivContent.MoveArea(0) 
    objScrollArea.css.visibility='visible' 
    initialised=true;
} 
