function SndMl_1(obj)
{
	if(obj.tagName) 
	{
		obj.href="m" +  String.fromCharCode(97) + "ilto:" + obj.getAttribute("mto") + String.fromCharCode(64) + "mail." + String.fromCharCode(114)+String.fromCharCode(117); 
		return(true)
	} else
	{
		document.write ( obj+String.fromCharCode(64)+"mail."+String.fromCharCode(114)+String.fromCharCode(117) );
	}
}

function SndMl_2(obj)
{
	if(obj.tagName) 
	{
		obj.href="m" +  String.fromCharCode(97) + "ilto:" + obj.getAttribute("mto") + String.fromCharCode(64) + "centralsib." + String.fromCharCode(114)+String.fromCharCode(117); 
		return(true)
	} else
	{
		document.write ( obj+String.fromCharCode(64)+"centralsib."+String.fromCharCode(114)+String.fromCharCode(117) );
	}
}

function SndMl_3(obj)
{
	if(obj.tagName) 
	{
		obj.href="m" +  String.fromCharCode(97) + "ilto:" + obj.getAttribute("mto") + String.fromCharCode(64) + "inbox." + String.fromCharCode(114)+String.fromCharCode(117); 
		return(true)
	} else
	{
		document.write ( obj+String.fromCharCode(64)+"inbox."+String.fromCharCode(114)+String.fromCharCode(117) );
	}
}

function SndMl_4(login, serv)
{
	eml = login +  "&#64;" + serv + "&#46;&#114;&#117;";
	document.write (eml);
}


function ToggleDisplay(theItems)
{
	if ((theItems.style.display=="")||(theItems.style.display=="none"))
	{
		theItems.style.display="block";
	}
	else
	{
		theItems.style.display="none";
	}
	return false;
}

/* Copyright by Roman Isakov romis@au.ru */

var LinkDivActive = 0;
var onDiv;
var timeOnDiv;
var layerRef;
var styleRef;
var showVar;
var hideVar;

if (navigator.appName == "Netscape") {
 layerRef="document.";
 styleRef="";
 showVar="'show'";
 hideVar="'hide'";
} else {
 layerRef="document.all.";
 styleRef=".style";
 showVar="'visible'";
 hideVar="'hidden'";
}

//Divisions Show | Hide
function hideDiv(divn) {
 eval(layerRef+divn+styleRef+'.visibility = '+hideVar);
}
function showDiv(divn) {
 eval(layerRef+divn+styleRef+'.visibility = '+showVar);
}

//Link Divisions Stuff
function showLinkDiv(divn) {
 if (timeOnDiv != null) {
  clearTimeout(timeOnDiv);
  hideDiv(onDiv);
 }
 showDiv(divn);
 onDiv = divn;
}

function divTimer() {
 timeOnDiv = setTimeout("divOut()",500)
}

function divOut() {
 if (LinkDivActive == 0) {
  hideDiv(onDiv);
 } 
}

function LinkDivOver() {
 LinkDivActive = 1;
 clearTimeout(timeOnDiv);
}

function LinkDivOut() {
 LinkDivActive = 0;
 timeOnDiv = setTimeout("divOut()",500)
}

function SizeMenuSelected()
{
	document.myform.submit();
}

function CommandSelected(nomer)
{
	document.cmd1.src='modules/zapovednik/graphics/icon_zoomin_1.gif';
	document.cmd2.src='modules/zapovednik/graphics/icon_zoomout_1.gif';
	document.cmd3.src='modules/zapovednik/graphics/icon_recentre_1.gif';
	document.cmd4.src='modules/zapovednik/graphics/icon_info_1.gif';
	document.cmd5.src='modules/zapovednik/graphics/icon_fullextent_1.gif';
	if (nomer==1)
	{
		document.myform.cmd.value='zoom_in';
		document.cmd1.src='modules/zapovednik/graphics/icon_zoomin_2.gif';
	}
	if (nomer==2)
	{
		document.myform.cmd.value='zoom_out';
		document.cmd2.src='modules/zapovednik/graphics/icon_zoomout_2.gif';
	}
	if (nomer==3)
	{
		document.myform.cmd.value='recenter';
		document.cmd3.src='modules/zapovednik/graphics/icon_recentre_2.gif';
	}
	if (nomer==4)
	{
		document.myform.cmd.value='query_point';
		document.cmd4.src='modules/zapovednik/graphics/icon_info_2.gif';
	}
	if (nomer==5)
	{
		document.myform.cmd.value='viewall';
		document.myform.submit();
	}
	if (nomer==6)
	{
		document.myform.cmd.value='map_up';
		document.myform.submit();
	}
	if (nomer==7)
	{
		document.myform.cmd.value='map_down';
		document.myform.submit();
	}
	if (nomer==8)
	{
		document.myform.cmd.value='map_left';
		document.myform.submit();
	}
	if (nomer==9)
	{
		document.myform.cmd.value='map_right';
		document.myform.submit();
	}
}


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
