
function Flash()
{
    var rnd=Math.ceil(Math.random()*1000000);
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="777" height="252" id="main" align="middle">\n');
    document.write('<param name="movie" value="/1.swf?'+rnd+'" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('<param name="wmode" value="transparent" />\n');
    document.write('<param name="bgcolor" value="#ffffff" />\n');
    document.write('<embed src="/1.swf?'+rnd+'" quality="high" wmode="transparent" bgcolor="#ffffff" width="777" height="252" name="main" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
    document.write('</object>\n');
}

function MF()
{
if (self.screen) 
{
        width = screen.width
        height = screen.height
}
else if (self.java) 
{   
       var jkit = java.awt.Toolkit.getDefaultToolkit();
       var scrsize = jkit.getScreenSize();       
       width = scrsize.width; 
       height = scrsize.height; 
}
else
	{
       width = height = '1024' // for all other browsers
	}

document.getElementById("Menu").style.left=(width-900)/2;
document.getElementById("Menu").style.visibility='visible';
document.getElementById("Phone").style.left=width-300;
return true;
}
function View_Foto(Wid,Hei,ImageName,Tit) {
//	Wid2=Wid+20;
//	Hei2=Hei+20;
	Wid2=Wid;
	Hei2=Hei;
	newWindow=window.open("","","toolbar=no,location=no,directories=no,status=no,menubar=no,fullscreen=no,scrollbars=no,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 ViewT(T,W,H) {
newWindow=window.open("/cgi-bin/view.cgi?id="+T,"","toolbar=no,location=no,directories=no,status=no,menubar=no,fullscreen=no,scrollbars=yes,resizable=no,width="+550+",height="+600+"");
  }

function menuOpen1(id)
	{
	OpenClose(eval('razdel'+id));
	}
function menuOpen2(id)
	{
	OpenClose(eval('rubric'+id));
	}
	
function OpenClose(obj,close)
	{
	if( (obj.style.visibility!='visible') )
		{
		obj.style.visibility='visible';
		obj.style.position='static';
		obj.style.display='inline';
		lastobj=obj;
		}
	else
		{
		obj.style.visibility='hidden';
		obj.style.position='absolute';
		obj.style.display='none';
		lastobj.style.visibility='hidden';
		lastobj.style.position='absolute';
		}
	}	
	
function OpenClose2(obj,close)
	{
	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';
		}
	}
