var Cur = null;
var tmot;
var l = 0;
window.onresize=bodyload;
function bodyload() {
	if(document.all) {
		if (document.body.scrollWidth-817 > 0) {
			document.all('m1').style.pixelLeft = (document.body.scrollWidth-793)/2+171;
			document.all('m3').style.pixelLeft = (document.body.scrollWidth-793)/2+171;
		} else {
			document.all('m1').style.pixelLeft = 183;
			document.all('m3').style.pixelLeft = 183;
		}
	} else {
		if (document.width-817 > 0) {
			document.layers["m1"].left = (document.width-793)/2+161;
			document.layers["m3"].left = (document.width-793)/2+161;
		} else {
			document.layers["m1"].left = 183;
			document.layers["m3"].left = 183;
		}
	}
	l = 1;
}

function opp() {
	window.open('photo.php','newWin','');
}
function opm() {
	window.open('kyivmap.html','newWin','');
}
function fnonoverlink(s) {
	if (l == 0) {return(true);}
	if (document.all) {
		clearTimeout(tmot);
		if (Cur) {Cur.style.visibility = "hidden";}
		document.all(s).style.visibility = "visible";
		Cur = document.all(s);
	} else {
		clearTimeout(tmot);
		if (Cur) {Cur.visibility = "hide";}
		document.layers[s].visibility = "show";
		Cur = document.layers[s];
	}
}
function fnonoutlink() {
		tmot = setTimeout("Hide()",500);
}
function fnonoverdiv() {
	clearTimeout(tmot);
}
function fnonoutdiv() {
	tmot = setTimeout("Hide()",500);
}
function Hide() {
	if (l == 0) {return(true);}
	if (document.all) {
		Cur.style.visibility = "hidden";
	} else {
		Cur.visibility = "hide";
	}
}
