/* -----------------------------------------------
   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.
   edit by Janis on 14-Apr-2009
  ------------------------------------------------ */

x = 40;
y = 40;
function setVisible(obj)
{
	layer = document.getElementById(obj);
	layer.style.visibility = (layer.style.visibility == 'visible') ? 'hidden' : 'visible';
	placeIt(obj);
}
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;
	}
	//theLeft += x;
	//theTop += y;
	//obj.style.left = theLeft + 'px' ;
	if (document.body.scrollTop > 0) {
        obj.style.top = 350 + document.body.scrollTop;
        //obj.style.top = theTop + 'px' ;
    }
	//setTimeout("placeIt('layer1')",500);
}
//window.onscroll = setTimeout("placeIt('layer1')",500);

