//----------------------------------------------------------------------
// tm65_index.js - Javascript functions for Index page - The Magnet 1965
// ver.1.02 - 16 Apr 2006
//----------------------------------------------------------------------


//----------------------------------------------------------------------
// Mouseover variables and functions start ...

var nsx;
var nsy;
if (!document.all)
  { document.captureEvents(Event.MOUSEMOVE);
    document.onmousemove = get_mouse;
  }

function get_mouse(e)
{ nsx= e.pageX - 10;
  nsy= e.pageY + 5;
}

function layer(id)
{ var res;
  if (document.getElementById)
    { res = document.getElementById(id);
    }
  if (document.all)
    { res = document.all[id];
    }
  if (res)
    { return res.style;
    }
  return null;
}

function fly_in(id)
{ var hlp = layer('Tp' + id);
  if (hlp)
    { if (document.all)
        { nsy = event.y + document.body.scrollTop;
          nsx = event.x + document.body.scrollLeft;
        }
      hlp.top  = nsy + 10;
      hlp.left = (nsx>610 ? nsx-470 : 140);
      hlp.visibility = 'visible';
    }
}

function fly_out(id)
{ var hlp = layer('Tp' + id);
  if (hlp)
    { hlp.visibility = 'hidden';
    }
}

// Mouseover variables and functions end ...
//----------------------------------------------------------------------






