function winH() {
	if (document.documentElement && document.documentElement.clientHeight)
		return document.documentElement.clientHeight;
	else if (document.body && document.body.clientHeight)
		return document.body.clientHeight;
	else if (window.innerHeight) return window.innerHeight;
	else return null;
	}
function winW() {
	if (document.documentElement && document.documentElement.clientWidth)
		return document.documentElement.clientWidth;
	else if (document.body && document.body.clientWidth)
		return document.body.clientWidth;
	else if (window.innerWidth) return window.innerWidth;
	else return null;
	}
function WinC () {
	l = Math.round( winW() / 2 ) - 300;
	if (l<0) { l=0; }
	return l;
	}
function resajz() {
	vyska = winH() - 55;
	document.getElementById("xtiraz").style.top = vyska;
//	document.getElementById("xtiraz").style.left = WinC();
	rs();
}
function rs() {
//	l = WinC();
//	document.getElementById("menu").style.left = l;
//	document.getElementById("hlavni").style.left = l;
}
function fe(id) {
	if(document.all){
		document.getElementById(id).style.position = "absolute";
		document.getElementById(id).style.pixelTop = document.body.scrollTop;
	}
}
function fe2(id) {
	if(document.all){
		document.getElementById(id).style.position = "absolute";
		document.getElementById(id).style.pixelTop = document.body.scrollTop + vyska;
	}
}
function deid(id) {
	if (id=='m1') return 'closer';
	else if (id=='m2') return 'depths';
	else if (id=='m3') return 'western';
	else if (id=='m4') return 'capital';
	else if (id=='m5') return 'baroque';
	else if (id=='m6') return 'faith';
	else return null;
}
function ch(id){
	if(document.all) document.getElementById(id).className = "x" + deid(id);
}
function re(id){
	if(document.all) document.getElementById(id).className = deid(id);
}
