/* -----------------------------------------------
   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 = 200;
y = 50;
function setVisible(object, formobject)
{
	obj = document.getElementById(object);
	formobj = document.getElementById(formobject);
	if (obj.style.visibility == 'visible')
		{
		obj.style.visibility = 'hidden';
		formobj.style.visibility = 'visible';
		} 
	else
		{
		obj.style.visibility = 'visible';
		formobj.style.visibility = 'hidden';
		}
	
	//obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';
}
function placeIt(object)
{
	obj = document.getElementById(object);
	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.style.left = theLeft + 'px' ;
	obj.style.top = theTop + 'px' ;
	setTimeout("placeIt('popup-layer1')",500);
}
//window.onload = function() {setTimeout("placeIt('popup-layer1')",500)} ;
window.onload = function() {placeIt('popup-layer1')} ;
