/* -----------------------------------------------
   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 = 20;
y = 70;*/
function setVisible(obj)
{
	obj = document.getElementById(obj);
	obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';
	setTimeout("placeIt('layer1')",500);
}
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;
	}*/
	
var w = 420;
var h = 380;
w += 32;
h += 96;
  wleft = (screen.width - w) / 2;
  wtop = (screen.height - h) / 2;
  
/*	theLeft += x;
	theTop += y;*/
	obj.style.left = wleft;
	obj.style.top = wtop;
	setTimeout("placeIt('layer1')",500);

}

window.onscroll = function() {setTimeout("placeIt('layer1')",500);}
