function ChangeHeight()
{
		if (!window.innerHeight)
		{
			document.getElementById('hm').style.position = 'relative';
			document.getElementById('hm').style.left = '1px'; 
		}
		
		if (window.innerHeight) 
		{
			document.getElementById('tbl').style.height = window.innerHeight - 225 + 'px';
		}
		else if (document.documentElement && document.documentElement.clientHeight)
		{
			document.getElementById('tbl').style.height = document.documentElement.clientHeight - 225;
		}
		else
		{
			document.getElementById('tbl').style.height = document.body.clientHeight - 225;
		}	
}

function okno(obr, $width, $height)
{
	$left = screen.width / 2 - $width / 2;
	$top = screen.height / 2 - $height / 2;
	okno1 = window.open ("", "", "width=" + $width + ", height=" + $height + ", left=" + $left + ", top=" + $top + ", menubar=no, toolbar=no, directories=no, status=no, resizable=yes, copyhistory=no");
	okno1.document.write("<html><head><title>AAA PALETY s.r.o. - náhled fotografie</title></head>");
	okno1.document.write("<body style='margin: 0px'>");
	okno1.document.write("<center><a href='' onclick='window.close();'><img src='" + obr + "' valign=center border=0></a></center>");
	okno1.document.write("</body></html>");
}

function mExt(jmeno, url, tlp, predmet, trida)
	{
		if (predmet == "1") predmet = 'Dotaz';
		if (predmet == "2") predmet = 'Informace';

		var x = "<a hr" + "ef='' onclick='mExtClick(\"" + jmeno + "\",\"" + url + "\",\"" + tlp + "\",\"" + predmet + "\"); return false;' class=\"" + trida + "\">" + jmeno + "<span></span>" + "@" + "<span></span>" + url + "<span></span>" + "." + tlp + "</a>"
		document.write (x);
	}

	function mExtClick(jmeno, url, tlp, predmet)
	{
		location.href = "mailto:" + jmeno + "@" + url + "." + tlp + "?subject=" + predmet;
	}

	function mExtArea(jmeno, url, tlp, predmet, n1, n2, n3, n4)
	{
		document.write ("<area shape='rect' coords='" + n1 + "," + n2 + "," + n3 + "," + n4 + "' hr" + "ef='mailto:" + jmeno + "@" + url + "." + tlp + "?subject=" + predmet + "'");
	}
	
	function GetBrowser()
	{
		var browser = navigator.appName;
		return browser;	
	}
	
	function Hlavicka($pic)
	{
		var x = GetBrowser();
		if (x == "Microsoft Internet Explorer")
		{
			document.write("<div align='center' style='position:relative;left:-1px;'><img id='hm' src='http://aaa-palety.cz/Obr/" + $pic + ".png' usemap='#mapa' border='0' alt=''></div>");
		}
		else 
		{
			document.write("<div align='center'><img id='hm' src='http://aaa-palety.cz/Obr/" + $pic + ".png' usemap='#mapa' border='0' alt=''></div>");
		}
	}
