// Copyright 2006 Bontrager Connection, LLC
var cX = 0; var cY = 0;
function UpdateCursorPosition(e){ cX = e.pageX; cY = e.pageY;}
function UpdateCursorPositionDocAll(e){ cX = event.clientX; cY = event.clientY;}
if(document.all) { document.onmousemove = UpdateCursorPositionDocAll; }
else { document.onmousemove = UpdateCursorPosition; }

function HideContent(d) {
	if(d.length < 1) { return; }
	document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
	if(d.length < 1) { return; }
	var dd = document.getElementById(d);
	dd.style.display = "block";
}
function ReverseContentDisplay(d) {
	if(d.length < 1) { return; }
	var dd = document.getElementById(d);
	if(dd.style.display == "none") { dd.style.display = "block"; }
	else { dd.style.display = "none"; }
}
function DisplayFive(d) {
	if(d.length < 1) { return; }
	var dd = document.getElementById(d);
	dd.style.display = "block";
	dd.style.left = (cX+0) + "px";
	dd.style.top = (cY+10) + "px";
}
function PositionRandom(d) {
	ShowContent(d);
	if( typeof( window.innerWidth ) == 'number' ) {
		var pr = (window.innerWidth / 2) + 297;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		var pr = (document.documentElement.clientWidth / 2) + 297;
		document.getElementById(d).style.top = "0px";
	}
	document.getElementById(d).style.left = pr + "px";
}