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 = 1;
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 scrolluj(speed){ 
	if(inicializuj){ 
		loop=true; 
		if(speed>0) objDivContent.down(speed) 
		else objDivContent.up(speed) 
	} 
} 
 
function zastav(){ 
    loop=false;
} 
var initialised; 

function chgImg(name,src) {
		document.images[name].src = src;
		}

function winH() {
	if (window.innerHeight) return window.innerHeight;
	else if (document.documentElement && document.documentElement.clientHeight)
		return document.documentElement.clientHeight;
	else if (document.body && document.body.clientHeight)
		return document.body.clientHeight;
	else return null;
	}
function winW() {
	if (window.innerWidth) return window.innerWidth;
	else if (document.documentElement && document.documentElement.clientWidth)
		return document.documentElement.clientWidth;
	else if (document.body && document.body.clientWidth)
		return document.body.clientWidth;
	else return null;
	}
function rozmery() {
	alert('Sirka okna: '+winW()+'px, vyska okna: '+winH()+'px.');
	}
	
// Webtip.cz - DHTML knihovna
// verze 0.5

function objGet(x) {
	if (typeof x != 'string') return x;
	else if (Boolean(document.getElementById)) return document.getElementById(x);
	else if (Boolean(document.all)) return eval('document.all.'+x);  // pro MSIE 4
	else return null;
}

function objSetStyle (obj,prop,val) {
	var o = objGet(obj);
	if (o && o.style) {
		eval ('o.style.'+prop+'="'+val+'"');
		return true;
		}
	else return false;
	}

function objShow (obj,on) {
	return objSetStyle(obj,'visibility',(on) ? 'visible':'hidden');
	}

function objDisplay (obj,on,type) {
	if (on && !type) type = 'block';
	return objSetStyle(obj,'display',(on) ? type:'none');
	}

function Center (obj) {
xk=(winW()-1000)/2;
yk=(winH()-635)/2
if (xk<0)xk=0;
if (yk<0)yk=0;
objGet(obj).style.left = xk;
objGet(obj).style.top = yk;
}
function Center0 (obj) {
xk=(winW()-701)/2;
yk=(winH()-445)/2
if (xk<0)xk=0;
if (yk<0)yk=0;
objGet(obj).style.left = xk;
objGet(obj).style.top = yk;
}

