/*¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Function: 		checkScroll
Purpose:		This function checks to determine if the page has scrolled in the user's window, and if so,
				moves a floating div to a visible location in the user's window.
Preconditions:	Existence of an absolutely positioned block element with the id of "floater."
				Variable preTop initialized to zero.
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤*/

//Variable to hold the previous value of document.body.scrollTop
//to check against new value to determine if page has scrolled.
var preTop=0;
function checkScroll()
{
	//Check current position of document.body.scrollTop against preTop
	if (preTop != document.body.scrollTop)
	{
		//If page has scrolled, move our floating div to a visible position.
		document.getElementById("floater").style.top=document.body.scrollTop+150+"px";
		//Store the current scrollTop in preTop.
		preTop=document.body.scrollTop;
	}
	//Check if the page has scrolled past the initial position of the left tag.
	if (parseInt(document.body.scrollTop) > parseInt(leftTagOffset))
	{
		//If page has scrolled past the tag, move it to a visible position.
		document.getElementById("floater2").style.top=document.body.scrollTop+150+"px";
	}
	//Otherwise, just put the tag back to it's initial position.
	else
	{
		document.getElementById("floater2").style.top=leftTagOffset;
	}
	//Set timer to recurse with 50 millisecond delay.
	window.setTimeout("checkScroll();",50);
}

/*¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Function: 		setLeftTag
Purpose:		This function sets the page position of the leftt "request help" tag to the appropriate
				initial position on each page.
Preconditions:	Existence of an absolutely positioned block element with the id of "floater2."
				Variable leftTagOffset initialized by each page individually.
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤*/

function setLeftTag()
{
	document.getElementById("floater2").style.top=leftTagOffset;
}

