// JavaScript Document
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbar='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) {
	win.window.focus(); 
	}
}

function ListWin(url)  {
	window.open(url,"pop","width=200,height=640,scrollbars=yes,left=300,top=20,alwaysRaised=yes,resizable")
	}
function MapWin(url)  {
	window.open(url,"pop","width=640,height=480,scrollbar=yes,left=400,top=10,alwaysRaised=yes")
	}
function PoPWin(url)  {
	window.open(url,"pop","width=340,height=240,scrollbar=yes,left=400,top=10,alwaysRaised=yes")
	}
function PoPWin2(url)  {
	window.open(url,"pop","width=290,height=290,scrollbar=yes,left=400,top=10,alwaysRaised=yes")
	}
	

function menu_jump(path) {
    window.location.href = path.options[path.selectedIndex].value;
  }
	
/* function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) {
	win.window.focus(); 
	}
}
*/

 
// source: http://www.quirksmode.org/js/detect.html 
/*
var detect = navigator.userAgent.toLowerCase();
var OS,browser,version,total,thestring;

if (checkIt('konqueror'))
{
	browser = "Konqueror";
	OS = "Linux";
}
else if (checkIt('safari')) browser = "Safari"
else if (checkIt('omniweb')) browser = "OmniWeb"
else if (checkIt('opera')) browser = "Opera"
else if (checkIt('webtv')) browser = "WebTV";
else if (checkIt('icab')) browser = "iCab"
else if (checkIt('msie')) browser = "Internet Explorer"
else if (!checkIt('compatible'))
{
	browser = "Netscape Navigator"
	version = detect.charAt(8);
}
else browser = "An unknown browser";

if (!version) version = detect.charAt(place + thestring.length);

if (!OS)
{
	if (checkIt('linux')) OS = "Linux";
	else if (checkIt('x11')) OS = "Unix";
	else if (checkIt('mac')) OS = "Mac"
	else if (checkIt('win')) OS = "Windows"
	else OS = "an unknown operating system";
}

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}



if (OS == "Mac" && browser == "Internet Explorer")
{
document.write("<link REL='stylesheet' HREF='mashup_macIE.css' TYPE='text/css'>");
}

if (OS == "Mac" && browser == "Safari")
{
document.write("<link REL='stylesheet' HREF=mashup_mac.css' TYPE='text/css'>");
}

 if (OS == "Mac" && browser != "Internet Explorer")
{
document.write("<link REL='stylesheet' HREF='mashup_mac.css' TYPE='text/css'>");
}

 if (OS != "Mac" && browser == "Internet Explorer")
{
document.write("<link REL='stylesheet' HREF=''mashup_main.css' TYPE='text/css'>");
}

 if (OS != "Mac" && browser != "Internet Explorer")
{
document.write("<link REL='stylesheet' HREF=''mashup_moz.css' TYPE='text/css'>");
}
*/
	startList = function() {

		if (document.all&&document.getElementById) {

			navRoot = document.getElementById("topNav");

			for (i=0; i<navRoot.childNodes.length; i++) {

				node = navRoot.childNodes[i];

				if (node.nodeName=="LI") {

					node.onmouseover=function() {

						this.className+=" over";

  					}

 			 		node.onmouseout=function() {

  						this.className=this.className.replace(" over", "");

   			 		}

  				 }

  			}

 		}

	}


	window.onload=startList;


