// global variables
// this function gets the width of the viewer's screen
// so the popup boxes can be placed accordingly
function getInsideWindowWidth() {
	// if a Netscape-compatible browser
	if (window.innerWidth) {
		return window.innerWidth/2;
	// if IE6 with CSS support
	} else if (document.compatMode && document.compatMode.indexOf("CSS1") >= 0) {
		return document.body.parentElement.clientWidth/2;
	// if IE 5.5 or earlier
	} else if (document.body && document.body.clientWidth) {
		return document.body.clientWidth/2;
	}
	return 0;
}
// called everytime the QuickLinks box is malnipulated
function displayQuickLinks() {
	quickLinksObj = document.getElementById("quickLinksBox");
	if(quickLinksObj.style.visibility == "visible") {
		quickLinksObj.style.visibility = "hidden";
	} else {
		quickLinksObj.style.visibility = "visible";
		quickLinksObj.style.left = getInsideWindowWidth()+30;
	}
}
// called everytime the Taxes box is malnipulated
function displayTaxes() {
	TaxesObj = document.getElementById("TaxesBox");
	if(TaxesObj.style.visibility == "visible") {
		TaxesObj.style.visibility = "hidden";
	} else {
		TaxesObj.style.visibility = "visible";
		TaxesObj.style.left = getInsideWindowWidth()+226;
	}
}
// called everytime the Communities box is malnipulated
function displayCommunities() {
	CommunitiesObj = document.getElementById("CommunitiesBox");
	if(CommunitiesObj.style.visibility == "visible") {
		CommunitiesObj.style.visibility = "hidden";
	} else {
		CommunitiesObj.style.visibility = "visible";
		CommunitiesObj.style.left = getInsideWindowWidth()-299;
	}
}
// called everytime the County box is malnipulated
function displayCounty() {
	CountyObj = document.getElementById("CountyBox");
	if(CountyObj.style.visibility == "visible") {
		CountyObj.style.visibility = "hidden";
	} else {
		CountyObj.style.visibility = "visible";
		CountyObj.style.left = getInsideWindowWidth()-275;
	}
}
// called everytime the State box is malnipulated
function displayState() {
	StateObj = document.getElementById("StateBox");
	if(StateObj.style.visibility == "visible") {
		StateObj.style.visibility = "hidden";
	} else {
		StateObj.style.visibility = "visible";
		StateObj.style.left = getInsideWindowWidth()-245;
	}
}
// used to place the Boxes in the middle of the screen
// and +/- some (notice the calls to getInsideWindowWidth)
function positionBoxes() {
	quickLinksObj = document.getElementById("quickLinksBox");
	quickLinksObj.style.left = getInsideWindowWidth();
	quickLinksObj.style.top = 32;
	TaxesObj = document.getElementById("TaxesBox");
	TaxesObj.style.left = getInsideWindowWidth();
	TaxesObj.style.top = 155;
	CommunitiesObj = document.getElementById("CommunitiesBox");
	CommunitiesObj.style.left = getInsideWindowWidth();
	CommunitiesObj.style.top = 214;
	CountyObj = document.getElementById("CountyBox");
	CountyObj.style.left = getInsideWindowWidth();
	CountyObj.style.top = 230;
	StateObj = document.getElementById("StateBox");
	StateObj.style.left = getInsideWindowWidth();
	StateObj.style.top = 294;
}
// prevent the main web site from showing up in
// frames on other web sites.
if ( window.parent != window.self ) { window.open(document.location,'_top');
}
// set var for nolink * changes center screen for main body.
var nolink="ok"

