/* ---------------------------------------------
   Floating ayer - 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.
  ------------------------------------------------ */
	
//var x = (window.screen.width / 2) - 200;
//var y = (window.screen.height / 2) - 300;
//var x = window.pageXOffset;
//var y = window.pageYOffset;
//var x = (window.screen.width / 2) - 200 - window.pageXOffset;
//var y = (window.screen.height / 2) - 300 - window.pageYOffset;
//x = 20;
//y = 70;
	
	//var x = (window.innerWidth / 2) - 200;
	var x = (window.innerWidth / 2) - 325;

function setVisible(obj)
{
	obj = document.getElementById(obj);
	obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';
}
function placeIt(obj)
{
	var y = window.pageYOffset + 125;
	//var y = window.pageYOffset + 300;
	
	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;
	}
	theLeft += x;
	theTop += y;
	obj.style.left = theLeft + 'px' ;
	obj.style.top = theTop + 'px' ;
	setTimeout("placeIt('layer1')",500);
}
window.onscroll = setTimeout("placeIt('layer1')",500);


