function JSFX_FloatTopDiv()
{
	var ns = (navigator.appName.indexOf("Netscape") != -1);
	var d = document;
	var TOP_POSITION_MIN_Y = 380;
	var TERMS_BUFFER_Y = 75;

	function ml(id) 
	{	
		var el = d.getElementById ? d.getElementById(id) : d.all ? d.all[id] : d.layers[id];
		el.sP = function(y)
		{
			this.style.top = y + "px";
		};
		return el;
	}
	
	window.stayTopLeft=function() 
	{
		// Get top position.
		var topPosition = 0;//ns ? pageYOffset : document.body.clientHeight;//document.body.scrollTop;

		// Better way of getting top position.
		if(typeof(window.pageYOffset ) == 'number')
		{
			// Netscape compliant
			topPosition = window.pageYOffset;
		}
		else if(document.body && (document.body.scrollLeft || document.body.scrollTop))
		{
			// DOM compliant
			topPosition = document.body.scrollTop;
		}
		else if(document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop))
		{
			//IE6 standards compliant mode
		    topPosition = document.documentElement.scrollTop;
 		 }

		// Get the envelope.
		var envelopeY = ftlObj.parentNode.offsetHeight - ftlObj.offsetHeight - TERMS_BUFFER_Y;

		// Check how far the scroll has gone, but only if the envelope is big enough.
		if(topPosition > TOP_POSITION_MIN_Y && topPosition < TOP_POSITION_MIN_Y + envelopeY)
		{
			ftlObj.y = topPosition - TOP_POSITION_MIN_Y;
		}
		else if(topPosition <= TOP_POSITION_MIN_Y)
		{
			ftlObj.y = 0;	
		}
		else if(topPosition >= TOP_POSITION_MIN_Y + envelopeY)
		{
			ftlObj.y = envelopeY;
		}
		ftlObj.sP(ftlObj.y);
		setTimeout("stayTopLeft()", 10);
	}
	
	ftlObj = ml("boxright");
	stayTopLeft();
}

if(screen.height > 850)  // height of widget is 700 plus 150 buffer
{
	JSFX_FloatTopDiv();
}