// 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
		}
	}
}



  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-24615977-1']);
  _gaq.push(['_trackPageview']);
  _gaq.push(['_trackPageLoadTime']);

  
  //report to rollup
  _gaq.push(['ru._setAccount', 'UA-24615977-4']);
  _gaq.push(['ru._trackPageview']);
  _gaq.push(['ru._trackPageLoadTime']);	

 (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

