/* -----------------------------------------------
   Floating layer - v.2 - edited by Alex Wilson so it works properly
   (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 = 150;
function setVisible(obj)
{
	obj = document.getElementById(obj);
	obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';
}

function placeIt(obj)
{
	/* MyObj = obj */
	obj = document.getElementById(obj);
	if (document.documentElement)
	{
		theLeft1 = document.documentElement.scrollLeft;
		theTop1 = document.documentElement.scrollTop;
	}
	if (document.body)
	{ 
		theLeft2 = document.body.scrollLeft;
		theTop2 = document.body.scrollTop;
	} 
	if (theLeft1 > theLeft2) {
		theLeft = theLeft1;
	} else {
		theLeft = theLeft2;	
	}
	if (theTop1 > theTop2) {
		theTop = theTop1;
	} else {
		theTop = theTop2;	
	}
	theLeft += x;
	theTop += y;
	obj.style.left = theLeft + 'px' ;
	obj.style.top = theTop + 'px' ;
	/* setTimeout("placeIt(MyObj)",250); */
}

window.onscroll = function () {
	setTimeout("placeIt('ContactMonmouth')",250); 
	setTimeout("placeIt('ContactChepstow')",250);
}


