/* World2World hover navigation
 * @Author Jan Behrens (j.behrens@dotsperinch.net)
 * @Date 2004-05-25
 */

/* precaching */

function swapOn(nr) {
  var obj = document.getElementById('nav'+nr);
  obj.src = 'gfx/menu_'+nr+'_o.gif';
  return true;
}

function swapOff(nr) {
  var obj = document.getElementById('nav'+nr);
  obj.src = 'gfx/menu_'+nr+'.gif';
  return true;
}

function popup(file) {
	window.open(file, file,"width=500,height=400,scrollbars=yes");
}



/* ----------- tooltip ----------- */
wmtt = null;

document.onmousemove = updateWMTT;

function updateWMTT(e) {
    x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
    y = (document.all) ? window.event.y + document.body.scrollTop  : e.pageY;
    if (wmtt != null) {
        wmtt.style.left = (x + 10) + "px";
        wmtt.style.top  = (y + 10) + "px";
    }
}

function showWMTT(id) {
    wmtt = document.getElementById(id);
    wmtt.style.display = "block"
}

function hideWMTT() {
    wmtt.style.display = "none";
}
