var img_win;
var img_href_old;

function fc1 (o) {
	if (img_win && img_win.open && !img_win.closed) {
		fc1_img_win_fill (o.href);
		img_win.focus();
	} else {
		img_win=window.open("","",",menubar=no,status=no,toolbar=no,location=no,directories=no,width=1500,height=1000,scrollbars=yes,resizable=yes");
		fc1_img_win_fill (o.href);
	}
	return false;
}

function fc1_img_win_fill (img_href) {
	if (img_href_old != img_href) {
		img_win.document.open()
		img_win.document.write(
			"<html><head></head><body bgcolor=#000000>\n"
			+ "<table style='width: 100%; height: 100%' border=0><tr><td><center>\n"
			+ "<a title=\"Kliknutím se vrátíte do původního okna.\""
			+ " href=# onClick='opener.focus();return false;'>\n<img border=0 src=" + img_href + "></a>\n"
			+ "</center></tr></td></table>\n"
			+ "</body></html>"
			);

		img_win.document.close()
		img_href_old = img_href;
		}
}

function close_img_win() {
	if (img_win && img_win.open && !img_win.closed) img_win.close();
}

// FF, O:
if (window.addEventListener)
window.addEventListener("unload", close_img_win, false);
// IE:
else if (window.attachEvent)
window.attachEvent("onunload", close_img_win);

else if (document.getElementById)
window.onunload=close_img_win;

function pata() {
	var xxx="<br><br><p>Na Vaše připomínky a dotazy se těšíme na adrese <a href='#' onclick='return(mail_onclick())'>zbkjk (@) seznam (.) cz</a> .</p>";
	if (location.href.substring(location.href.lastIndexOf('/') + 1) != "index.html")
		xxx+="<br><a href='index.html'><font size=6px style='font-family: Helvetica CE, Arial CE, Arial, Helvetica, sans-serif;'>&larr; Na začátek</font><br>"
	document.write(xxx);
}

function mail_onclick () {
	var x1 = "zbkjk@"
	window.location.href = "mailto:" + x1 + "seznam.cz"
	return false
}

