/* -----------------------------------------------
   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.
  ------------------------------------------------ */

// see the wholivedthere.css file with ids of #layer1, #close

//x = 20;
//y = 10;
function setVisible(divId)
{
	obj = document.getElementById(divId);
	
	// chnage the y postion of the div
	if (document.documentElement)
	{
		theTop = document.documentElement.scrollTop;
	}
	else if (document.body)
	{
		theTop = document.body.scrollTop;
	}

	//theTop += y;
	obj.style.top = theTop + 'px' ;
	
	obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';
}

