bName = navigator.appName;
bVer = parseInt(navigator.appVersion); 
if  ((bName=="Netscape" && bVer>=3) || (bName=="Microsoft Internet Explorer" && bVer>=4)) ver="good"; else ver="bad"; 

function View_Foto(Wid,Hei,ImageName,Tit) {
	Wid2=Wid;
	Hei2=Hei;
	newWindow=window.open("","","toolbar=no,location=no,directories=no,status=no,menubar=no,fullscreen=no,scrollbars=yes,resizable=yes,width="+Wid2+",height="+Hei2+"");
       var newContent = "<html><head>\n"
       newContent += "<title>" + Tit + "</title></head>\n"
       newContent += "<body bgcolor=\"#ffffff\" marginheight=\"0\" marginwidth=\"0\" topmargin=\"0\" leftmargin=\"0\">\n"
       newContent += "<img border=0 src=\"" + ImageName + "\"" + " width=\"" + Wid + "\" height=\"" + Hei + "\"></a>\n"
	newContent+="<div style=\"position:absolute;left:0px;top:0px;\"><img src=\"/images/1x1.gif\" width="+Wid+" height="+Hei+"></div>"
       newWindow.document.writeln(newContent)
       newWindow.document.writeln("</body></html>")
       newWindow.document.close()
  }



function img_over(imgName,src) {
document.images[imgName].src=src;
return true;
}

function menuOpen(id)
	{
//	HideRazdel();
	OpenClose(eval('razdel'+id));
	}
function OpenClose(obj,close)
	{
	if(obj)
	{
	if( (obj.style.visibility!='visible') )
		{
		obj.style.visibility='visible';
		obj.style.position='static';
//		lastobj=obj;
		}
	else
		{
		obj.style.visibility='hidden';
		obj.style.position='absolute';
//		lastobj.style.visibility='hidden';
//		lastobj.style.position='absolute';
		}
	}
}
function HideRazdel()
{
for (i in razdel)
	{
	document.getElementById('razdel'+i).style.visibility='hidden';
	document.getElementById('razdel'+i).style.position='absolute';
	}
}	

