
function hideMenu()
{
if(timer)
{
clearTimeout(timer);
timer=null;
}
if(showdiv=="1")
{
overdiv=0;
setTimeout('closeMenu()',500);
}
}
function closeMenu()
{
if (overdiv == "0") {
	if(navigator.family =="nn4") {eval(document.men.top="-500");}
	else if(navigator.family =="ie4"){men.innerHTML="";}
	else if(navigator.family =="gecko") {document.getElementById("men").style.top="-500";}
  showdiv=0;
}
}

function handlerMM(e){
x = (isNav) ? e.pageX : event.clientX + document.body.scrollLeft;
y = (isNav) ? e.pageY : event.clientY + document.body.scrollTop;
}


// ----------------------



function cellclick(url)
{
    window.location.href=url;
}

// SHORTCUT FUNCTIONALITY

function popMenu(language, l1, l2, l3, l4, l5)
{
    timer=setTimeout("showPopMenu_"+language+"('"+l1+"', '"+l2+"', '"+l3+"', '"+l4+"', '"+l5+"')",600);
}

function showPopMenu_ru(l1, l2, l3, l4, l5)
{
showPopMenu(l1, l2, l3, l4, l5)
}




function showPopMenu(l1, l2, l3, l4, l5)
{
desc="<table border=0 cellpadding=0 cellspacing=0 bgcolor=#FFFFFF><tr><td>"+
"<table border=0 cellpadding=5 cellspacing=0>"+
"<tr><td>"+
"<table border=0 cellpadding=1 cellspacing=0>"+
"<tr background='simg/lpopbk.jpg'>"+
"<td background='simg/lpopbk.jpg' valign=top><img src='aa' width=150 height=0><img src='a' width=0 height=5><br><b><font color=#ff7d00>Zeme Nr.: <font color=#1173b0>"+l2+"</td><td valign=top background='simg/lpopbk.jpg'><a href='neww.php?lng=lv&id="+l5+"' target=_blank><img src='simg/moreinfo.jpg' border=0></a></td>"+
"</tr>"+
"<tr>"+
"<td><font color=#ff7d00><font color=#ff7d00>Adrese: </font><font color=#227db5>"+l1+"</td></tr>"+
"<tr>"+
"<td><font color=#ff7d00><font color=#ff7d00>Zemes plat&#299;ba: </font><font color=#227db5>"+l3+" m<sup>2</sup></td></tr>"+
"<tr>"+
"<td bgcolor=#d9e8f2><font color=#227db5><b>";

if (l4!="") desc+="Cena:</b> " + l4; else desc+="<font color=red>P&#256;RDOTS";

desc+="</td><td bgcolor=#d9e8f2></td></tr>"+



"<tr>"+
"<td></td>"+
"<td nowrap=nowrap>"+

"</td><td/>"+
"</tr>"+

"</table></td></tr></table></td></tr></table>";
if(navigator.family =="nn4")
{
document.men.document.write(desc);
document.men.document.close();
document.men.left=x+15;
document.men.top=y-5;
}
else if(navigator.family =="ie4")
{
men.innerHTML=desc;
men.style.pixelLeft=x+15;
men.style.pixelTop=y-5;
}
else if(navigator.family =="gecko")
{
document.getElementById("men").innerHTML=desc;
document.getElementById("men").style.left=x+15;
document.getElementById("men").style.top=y-5;
}
showdiv=1;
}

