function changeBkg(td){
	td.className=((td.className=="bkgMenuOff")?"bkgMenuOn":"bkgMenuOff");
}

function new_win(url,w,h){
var w1=window.open('','new_window','resizable=yes,menubar=no,status=no,scrollbars=no,width=1,height=1');
w1.close();
w1=window.open('/img.php?pic='+url,'new_window','resizable=no,menubar=no,status=no,scrollbars=no,width='+w+',height='+h+',top=10,left=10');
w1.onload=w1.focus;
w1.focus();
}

function new_win2(url,w,h){
	var w1=window.open('','2','resizable=yes,menubar=no,status=no,scrollbars=no,width=1,height=1');
	w1.close();
	w1=window.open(url,'2','resizable=yes,menubar=no,status=yes,scrollbars=yes,width='+w+',height='+h+',top=10,left=10');
	w1.onload=w1.focus;
	w1.focus();
	return false;
}

var clst = 1;
var int3;

function showMenu (nmb) {
	hideMenuAll ();
	objFrom = document.getElementById("div" + nmb);
	objTo = document.getElementById("menu" + nmb)
	objTo.style.visibility="visible";
	objTo.style.left=objFrom.offsetLeft - 15;
}

function hideMenu (nmb) {
	int3 = setTimeout (hideMenuAll,500);
	clst = nmb;
}

function hideMenuAll () {
	document.getElementById("menu" + clst).style.visibility="hidden";
	clearTimeout (int3);
}
