<!-- 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) {
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( document.body && ( document.body.scrollWidth || document.body.scrollHeight ) ) {
//	var pageWidth = document.body.scrollWidth+'px';
//	var pageHeight = document.body.scrollHeight+'px';
//	} 
//	else if( document.body.offsetWidth )
//	{
//		var pageWidth = document.body.offsetWidth+'px';
//		var pageHeight = document.body.offsetHeight+'px';
//	} else {
//	  var pageWidth='100%';
//	  var pageHeight='100%';
//	  
//	}  


var winW = 630, winH = 460;

if (parseInt(navigator.appVersion)>3) {
 if (navigator.appName=="Netscape") {
  winW = window.innerWidth;
  winH = window.innerHeight;
 }
 if (navigator.appName.indexOf("Microsoft")!=-1) {
  winW = document.body.offsetWidth;
  winH = document.body.offsetHeight;
 }
}



//d.style.left = "300px";
//d.style.top = "200px";
d.style.left = (winW/2 -300) + "px";
d.style.top = (winH/2 -300) + "px";


//d.style.left = (cX-700) + "px";
//d.style.top = (cY-200) + "px";

}


if( document.body && ( document.body.scrollWidth || document.body.scrollHeight ) ) {
	var pageWidth = document.body.scrollWidth+'px';
	var pageHeight = document.body.scrollHeight+'px';
	} 
	else if( document.body.offsetWidth )
	{
		var pageWidth = document.body.offsetWidth+'px';
		var pageHeight = document.body.offsetHeight+'px';
	} else {
	  var pageWidth='100%';
	  var pageHeight='100%';
	  
	}  



function HideContent2(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
}
function ShowContent2(d) {
if(d.length < 1) { return; }
var dd = document.getElementById(d);
AssignPosition(dd);
dd.style.display = "block";
}
function ReverseContentDisplay2(d) {
if(d.length < 1) { return; }
var dd = document.getElementById(d);
AssignPosition(dd);
if(dd.style.display == "none") { dd.style.display = "block"; }
else { dd.style.display = "none"; }
}