// JavaScript Document
	
	var useWidth = "200";  // this is the width of the image;
	var useHeight = "160";  // this is its height;
	var useFloat = "";
	var slideTimer = "";	
	var initTop = 0;	
	var nScrollTop = 0;		
	var prevVal = 0;
	var currVal = 0;
	var throttlePx = 0;	
	var resizeTick = 0;
	var IE = true;
	if (navigator.appName != "Microsoft Internet Explorer"){IE = false}	

	function realign(){

		if (!IE)
			{
			 init();
			}
		if (IE && resizeTick == 2)
			{		
			 self.location.reload();	
			}
		resizeTick++;
	}

	function throttle(){	
		
		clearTimeout(slideTimer);
		throttlePx += Math.floor((nScrollTop - throttlePx) * .5);			
		useFloat.style.top = initTop + throttlePx + "px";	
		if (Math.abs(throttlePx - nScrollTop) > 1)
			{
			 setTimeout("throttle()", 40);
			}
		else	{
			 useFloat.style.top = initTop + nScrollTop + "px";
			 slideTimer = setTimeout("stayHome()", 500);
			}
	}

	function stayHome(){		
		
		if (document.documentElement && document.documentElement.scrollTop)
			{
			 nScrollTop = document.documentElement.scrollTop;	
			 document.getElementById('nScroll').value = nScrollTop;		
			}
		else	{
			 nScrollTop = document.body.scrollTop;	
			 document.getElementById('nScroll').value = nScrollTop;			
			}		
		prevVal = document.getElementById('nScroll').value;
		if (prevVal == currVal)
			{				 
			 clearTimeout(slideTimer);
			 if (Number(nScrollTop) + Number(initTop) != useFloat.offsetTop)
				{					 
				 throttle();					 
				}				
			}
		currVal = document.getElementById('nScroll').value;	
		prevVal = currVal;		
		slideTimer = setTimeout("stayHome()", 500);		
	}

	function init(){
	
		useFloat = document.getElementById('isFloat');
		if(!document.body.scrollTop)
			{
			 // commented lines center the floating div element
			 //useFloat.style.top = (document.documentElement.clientHeight - useHeight) / 2 + "px";
			 //useFloat.style.left = (document.documentElement.clientWidth - 15 - useWidth) / 2  + "px";  
			 useFloat.style.top = "25px";
			 useFloat.style.left = "25px";
			}
		else 	{
			 // commented lines center the floating div element
			 //useFloat.style.top = (document.body.clientHeight - useHeight) / 2  + "px";	
			 //useFloat.style.left = (document.body.clientWidth - 15 - useWidth) / 2 + "px";		
			 useFloat.style.top = "25px";
			 useFloat.style.left = "25px"; 
			}
		initTop = useFloat.offsetTop;		
		stayHome();		
	}

	function closehelp()
	{
		document.getElementById('isFloat') .style.display = "none";
		document.getElementById('showhelplink') .style.display = "block";
	}
		
	function showhelp()
	{
		document.getElementById('isFloat') .style.display = "block";
		document.getElementById('showhelplink') .style.display = "none";
	}
	onload = init;
	onresize = realign;

