
function height_window(){
	if(window.innerHeight)
		return window.innerHeight;
	if(document.body.clientHeight)
		return document.body.clientHeight;
	
	return (null);
}

var isIE=0;
var isOtherBrowser=0;

function pokus() {
	if(navigator.appName.indexOf('Microsoft Internet Explorer')!=-1) {
		isIE=1;
		var height_div=document.getElementById("container").scrollHeight;
		height=height_window();

		document.getElementById('container').style.marginTop=(height-height_div)/2+'px';

	}
	else {
		isOtherBrowser =1;
		var height_div= document.getElementById("container").scrollHeight;
		height=height_window();
		document.getElementById('container').style.marginTop=(height-height_div)/2+'px';
	}
	zmena_okna = setTimeout("pokus()", 1);
}




// JS function for uncrypting spam-protected emails:
function UnCryptMailto(s) {	//
	var n=0;
	var r="";
	for(var i=0; i < s.length; i++) {
		n=s.charCodeAt(i);
		if (n>=8364) {n = 128;}
		r += String.fromCharCode(n-(1));
	}
	return r;
}
  // JS function for uncrypting spam-protected emails:
function linkTo_UnCryptMailto(s)	{	//
	location.href=UnCryptMailto(s);
}
		
	function openPic(url,winName,winParams)	{	//
		var theWindow = window.open(url,winName,winParams);
		if (theWindow)	{theWindow.focus();}
	}
