/* -----------------------------------------------
   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 = 430;
y = 70;
function setVisible(obj, visible)
{
	obj = document.getElementById(obj);
	obj.style.visibility = (visible == false) ? 'hidden' : 'visible';
	return false;
}
function popupImg(obj, imgID, imgSrc)
{
	if(imgSrc!=null && imgSrc!='')
	{
	    var img;
	    img = document.getElementById(imgID);
	    if(img!=null)
	        img.src = imgSrc;
	}
	setVisible(obj, true);
	return false;
}
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;
	try {
		obj.style.left = theLeft + 'px' ;
		obj.style.top = theTop + 'px' ;
	} catch(e) {
		//Do nothing
	}
	setTimeout("placeIt('imgPopup')",50);
}
try {
	window.onscroll = setTimeout("placeIt('imgPopup')",50);
} catch(e) {
	//Do nothing
}

