/* -----------------------------------------------
   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.
  ------------------------------------------------ */

// This is how far from the left
x = '60%';
// This is how far down?
//y = 400;
y = 10;

function setVisible(obj)
{
	obj = document.getElementById(obj);
	obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';
}
// Dan function
function setHidden(obj)
{
	obj = document.getElementById(obj);
	obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'hidden';
}
function placeIt(obj)
{
	obj = 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;
	}
	
	alert(obj);
	theLeft += x;
	theTop += y;
	obj.style.left = theLeft + '' ;
	obj.style.top = theTop + 'px' ;
	setTimeout(placeIt(obj),500);
}
function setTimer(obj)
{
	obj = document.getElementById(obj);
	window.onscroll = setTimeout(placeIt(obj),500);
}