function none()
{
}

function ablak(url,szelesseg,magassag)
{
	winRef = window.open(url,"ablak","toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width="+szelesseg+",height="+magassag+",top=20,left=20")
}

var bekapcs=null;
function none() {}

function getDim(el){
ol=el;
for (var lx=0,ly=0;el!=null;
lx+=el.offsetLeft,ly+=el.offsetTop,el=el.offsetParent);
return {x:lx,y:ly}
}

function getDim2(el){
ol=el;
lx=el.offsetLeft;
ly=el.offsetTop;
return {x:lx,y:ly}
}


function timer()
{
}

function adminon(kep,id)
{
 adminoff();        
 dim = getDim2(kep);
 document.getElementById(id).style.position="absolute";
 document.getElementById(id).style.left=20;
 document.getElementById(id).style.top=15;
 document.getElementById(id).style.left=dim.x+5;
 document.getElementById(id).style.top=dim.y+5;
 /*if (IE) { // grab the x-y pos.s if browser is IE
   tempX = event.clientX + document.body.scrollLeft;
   tempY = event.clientY + document.body.scrollTop;
 }
 else {  // grab the x-y pos.s if browser is NS
  tempX = e.pageX;
  tempY = e.pageY;
  }  
  if (tempX < 0){tempX = 0;}
  if (tempY < 0){tempY = 0;}  
//window.alert(tempX);
 document.getElementById(id).style.left=tempX+20;
 document.getElementById(id).style.top=tempY+15;*/
 if(document.getElementById(id).style.visibility=="visible")
 {
  bekapcs=null;
  document.getElementById(id).style.visibility="hidden";
 }
 else
 {
  document.getElementById(id).style.visibility="visible";
  bekapcs=id;
  setTimeout("adminoff()",3000);
 }
 return true;
 }

function adminoff()
{
 if(bekapcs!=null && document.getElementById(bekapcs).style.visibility=="visible")
 {
         document.getElementById(bekapcs).style.visibility="hidden";
 } 
}

function getXY(obj)
{
  var curleft = 0;
  var curtop = obj.offsetHeight + 5;
  var border;
  if (obj.offsetParent)
  {
    do
    {
      // XXX: If the element is position: relative we have to add borderWidth
      if (getStyle(obj, 'position') == 'relative')
      {
        //if (border = _pub.getStyle(obj, 'border-top-width')) curtop += parseInt(border);
        //if (border = _pub.getStyle(obj, 'border-left-width')) curleft += parseInt(border);
      }
      curleft += obj.offsetLeft;
      curtop += obj.offsetTop;
    }
    while (obj = obj.offsetParent)
  }
  else if (obj.x)
  {
    curleft += obj.x;
    curtop += obj.y;
  }
  return {'x': curleft, 'y': curtop};
}
/**
 * Returns the specified computed style on an object.
 * @param {HTMLObject} obj HTML Object
 * @param {String} styleProp Property name.
 * @return {Mixed} Computed style on object.
 */
function getStyle(obj, styleProp)
{
  if (obj.currentStyle)
    return obj.currentStyle[styleProp];
  else if (window.getComputedStyle)
    return document.defaultView.getComputedStyle(obj,null).getPropertyValue(styleProp);
}


function menu(id,link)
{
        menuLecsuk();
        poz=getXY(link);
        
        document.getElementById(id).style.left=(poz.x)+"px";
        document.getElementById(id).style.top=(poz.y-3)+"px";
        document.getElementById(id).style.visibility='visible';
}

function swapNavigation(div)
{
 displayType = ( document.getElementById( div ).style.display == 'none' ) ? 'block' : 'none';
 document.getElementById( div ).style.display = displayType;
 document.cookie = div + "=" + displayType;
}

