		browser = navigator.appName;
		browserNum = parseInt(navigator.appVersion);
		if ((browser == "Netscape") && (browserNum < 5))
		{
			// Netscape 4.x
			layerRef = "document.layers['";
			endLayerRef = "']";
			styleRef = "";
		}
		else if ((browser == "Netscape") && (browserNum >= 5))
		{
			// Netscape 6
			layerRef = "document.getElementById('";
			styleRef = ".style";
			endLayerRef = "')";
		}
		else
		{
			// Internet Explorer
			layerRef = "document.all['";
			endLayerRef = "']";
			styleRef = ".style";
		}
		// create way to remember which layer is visible
		oldLayer = "none";
		
		function showMenu(layerName)
		{
			// show the layer the user wants to see
			eval(layerRef + layerName + endLayerRef + styleRef + ".display = 'block'");
			
			// hide other window
			if (oldLayer != "none")
			{
				eval(layerRef + oldLayer + endLayerRef + styleRef + ".display = 'none'");
			}
			
			if (oldLayer == layerName)
			{
				oldLayer = "none";
			}
			else
			{
				oldLayer = layerName;
			} 
			
		}
		
	
function checkScreen(){
if (screen.availWidth <=800){
for (i=1;i<=12;i++){
//mainheader.style.fontSize=26;
eval("img"+i).height=157;
eval("img"+i).width=113;
//eval("headercell"+i).style.fontSize=20;
eval("header"+i).style.fontSize=22;
eval("spisok"+i).style.fontSize=14;}}
else
document.styleSheets('styles').href="../style_old.css";
}
function openPic (ext,h,w){window.showModalDialog(ext, "helper", "help=no; status=no; dialogHeight:"+h+"px; dialogWidth:"+w+"px; left:200; top:-20px");}