function findPosX(obj)
{
  var curleft = 0;
  if(obj.offsetParent)
      while(1) 
      {
        curleft += obj.offsetLeft;
        if(!obj.offsetParent)
          break;
        obj = obj.offsetParent;
      }
  else if(obj.x)
      curleft += obj.x;
  return curleft;
}
  
/*********************************************************
 * Floating Div adapted from http://www.javascript-fx.com
 ********************************************************/
function JSFX_FloatDiv(id, sy, containerID)
{
  var ns = (navigator.appName.indexOf("Netscape") != -1);
  var d = document;
	var container = d.getElementById(containerID);
  var px = document.layers ? "" : "px";
	var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
	window[id + "_obj"] = el;
	if(d.layers)el.style=el;
	el.sy = sy;
	el.container = container;
	el.sP=function(x,y,w){this.style.left=x+px;this.style.top=y+px;/*this.style.width=w+px*/};
	el.flt=function()
	{
		var pY;
  	var pTop;
  	if (window.innerHeight)
  		pTop = window.pageYOffset;
  	else if (document.documentElement && document.documentElement.scrollTop)
  		pTop = document.documentElement.scrollTop;
  	else if (document.body)
  		pTop = document.body.scrollTop;
  	
  	if (pTop <= this.sy) {
  		pTop = this.sy;
  	}
		this.sP(findPosX(this.container)+10, pTop, this.container.offsetWidth);
		setTimeout(this.id + "_obj.flt()", 10);
	}
	return el;
}