// JavaScript Document
// Menu that jumps to different KMA sites.
function selecturl(urlPass) 
{
  var jumpURL = urlPass.options[urlPass.selectedIndex].value;

  if ((jumpURL != null) && (jumpURL != ""))
	  {
		window.top.location.href = jumpURL;
	  }
}

// Added by DTNehring on 5/9/06
// Taken from an example from DOM Scripting by Jeremy Keith
// Strips the Rows of a Table that is has the ID of alternativeTable
function stripeTable(){	
	var table = document.getElementById("alternateTable");	
	var rows = table.getElementsByTagName("tr");
	var odd = false;
	
	for (var j=0; j<rows.length; j++){
		rows[j].style.backgroundColor = "#FFFFFF";
		if (odd == true){
			rows[j].style.backgroundColor = "#ECECEC";
			odd = false;
		} else {
			odd = true;
		}
	}
}
// Highlights Rows of a Table when they are moused over, must have an ID of alternativeTable
function highlightRows(){
	var table = document.getElementById("alternateTable");	
	var rows = table.getElementsByTagName("tr");
	
	for (var i=0; i<rows.length; i++){	
			
		//variables for holding the present background and font colors prior to the mouseover event
		var presentBackGroundColor;
		var presentColor;
		
		rows[i].onmouseover = function() {
			presentBackGroundColor = this.style.backgroundColor;
			presentColor = this.style.color;
			this.style.backgroundColor = "#999999";					//sets background color
			this.style.color = "#FFFFFF";							//sets font color
		}
		rows[i].onmouseout = function(){
			this.style.backgroundColor = presentBackGroundColor; 	//resets background color
			this.style.color = presentColor;						//resets font color
		}
	}
}
