/* -----------------------------------------------
   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.
  ------------------------------------------------ */



/* -----------------------------------------------
   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 = 20;
y = 150;
function setVisible(obj,leftX,topY)
{
	//alert(document.documentElement.scrollWidth);
	obj = document.getElementById(obj);
	if (document.documentElement)
	{
		
		/*theLeft = document.documentElement.scrollLeft;
		theTop = document.documentElement.scrollTop;*/
		theLeft = (document.documentElement.scrollWidth/2)-leftX
		theTop = document.documentElement.clientHeight-topY
	}
	else if (document.body)
	{
		/*theLeft = document.body.scrollLeft;
		theTop = document.body.scrollTop;*/
		theLeft = (document.body.scrollWidth/2)-leftX
		theTop = document.body.clientHeight-topY;
	}
	//theLeft += x;
	theTop += y;
	obj.style.left = theLeft + 'px' ;
	obj.style.top = theTop + 'px' ;
	obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';
	 document.getElementById('faq_errMsg').style.display='none';
}

function setVisible1(obj,leftX,topY)
{
	
	obj = document.getElementById(obj);
	if(obj.style.visibility == 'hidden'){
		if (document.documentElement)
		{			
			/*theLeft = document.documentElement.scrollLeft;
			theTop = document.documentElement.scrollTop;*/
			theLeft = (document.documentElement.clientWidth/2)-leftX
			theTop = document.documentElement.scrollTop+topY;
		}
		else if (document.body)
		{
			/*theLeft = document.body.scrollLeft;
			theTop = document.body.scrollTop;*/
			theLeft = (document.body.clientWidth/2)-leftX
			theTop = document.body.scrollTop+topY;
		}
		//theLeft += x;
		theTop += y;
		obj.style.left = theLeft + 'px' ;
		obj.style.top = theTop + 'px' ;
		obj.style.visibility = 'visible';
		document.getElementById('errMsg').style.display='none';
		}
	else{
		obj.style.visibility = 'hidden';
		document.getElementById('errMsg').style.display='none';
		}
}
/*function placeIt(obj)
{
	obj = document.getElementById(obj);
	if (document.documentElement)
	{
	theLeft = document.documentElement.scrollLeft;
		theTop = document.documentElement.scrollTop;
		theLeft = document.documentElement.clientWidth/2
		theTop = document.documentElement.clientHeight/2
	}
	else if (document.body)
	{
		theLeft = document.body.scrollLeft;
		theTop = document.body.scrollTop;
		theLeft = document.body.clientWidth/2
		theTop = document.body.clientHeight/2
	}
	alert(theLeft);
	theLeft += x;
	theTop += y;
	obj.style.left = theLeft + 'px' ;
	obj.style.top = theTop + 'px' ;
	setTimeout("placeIt('layer1')",500);
}
window.onscroll = setTimeout("placeIt('layer1')",500);*/

