var oLast;

function showMenu (obj){
	var oObj = document.getElementById (obj);
	var oLink = document.getElementById ('link' + obj.slice(4));
	oLink.style.background = 'url(/img/bg_top_menu_item.jpg) repeat-x top center #FFF';
	if(oObj)
		oObj.style.display = 'block';
}

function hideMenu (obj){
	var oObj = document.getElementById (obj);
	var oLink = document.getElementById ('link' + obj.slice(4));
	if (oLink.className != 'act')
		oLink.style.background = 'none';
	if(oObj)
		oObj.style.display = 'none';
}

function changeImg (url, obj){
	var oObj = document.getElementById ('photo');
	oObj.src = url;
	if (oLast)
		oLast.className = '';
	oLast = obj;
	obj.className = 'active';
}
 
function wopen3 (obj){
 var wo = window.open("", "abc", "width=10, height=10, scrollbars=0, status=0");
 wo.document.open();
 var win = "";
 win = "<html><head>";
 win += "<title>Image</title>";
 win += "<script>function resizes (obj){";
 win += "var w=obj.width, h=obj.height;";
 win += "window.resizeTo (w+10, h+46);";
 win += "}</"+"script"+">";
 win += "<style type='text/css'> * {margin:0; padding:0; border:0; } </style> </head>"
 win += "<body>";
 win += "<table cellpadding='0' cellspacing='0' width='100%' height='100%'><tr><td align='center'>";
 win += "<img src='" + obj + "' alt='' onload='resizes(this)' />";
 win += "</td></tr></table>";
 win += "</body></html>";
 wo.document.write(win);
 wo.window.focus();
 wo.document.close();
}