/* -----------------------------------------------
   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 = 100;
y = 0;
function setVisible(obj_id)
{
	obj = document.getElementById(obj_id);
	obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';
	load(obj_id);
}
function placeIt(obj)
{ 
	obj_new = document.getElementById(obj);
	if (document.documentElement)
	{
		theLeft = document.documentElement.scrollLeft;
		theTop = document.documentElement.scrollTop;
	}
	else if (document.body)
	{
		
		theLeft = document.body.scrollLeft;
		theTop = document.body.scrollTop;
	}
	
	theLeft += x;
	theTop += y;
	obj_new.style.left = theLeft+'px';
	obj_new.style.top = theTop+'px';
	setTimeout("placeIt('"+obj+"')",500);
}

function load(obj_id){
	window.onscroll = setTimeout("placeIt('"+obj_id+"')",500);
}
