var Visible = new Array();

function menu_Flip(ind) {
	obj = document.getElementById('datam' + ind);
	if (obj.style.display == "") obj.style.display = "none";
		else obj.style.display = "";
	}

function menu_MouseOver (ind) {
	obj = document.getElementById('m' + ind);
	Visible[ind] = true;
//	menu_Show(ind);
}

function menu_MouseOut (ind) {
	obj = document.getElementById('m' + ind);
	Visible[ind] = false;
// 	setTimeout('menu_Hide(' + ind + ')', 700);
}

function menu_Show(ind) {
	obj = document.getElementById('datam' + ind);
	obj.style.display = "";
	}

function menu_Hide(ind) {
	if (Visible[ind]) return;
	obj = document.getElementById('datam' + ind);
	obj.style.display = "none";
	}
	
	
	
	
function changeregion(obj){
	var value=obj.options[obj.selectedIndex].value;
	if (value != 'default'){
		location.href=value;
	}
}



function imgopen(imgf,tit){

rand_id='image'+(Math.round(Math.random()*1000));

outf="<html>"
 +"<head>"
 +"<title>"+tit+"</title>"
 +"<style>body{margin:0px}</style>"
 +"</head>"
 +"<body leftmargin=0 topmargin=0>"
 +"<img src=\""+imgf+"\">";

iopen="iwin=self.open('"+imgf+"', '"+rand_id+"', 'width='+(img1.width)+',height='+(img1.height)+',top=0,left=0');"
 +"iwin.document.write('"+outf+"');"
 +"iwin.focus();";

img1=new Image();
img1.src=imgf;

if(img1.width!=0) eval(iopen);

else{
iwin = self.open('about:blank', 'f'+rand_id, 'width=100,height=100,top=0,left=0');
iwin.document.write("<html>"
+"<body>Загрузка...<br>"
 +"<"+"script>"
  +"function imo(img1){"+iopen
  +"self.close();"
 +"}<"+"/script>"
 +"<img src='"+imgf+"' onload='imo(this);'>");
 }
}







function showmenu(elmnt)
{
document.getElementById(elmnt).style.visibility="visible"
}
function hidemenu(elmnt)
{
document.getElementById(elmnt).style.visibility="hidden"
}