
function showItemMenu(menuid){

	if(!self.mainmenu || !self.submenu){
		mainmenu=layer('menulayer'+menuid)
		descmenu=layer('descmenulayer'+menuid)
	}
	descmenu.moveTo(mainmenu.getAbsoluteLeft()+310, mainmenu.getAbsoluteTop()-2) 
	descmenu.show()

}

function inverse_elem(id) {
  elem=document.getElementById(id);
  if (elem.style.display=="none") {
    elem.style.display="";
  }
  else {
    elem.style.display="none";
  }
}


function bigPicture(img_name,imgName) {
imgOn = ("" + imgName);
document[img_name].src = imgOn;
}

function movepic(img_name,img_src) {
document[img_name].src=img_src;
}

function picture(loc,w,h)
{
var ww=window.open(loc,"","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,top=20,left=100,width="+w+",height="+h);
ww.focus();
return false;
}

function win(loc,w,h)
{
var ww=window.open(loc,"","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,top=20,left=20,width="+w+",height="+h);
ww.focus();
return false;
}

function high(which2){
  theobject=which2
  highlighting=setInterval("highlightit(theobject)",20)
  }
function low(which2){
  clearInterval(highlighting)
  which2.filters.alpha.opacity=20
  }
function highlightit(cur2){
  if (cur2.filters.alpha.opacity<100)
  cur2.filters.alpha.opacity+=20
  else if (window.highlighting)
  clearInterval(highlighting)
  }

function email (login, sc)
{
var serv = new Array;
serv[0]= "mail.ru";
eml = login +  "@" + serv[sc];
return eml;
}
function mylo (login, sc)
{
document.write (email(login, sc));
}
function namylo (login, sc, sub)
{
eml = "mailto:" + email(login, sc);
if (sub != "") eml += "?subject=" + sub;
window.location.href = eml;
}


function mail (domain,user)
{
eml = user +  "@" + domain;
return eml;
}
function namylo1 (domain,user) 
{ 
document.location.href = "mailto:" + user + "@" + domain; 
}
function mylo1 (domain,user)
{ 
document.write (mail(domain,user));
}

