if(document.getElementById) {
	var str = '<style type="text/css">\n';
	str+= '.submenu{display: none;}\n';
	str+= '</style>\n';
	document.write(str)
}
function menuType(id){
	if (document.getElementById){
		var obj = document.getElementById(id);
		var objStyle = obj.style;
		var divArray = document.getElementById("menuDiv").getElementsByTagName("div");
		if (objStyle.display != "block"){
			for (var i = 0; i < divArray.length; i++) {
				if(divArray[i].className=="submenu" && divArray[i].id != id)
					divArray[i].style.display = "none";
				else
					objStyle.display = "block";
			}
		}
		else
			objStyle.display = "none";
	}
	return false;
}

function openWindow (src, width, height){
	str = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">\n' +
			'<html>\n' +
			'<meta http-equiv="Content-Type" content="text/html; charset=Windows-1251">\n' +
			'<head>\n' +
			'	<title></title>\n' +
			'</head>\n' +
			'<body text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" marginheight="0" marginwidth="0">\n' +
			'<table border="0" cellpadding="0" cellspacing="0">\n' +
			'	<tr><td><img src="' + src + '" border="0"></td></tr>\n' +
			'</table>\n' +
			'</body>\n' +
			'</html>';
	newWindow = window.open("", "simpleWindow", "width=" + width + ",height=" + height + ",menubar=no,status=no,resizeable=no,toolbar=no,location=no");
	window.newWindow.document.open("text/html");
	window.newWindow.document.write(str);
	window.newWindow.document.close();
	window.newWindow.focus();
}


