// JavaScript Document
function doLoadup() {
	navHover();
	//FootnavHover();
}
// main nav javascript roll over code
function navHover() {
	var navEls = document.getElementById("nav").getElementsByTagName("IMG");
	for (var i=0; i<navEls.length; i++) {
		navEls[i].onmouseover=function() {
			if(!this.src.match("_selected")) {
				newSrc = this.src.replace(new RegExp(".gif\\b"), "_f2.gif");
				this.src = newSrc;
			}
		}
		navEls[i].onmouseout=function() {
			if(!this.src.match("_selected")) {
				newSrc = this.src.replace(new RegExp("_f2.gif\\b"), ".gif");
				this.src = newSrc;
			}
		}
	}
}

function FootnavHover() {
	var navEls = document.getElementById("footnav").getElementsByTagName("IMG");
	for (var i=0; i<navEls.length; i++) {
		navEls[i].onmouseover=function() {
			if(!this.src.match("_selected")) {
			newSrc = this.src.replace(new RegExp(".gif\\b"), "_f2.gif");
			this.src = newSrc;
			}
		}
		navEls[i].onmouseout=function() {
			if(!this.src.match("_selected")) {
			newSrc = this.src.replace(new RegExp("_f2.gif\\b"), ".gif");
			this.src = newSrc;
			}
		}
	}
}

function rollOver(rollOverImage) {
	if(!rollOverImage.src.match("_selected")) {
		newSrc = rollOverImage.src.replace(new RegExp(".gif\\b"), "_f2.gif");
		rollOverImage.src = newSrc;
	}
}

function rollOut(rollOutImage) {
		newSrc = rollOutImage.src.replace(new RegExp("_f2.gif\\b"), ".gif");
		rollOutImage.src = newSrc;
}




	//----------------------------------------------------------
	// Name		: popwin
	// Purpose	: Create Popup Window
	//----------------------------------------------------------
	//
	function popwin(url, name, width, height, location, menubar, status, toolbar)
	{
		if (name == null)
		{
			name = "stdWin";
		}
		if (width == null)
		{
			width = 600;
		}
		if (height == null)
		{
			height = 500;
		}
		if (location == null)
		{
			location = "no"
		}
		if (menubar == null)
		{
			menubar = "yes"
		}
		if (status == null)
		{
			status = "yes"
		}
		if (toolbar == null)
		{
			toolbar = "yes"
		}

		popup = window.open(url, name, 'width=' + width + ',height=' + height + ',location=' + location + ',menubar=' + menubar + ',status=' + status + ',toolbar=' + toolbar +',scrollbars=yes,resizable=yes,screenx=0,screeny=0,left=0,top=0');
		if (window.focus) setTimeout("popup.focus()",100);
	}
