<!-- 
// Copyright 2006,2007 Bontrager Connection, LLC
// http://bontragerconnection.com/ and http://www.willmaster.com/
// Version: July 28, 2007
var cX = 0; var cY = 0; var rX = 0; var rY = 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 AssignPosition(d, s) {
if(self.pageYOffset) {
	rX = self.pageXOffset;
	rY = self.pageYOffset;
	}
else if(document.documentElement && document.documentElement.scrollTop) {
	rX = document.documentElement.scrollLeft;
	rY = document.documentElement.scrollTop;
	}
else if(document.body) {
	rX = document.body.scrollLeft;
	rY = document.body.scrollTop;
	}
if(document.all) {
	cX += rX; 
	cY += rY;
	}
	
if(s == 1)
{
d.style.left = (cX-380) + "px";
d.style.top = (cY-880) + "px";
}
else
{
if(s == 2)
{
d.style.left = (cX-965) + "px";
d.style.top = (cY-280) + "px";
}
else
{
d.style.left = (cX-950) + "px";
d.style.top = (cY-220) + "px";
}
}
}
function HideContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
document.getElementById('tint').style.display = "none";
}
function ShowContent(d, s) {
if(d.length < 1) { return; }
var dd = document.getElementById(d);
AssignPosition(dd, s);
dd.style.display = "block";
document.getElementById('tint').style.display = "block";

if(window.currentlyVisiblePopup && window.currentlyVisiblePopup != d)
{
	var dd2 = document.getElementById(window.currentlyVisiblePopup);
	dd2.style.display = "none";
}

window.currentlyVisiblePopup = d;
}
function ReverseContentDisplay(d, s) {
if(d.length < 1) { return; }
var dd = document.getElementById(d);
var dd2 = document.getElementById(window.currentlyVisiblePopup);
AssignPosition(dd, s);
if(dd.style.display == "none") { dd.style.display = "block";
dd2.style.display = "none"; document.getElementById('tint').style.display = "block"; }
else { dd.style.display = "none"; document.getElementById('tint').style.display = "none"; }
}
// -->
