/* -----------------------------------------------
   Floating layer - v.1
   (c) 2006 www.haan.net
   contact: jeroen@haan.net
   You may use this script but please leave the credits on top intact.
   Please inform us of any improvements made.
   When usefull we will add your credits.
  ------------------------------------------------ */

x = 300;
y = 50;
function setVisible(obj)
{
    obj = document.getElementById(obj);
    obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';
    placeIt('layer1');
}
function placeIt(obj)
{
    obj = document.getElementById(obj);
    theLeft = document.body.scrollLeft;
    theTop = document.body.scrollTop;
    theLeft += event.clientX;
    theTop += event.clientY;
    obj.style.left = theLeft + 'px' ;
    obj.style.top = theTop + 'px' ;
}
