/* -----------------------------------------------
   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 = 50;
y = 120;
function setVisible(obj)
{
  obj = document.getElementById(obj);
  if(obj.style.visibility == 'visible'){
    obj.style.visibility =   'hidden';
    obj.style.display =   'none';
  }
  else{
    obj.style.visibility = 'visible';
    obj.style.display =   'inline';
  }

  placeIt(obj);
}
function placeIt(obj)
{
  if (document.documentElement){
    theLeft = document.documentElement.scrollLeft;
    theTop = document.documentElement.scrollTop;
    if (document.all) obj.style.position='static';
    x = 300;
    y = 100;
  }
  else if (document.body){
    theLeft = document.body.scrollLeft;
    theTop = document.body.scrollTop;
    obj.style.position='absolute';
    x = 20;
    y = 0;
  }
  theLeft += x;
  theTop += y;
  obj.style.left = theLeft + 'px' ;
  obj.style.top = theTop + 'px' ;

	
}



