<!--
// convert all characters to lowercase to simplify testing 
var agt=navigator.userAgent.toLowerCase();
var app=navigator.appName.toLowerCase();

// Set global browser stuff variables.
var is_major = parseInt(navigator.appVersion); 
var is_nav  = (agt.indexOf('mozilla') != -1);
var is_ie   = (agt.indexOf("msie") != -1); 
var is_ie4up  = (is_ie  && (is_major >= 4)); 
var is_nav4up = (is_nav && (is_major >= 4));
 
// Set global browser specific styles.
if (is_ie && is_ie4up) { 
  document.write("<link rel='stylesheet' type='text/css' href='http://www.wisconsin.gov/state/core/global_msie.css'>");
}
else {
  if (is_nav && is_nav4up) {
    document.write('<link rel="stylesheet" type="text/css" href="http://www.wisconsin.gov/state/core/global_netscape.css">');
  }
  else {
    document.write("<link rel='stylesheet' type='text/css' href='http://www.wisconsin.gov/state/core/global_msie.css'>");
  }    
}

function SearchBox() {
  if ((app.indexOf('netscape') != -1)) {
    document.write('<input type=text name=qt size=7 value="" maxlength=2047>')
  }
  else {
    document.write('<input type=text name=qt size=11 value="" maxlength=2047>')
  }
  document.seek1.qt.focus();
}

function closeWindow() {
	window.close();
}

// from gps
function showSelect(isOn)
{ 
	var selects = document.all.tags('select'); 
	var result = ''; 
	if(isOn)
	{
		for (var i=0; i<selects.length; i++)
		{
			if(selects[i].wasVisible==true)
				result += selects[i].style.visibility = "visible";
		}
	} else {
		for (var i=0; i<selects.length; i++)
		{
			if(selects[i].style.visibility!="hidden")
			{
				selects[i].wasVisible=true;
				result += selects[i].style.visibility = "hidden";
			} else {
				selects[i].wasVisible=false;
			}
		}
	}
}

// from WiscJobs, but modified - added "ln" name on window.open and aWindow.focus() so that window would be reused and come into focus
// used to open county maps
function openWin(url) {
		var wide = screen.width;
		high = screen.height;
		xCoordinate = (wide - 210);
		yCoordinate = 210;
		aWindow = window.open(url,"ln",'width=180,height=190,status=0,toolbar=0,menubar=0,location=0,resizable=0,scrollbars=0,left=' + xCoordinate + ',top=' + yCoordinate + ',screenx=' + xCoordinate + ',screeny=' + yCoordinate)
		//
		aWindow.focus();
}

// used to open description pages, descrption pages set focus onload
function openWin2(url) {
		var wide = screen.width;
		high = screen.height;
		xCoordinate = (wide - 540);
		yCoordinate = 90;
		aWindow = window.open(url,"lndesc",'width=520,status=0,toolbar=0,menubar=0,location=0,resizable=0,scrollbars=1,left=' + xCoordinate + ',top=' + yCoordinate + ',screenx=' + xCoordinate + ',screeny=' + yCoordinate)
}

//-->
