<!-- Begin

var ar_pics = new Array();
var ar_alt = new Array();



ar_pics[0] = 'images/image001.jpg'; //Be Aware, Motorcycles are Everywhere.
ar_alt [0] = 'Be Aware, Motorcycles are Everywhere';

ar_pics[1] = 'images/image002.jpg'; //Your safety is our business
ar_alt[1] = 'Your Safety is Our Business';

ar_pics[2] = 'images/image003.jpg'; //Mock crash
ar_alt[2] = 'Working a Crash Scene';

ar_pics[3] = 'images/image004.jpg'; //Motor Carrier Inspector
ar_alt[3] = 'Motor Carrier Inspector';

ar_pics[4] = 'images/image005.gif'; //Call *47 or *KTA for help
ar_alt[4] = 'Call *47 or *KTA for help';

ar_pics[5] = 'images/image006.jpg'; //Primary Seat Belt Law
ar_alt[5] = 'Primary Seat Belt Law In Effect';


//no modifications below this point
function getImage(){
	var arrayLength = ar_pics.length;
	var randomNumber=Math.floor(Math.random() * arrayLength);
	document.getElementById("randomImage").src = ar_pics[randomNumber];
	document.getElementById("randomImage").alt = ar_alt[randomNumber];
}


function showMenu(obj){
	obj.style.visibility="visible";
}

function hideMenu(obj){
	obj.style.visibility="hidden";
}


function openPopup(url, windowTarget){
	var winTarget = window.open(url, windowTarget, 'width=640, height=480, toolbar=1, location=1, directories=1, status=1, menubar=1, scrollbars=1, resizable=1 top=0 left=0');
	
	if (window.focus)
		winTarget.focus();
}


function openPicWindow(url, windowTarget, w, h){

	var winPicTarget = window.open(url, windowTarget, 'width='+ w + ', height=' + h + ', toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0 top=0 left=0');
	winPicTarget.resizeTo(width=w + 20, height=h+50);
	
	winPicTarget.document.open(); 
	winPicTarget.document.write("<html><title>Kansas Highway Patrol Photos</title><head><link rel='stylesheet' type='text/css' href='../../css/khp.css' media='all'></head><body class='tblClassWrapper'>"); 
	winPicTarget.document.write("<img  src='" + url + "'>");
	winPicTarget.document.write('</body></html>');
	winPicTarget.document.close();
	if (window.focus)
		winPicTarget.focus();
		
}

function tabFocus(varId){
	document.getElementById(varId).style.border = "1px dashed red";
}

function tabNonFocus(varId){
	document.getElementById(varId).style.border = "1px solid #990000";
}
//End -->
