<!-- Begin

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



ar_pics[0] = 'images/image001.jpg'; //Use caution during winter driving.
ar_alt [0] = 'Winter Stop';

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'; //night crash
ar_alt[2] = 'Night Crash';

ar_pics[3] = 'images/image004.jpg'; //srt
ar_alt[3] = 'KHP SRT response';

ar_pics[4] = 'images/image005.jpg';
ar_alt[4] = 'Night stop';

ar_pics[5] = 'images/image006.jpg';
ar_alt[5] = 'DUI Checklane';


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