/* -----------------------------------------------
   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.
  ------------------------------------------------ */
  var over = null;
var ns4 = (navigator.appName == 'Netscape' && parseInt(navigator.appVersion) == 4);
var ns6 = (document.getElementById)? true:false;
var ie4 = (document.all)? true:false;
x = 110;
y = 225;
function setVisible(obj, p)
{
	obj = document.getElementById(obj);
	p = document.getElementById(p);
	oLink=p;
  if (oLink.offsetParent) {
	    for (var iPosX = 0, iPosY = 0; oLink.offsetParent; oLink = oLink.offsetParent) {
      iPosX += oLink.offsetLeft;
      iPosY += oLink.offsetTop;
	  }
  } else {
      iPosX = oLink.x;
      iPosY = oLink.y;
  }
  	iPosX -= (x * 2);
  	iPosY -= (y * 1.5);
  if ( (ns4) || (ie4) ) {
    obj.left = (ie4 ? iPosX + 'px' : iPosX);
    obj.top = (ie4 ? iPosY + 'px' : iPosY);
	if (obj.style) {
    	obj.style.left = iPosX + 'px';
    	obj.style.top = iPosY + 'px';
	}
  } else if (ns6) {
    obj.style.left = iPosX + 'px';
    obj.style.top = iPosY + 'px';
  }	
	obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';
}
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;
	//obj.style.left = theLeft + 'px' ;
	alert(obj.style);
	if (obj.style != null ) {
	obj.style.left = 300+'px'; 
	obj.style.top = 300+'px'; 
	}
	setTimeout("placeIt('layer1')",500);
}
//window.onscroll = setTimeout("placeIt('layer1')",500);
