/* -----------------------------------------------
   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 = -76;
y = 70;

function hidediv(obj) {
	obj = document.getElementById(obj);
	
	obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';
}

function setVisible(obj)
{
	obj = document.getElementById(obj);
	obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';
	
	if( obj.style.visibility == 'visible' ) {
		obj.style.padding = 0 ;
		obj.style.width = 953 + 'px' ;
		obj.style.height = 388 + 'px' ;
	}
}

function placeIt(obj)
{
	obj = document.getElementById(obj);
	if (document.documentElement)
	{
		theLeft = document.documentElement.scrollLeft;
		theTop = document.documentElement.scrollTop;
		
		// alert('document.documentElement: ' + theLeft);
	}
	else if (document.body)
	{
		theLeft = document.body.scrollLeft;
		theTop = document.body.scrollTop;
		
		// alert('document.body: ' + theLeft);
	}
	
	
// 	theTop = document.getElementById('contentwrapper').offsetTop;
// 	theLeft = document.getElementById('contentwrapper').offsetLeft;
		
	theLeft += x;
	theTop += y;
	obj.style.left = theLeft + 'px' ;
	obj.style.top = theTop + 'px' ;
	setTimeout("placeIt('map')",500);
	
// 	obj.style.padding = 10 + 'px' ;
// 	obj.style.width = 400 + 'px' ;
// 	obj.style.height = 300 + 'px' ;
}

// window.onscroll = setTimeout("placeIt('map')",500);
