 var is_loaded=false;
 <!--
var popups = Array()
var hideInterval = 0

function movePopups()
{
  offset = document.getElementById('menuhome').height - (-9)


  x = getXOffset('menuinfos')-9
  y = getYOffset('menuinfos')
  movePopup('popinfos', x, y + offset)
  popups[popups.length] = 'popinfos'

  is_loaded=true;
}

window.onresize = movePopups

function movePopup(id, x, y)
{
  layer = document.getElementById(id)
  layer.style.left = x + 'px'
  layer.style.top  = y + 'px'
}

function getXOffset(elID)
{

  xPos = document.getElementById(elID).offsetLeft
  tmpEl = document.getElementById(elID).offsetParent
  while (tmpEl != null)
  { xPos += eval(tmpEl).offsetLeft
    tmpEl = eval(tmpEl).offsetParent
  }
  return xPos
}

function getYOffset(elID)
{
  yPos = document.getElementById(elID).offsetTop
  tmpEl = document.getElementById(elID).offsetParent
  while (tmpEl != null)
  { yPos += eval(tmpEl).offsetTop
    tmpEl = eval(tmpEl).offsetParent
  }
  return yPos
}

function showPopup(id)
{
  if ( hideInterval != 0 )
  { clearTimeout(hideInterval)
    hideInterval = 0
  }

  for ( i = 0; i < popups.length; i++ )
  { if ( popups[i] != id
         && document.getElementById(popups[i]).style.visibility == 'visible' )
      hidePopupNow(popups[i])
  }

  if (is_loaded)
    document.getElementById(id).style.visibility = 'visible';
}

function hidePopupNow(id)
{
  document.getElementById(id).style.visibility = 'hidden'
}

function hidePopup(id)
{
  hideInterval = setTimeout('hidePopupNow(\''+ id +'\')', 200)
}

function enterPopup(id)
{
  clearTimeout(hideInterval)
  hideInterval = 0
}

function setClass(tag, className) { tag.className = className }

function popup(href, width, height, name)
{
  var theWindow = window.open(href, name ? name : 'win' + Math.random(), 'height=' + height + ',width=' + width + ',menubar=no,statusbar=no,scrollbars=no,locationbar=no,personalbar=no,toolbar=no')
  theWindow.moveTo(
    (screen.width - width) / 2
    , (screen.height - height) / 2)

  return theWindow
}
//-->
