<!-- Begin



var imageNum = 1;

/*TROOPER*/
function changeTrooperImage(type){

	if (type=="next") {

		if (imageNum < 5){
			imageNum++;
		}
	}
			
	
	else if (type=="previous") {
		
		if (imageNum > 1){
			imageNum--;
		}
	}
	
	if (imageNum > 1 && imageNum < 5){
		document.getElementById("NextBtn").disabled = false;
		document.getElementById("PrevBtn").disabled = false;
			
	}
	else if (imageNum==1){
		document.getElementById("PrevBtn").disabled = true;
	}
	else if (imageNum==5){
		document.getElementById("NextBtn").disabled = true; 		
	}
	
	var desc;
	var sourceTag;
	var altTag;
	var titleTag;

	switch (imageNum) {
		
		case 1:
			sourceTag = "images/co_trp001.jpg";
			altTag =  "Roadside officer image.";
			titleTag = "Roadside officer";
			
			desc = "Road patrol services are the core of the Patrol's every day activities. State troopers patrol Kansas' roads and highways, performing traffic stops, providing emergency medical assistance, assisting motorists, and apprehending offenders. Troopers investigate motor vehicle crashes, provide support to other law enforcement agencies, and educate the public about traffic safety.";
						
			break;
		case 2:	
			sourceTag = "images/co_trp002.jpg";
			altTag =  'Police Service Dog Unit image.';
			titleTag = "Police Service Dog Unit";
			
			desc = "The Police Service Dog Unit is a proven asset to the Patrol, and its members often assist other law enforcement agencies in Kansas. The service dogs and their handlers are assigned strategically across the state and receive specialized training to detect explosive devices and weapons, track individuals, and detect illegal drugs and paraphernalia.";
			
			break;

		case 3:	
			sourceTag = "images/co_trp003.jpg";
			altTag = 'Reconstructing a crash scene image.';
			titleTag = "Reconstructing a crash scene";
			
			desc = "The Critical Highway Accident Reconstruction Team, also known as CHART, investigates serious injury or fatality crashes involving commercial motor vehicles and/or crashes involving on-duty state employees. Using mapping and computer software, CHART members determine how a crash occurred, and provide expert analysis and testimony in criminal cases. CHART members also teach advanced accident reconstruction techniques to other law enforcement officers.";
						
			break;	
		
		case 4:	
			sourceTag =  "images/co_trp004.jpg";
			altTag = 'School bus inspection image.';
			titleTag = "School bus inspection";
			
			desc = "Each August, troopers inspect the mechanical systems of more than 8,000 school buses and check for compliance with safety regulations to ensure the buses will load, transport, and unload students safely. The annual school bus inspections are an important and invaluable service offered by the Patrol, and the agency is proud to provide this service to our state’s young citizens.";
			
			break;

		case 5:	
			sourceTag = "images/co_trp005.jpg";
			altTag = 'Special Response Team image.';
			titleTag = "Special Response Team";
	
			desc = "The Special Response Team (SRT) is made up of a team leader, assistant team leader, marksmen/scouts, negotiators, and operators. Together, members of the SRT provide rapid response to high-risk situations. Team members are trained to use specialized equipment and tactics, and the team provides expertise to local departments that do not have the equipment, staffing, or training to handle potentially volatile situations.";
			


			break;			

	}
	
	
	var OurDiv = document.getElementById("imageText");
	OurDiv.removeChild(OurDiv.childNodes[0]);
	var OurText = document.createTextNode(desc);
	OurDiv.appendChild(OurText); 
	
	document.getElementById('boxPic').src = sourceTag;
	document.getElementById('boxPic').alt = altTag;
	document.getElementById('boxPic').title = titleTag;
	
	//another way to do it that might not be supported by all browsers.
	//document.getElementById("trooperText").innerHTML = desc;
	

}
//CAPITOL POLICE
function changeCap_PoliceImage(type){


	if (type=="next") {

		if (imageNum < 3)
			imageNum++;
	}
			
	
	else if (type=="previous") {
		
		if (imageNum > 1){
			imageNum--;
		}
	}
	
	if (imageNum > 1 && imageNum < 3){
		document.getElementById("NextBtn").disabled = false;
		document.getElementById("PrevBtn").disabled = false;
			
	}
	else if (imageNum==1){
		document.getElementById("PrevBtn").disabled = true;
	}
	else if (imageNum==3){
		document.getElementById("NextBtn").disabled = true; 		
	}
	
	var desc;
	var sourceTag;
	var altTag;
	var titleTag;

	switch (imageNum) {
		
		case 1:
			sourceTag = "images/co_casp001.jpg";
			altTag =  "Capitol Police provide protection during Inauguration.";
			titleTag = "Capitol Police provide protection during Inauguration";
			
			desc = "Capitol Police Officers provide security during special events at the Capitol Complex in Topeka. Officers also patrol state grounds and provide law enforcement services on state-owned property";
						
			break;
		
		case 2:	
			sourceTag = "images/co_casp002.jpg";
			altTag =  "Central Monitoring at Capitol Complex";
			titleTag = "Central Monitoring at Capitol Complex";
			
			desc = "Central Monitoring at the Capitol Complex assists Capitol Police Officers and Capitol Area Guards with providing safety and security at state buildings in Topeka.";
			
			break;


		case 3:	
			sourceTag = "images/co_casp003.jpg";
			altTag =  "Capitol Area Guard";
			titleTag = "Capitol Area Guard";
			
			desc = "Capitol Area Guards assist visitors to the Capitol Building. Guards also provide security at state-owned buildings";
						
			break;	

	}
	
	
	var OurDiv = document.getElementById("imageText");
	OurDiv.removeChild(OurDiv.childNodes[0]);
	var OurText = document.createTextNode(desc);
	OurDiv.appendChild(OurText); 
	
	document.getElementById('boxPic').src = sourceTag;
	document.getElementById('boxPic').alt = altTag;
	document.getElementById('boxPic').title = titleTag;
	
	//another way to do it that might not be supported by all browsers.
	//document.getElementById("trooperText").innerHTML = desc;
	

}
//MCI
function changeMCI_Image(type){

	if (type=="next") {

		if (imageNum < 5)
			imageNum++;
	}
			
	
	else if (type=="previous") {
		
		if (imageNum > 1){
			imageNum--;
		}
	}
	
	if (imageNum > 1 && imageNum < 5){
		document.getElementById("NextBtn").disabled = false;
		document.getElementById("PrevBtn").disabled = false;
			
	}
	else if (imageNum==1){
		document.getElementById("PrevBtn").disabled = true;
	}
	else if (imageNum==5){
		document.getElementById("NextBtn").disabled = true; 		
	}
	
	var desc;
	var sourceTag;
	var altTag;
	var titleTag;

	switch (imageNum) {
		
		case 1:
			sourceTag = "images/co_mci001.jpg";
			altTag =  "Motor Carrier Inspector at crash scene";
			titleTag = "Motor Carrier Inspector at crash scene";
			desc = "Motor Carrier Inspector Law Enforcement Officers assist at crash scenes involving commercial motor vehicles.";
									
			break;
	
		case 2:	
			sourceTag = "images/co_mci002.jpg";
			altTag =  "Scale House";
			titleTag = "Scale House";
			desc = "Motor Carrier Inspectors enforce state and federal weight and safety regulations for commercial motor vehicles. Inspectors assigned to the Patrol's scale houses ensure trucks' weights comply with state and federal regulations.";
												
			break;


		case 3:	
			sourceTag = "images/co_mci003.jpg";
			altTag =  "Motor Carrier Inspector.";
			titleTag = "Motor Carrier Inspector";

			desc = "Motor Carrier Inspectors work with commercial motor vehicle carriers to ensure they are traveling safely through Kansas.";
												
			break;
		

		case 4:	
			sourceTag = "images/co_mci004.jpg";
			altTag =  "Mobile Motor Carrier Inspector using computer.";
			titleTag = "Mobile Motor Carrier Inspector using computer";

			desc = "Motor Carrier Inspector mobile units conduct inspections of commercial motor vehicles traveling in Kansas. The inspections check for compliance with state and federal safety and weight regulations.";
									
			break;

		case 5:	
			sourceTag = "images/co_mci005.jpg";
			altTag =  'Scale under truck tire';
			titleTag = "Scale under truck tire";

			desc = "Motor Carrier Inspectors enforce state and federal weight regulations that pertain to commercial motor vehicles.";
									
			break;

	}
	
	
	var OurDiv = document.getElementById("imageText");
	OurDiv.removeChild(OurDiv.childNodes[0]);
	var OurText = document.createTextNode(desc);
	OurDiv.appendChild(OurText); 
	
	document.getElementById('boxPic').src = sourceTag;
	document.getElementById('boxPic').alt = altTag;
	document.getElementById('boxPic').title = titleTag;
	
	//another way to do it that might not be supported by all browsers.
	//document.getElementById("trooperText").innerHTML = desc;
	

}
//COMMUNICATIONS SPECIALIST
function changeCommImage(type){

	if (type=="next") {

		if (imageNum < 5)
			imageNum++;
	}
			
	
	else if (type=="previous") {
		
		if (imageNum > 1){
			imageNum--;
		}
	}
	
	if (imageNum > 1 && imageNum < 5){
		document.getElementById("NextBtn").disabled = false;
		document.getElementById("PrevBtn").disabled = false;
			
	}
	else if (imageNum==1){
		document.getElementById("PrevBtn").disabled = true;
	}
	else if (imageNum==5){
		document.getElementById("NextBtn").disabled = true; 		
	}
	
	var desc;
	var sourceTag;
	var altTag;
	var titleTag;

	switch (imageNum) {
		
		case 1:
			sourceTag = "images/co_comm001.jpg";
			altTag =  "Communications Specialist";
			titleTag = "Communications Specialist";

			desc = "Communications Specialists assist callers to the Kansas Highway Patrol's Central Communications Center. Communications Specialists support field personnel 24 hours a day, seven days a week by rapidly and efficiently broadcasting information.";
									
			break;
						

	
		case 2:	
			sourceTag = "images/co_comm002.jpg";
			altTag =  "Central Communications";
			titleTag = "Central Communications";

			desc = "The Central Communications Center in Salina, Kan., is the radio support hub of the Kansas Highway Patrol. Communications Specialists use law enforcement computer programs and radio programs to support uniformed personnel in the field.";
									
			break;
			



		case 3:	
			sourceTag = "images/co_comm003.jpg";
			altTag =  "Communications Specialists assist during natural disasters";
			titleTag = "Communications Specialists assist during natural disasters";

			desc = "Communications Specialists assist with coordinating multi-agency responses to events, such as natural disasters. Communications Specialists maintain contact with the Patrol's uniformed personnel and connect them to personnel from other agencies responding to the same event.";

									
			break;
			
	
		case 4:	
			sourceTag = "images/co_comm004.jpg";
			altTag =  "Trooper on radio";
			titleTag = "Trooper on radio";
			
			desc = "Troopers rely on Communications Specialists to quickly rely information vital to tracking criminal activity and apprehending offenders.";
			
			break;

		case 5:	
			sourceTag = "images/co_comm005.jpg";
			altTag =  "Kansas Highway Patrol Helicopter";
			titleTag = "Kansas Highway Patrol Helicopter";
	
			desc = "The newest addition to the Kansas Highway Patrol's aircraft fleet supports radio interoperability, which allows members of different agencies to seamlessly communicate with one another.";
	
			break;			

	}
	
	
	var OurDiv = document.getElementById("imageText");
	OurDiv.removeChild(OurDiv.childNodes[0]);
	var OurText = document.createTextNode(desc);
	OurDiv.appendChild(OurText); 
	
	document.getElementById('boxPic').src = sourceTag;
	document.getElementById('boxPic').alt = altTag;
	document.getElementById('boxPic').title = titleTag;
	
	//another way to do it that might not be supported by all browsers.
	//document.getElementById("trooperText").innerHTML = desc;
	

}

//CIVILIAN
function changeCivImage(type){

	if (type=="next") {

		if (imageNum < 3)
			imageNum++;
	}
			
	
	else if (type=="previous") {
		
		if (imageNum > 1){
			imageNum--;
		}
	}
	
	if (imageNum > 1 && imageNum < 3){
		document.getElementById("NextBtn").disabled = false;
		document.getElementById("PrevBtn").disabled = false;
			
	}
	else if (imageNum==1){
		document.getElementById("PrevBtn").disabled = true;
	}
	else if (imageNum==3){
		document.getElementById("NextBtn").disabled = true; 		
	}
	
	var desc;
	var sourceTag;
	var altTag;
	var titleTag;

	switch (imageNum) {
		
		case 1:
			sourceTag = "images/co_civ001.jpg";
			altTag =  "Hands on keyboard";
			titleTag = "Hands on keyboard";
			
			desc = "Civilian staff members support the agency's administrative functions, such as accounting, records, information technology, support services, and human resources.";
						
			break;
	
		case 2:	
			sourceTag = "images/co_civ002.jpg";
			altTag =  "Communications Specialist";
			titleTag = "Communications Specialist";
			
			desc = "Career opportunities available to civilians include Communications Specialists, VIN inspection, vehicle maintenance, and motorists assistance units.";
			
			break;

		case 3:	
			sourceTag = "images/co_civ003.jpg";
			altTag =  "Interstate Highway";
			titleTag = "Interstate Highway";
			
			desc = "Civilians staff the agency’s records management division and assist with collecting and maintaining statistics of the Patrol's activities.";
						
			break;	

	}
	
	
	var OurDiv = document.getElementById("imageText");
	OurDiv.removeChild(OurDiv.childNodes[0]);
	var OurText = document.createTextNode(desc);
	OurDiv.appendChild(OurText); 
	
	document.getElementById('boxPic').src = sourceTag;
	document.getElementById('boxPic').alt = altTag;
	document.getElementById('boxPic').title = titleTag;
	
	//another way to do it that might not be supported by all browsers.
	//document.getElementById("trooperText").innerHTML = desc;
	

}


//WOMEN IN THE KHP
function changeWomenImage(type){

	if (type=="next") {

		if (imageNum < 5)
			imageNum++;
	}
			
	
	else if (type=="previous") {
		
		if (imageNum > 1){
			imageNum--;
		}
	}
	
	if (imageNum > 1 && imageNum < 5){
		document.getElementById("NextBtn").disabled = false;
		document.getElementById("PrevBtn").disabled = false;
			
	}
	else if (imageNum==1){
		document.getElementById("PrevBtn").disabled = true;
	}
	else if (imageNum==5){
		document.getElementById("NextBtn").disabled = true; 		
	}
	
	var desc;
	var sourceTag;
	var altTag;
	var titleTag;

	switch (imageNum) {
		

		case 1:
			sourceTag = "images/co_women001.jpg";
			altTag =  "Child Seat Inspection";
			titleTag = "Child Seat Inspection";
			
			desc = "Troopers enforce Kansas laws and educate the public about traffic safety. Many career opportunities are available to troopers, such as becoming a certified child safety seat technician.";
						
			break;
	
		case 2:	
			sourceTag = "images/co_women002.jpg";
			altTag =  "Issuing citation";
			titleTag = "Issuing citation";
			
			desc = "Daily responsibilities for Kansas troopers include performing traffic stops and talking with members of the public about safe driving.";
			
			break;


		case 3:	
			sourceTag = "images/co_women003.jpg";
			altTag =  "Troopers undergo 22 weeks of training";
			titleTag = "Troopers undergo 22 weeks of training";
			
			desc = "Troopers undergo 22 weeks of extensive training at the Kansas Highway Patrol Training Academy in Salina, Kan. Upon graduation from the Academy, troopers begin 16 weeks of field training with a veteran trooper in their assigned district.";
						
			break;	
		

		case 4:	
			sourceTag = "images/co_women004.jpg";
			altTag =  "Trooper performing truck inspection";
			titleTag = "Trooper performing truck inspection";
			
			desc = "Daily responsibilities for Kansas troopers include performing traffic stops and talking with members of the public about safe driving. Troopers also inspect commercial motor vehicles to ensure compliance with state and federal safety regulations.";
			
			break;


		case 5:	
			sourceTag = "images/co_women005.jpg";
			altTag =  "Trooper performing DUI test";
			titleTag = "Trooper performing DUI test";
	
			desc = "Troopers enforce Kansas laws and apprehend criminal offenders. Troopers receive extensive training in DUI enforcement and apprehension. Troopers also may seek additional training to become a certified Drug Recognition Expert.";

			break;

	}
	
	
	var OurDiv = document.getElementById("imageText");
	OurDiv.removeChild(OurDiv.childNodes[0]);
	var OurText = document.createTextNode(desc);
	OurDiv.appendChild(OurText); 
	
	//another way to do it that might not be supported by all browsers.
	//document.getElementById("trooperText").innerHTML = desc;
	
	document.getElementById('boxPic').src = sourceTag;
	document.getElementById('boxPic').alt = altTag;
	document.getElementById('boxPic').title = titleTag;
	

}


//COMMUNITY INVOLVEMENT
function changeCommunityImage(type){

	if (type=="next") {

		if (imageNum < 4)
			imageNum++;
	}
			
	
	else if (type=="previous") {
		
		if (imageNum > 1){
			imageNum--;
		}
	}
	
	if (imageNum > 1 && imageNum < 4){
		document.getElementById("NextBtn").disabled = false;
		document.getElementById("PrevBtn").disabled = false;
			
	}
	else if (imageNum==1){
		document.getElementById("PrevBtn").disabled = true;
	}
	else if (imageNum==4){
		document.getElementById("NextBtn").disabled = true; 		
	}
	
	var desc;
	var sourceTag;
	var altTag;
	var titleTag;

	switch (imageNum) {
		

		case 1:
			sourceTag = "../careerop/images/comm01.jpg";
			altTag =  "Snowy crash";
			titleTag = "Snowy crash";
			
			desc = "Uniformed officers assist other emergency personnel throughout the state at crash scenes and traffic stops.";
						
			break;
	
		case 2:	
			sourceTag = "../careerop/images/comm02.jpg";
			altTag =  "Helicopter flying over city";
			titleTag = "Helicopter flying over city";
			
			desc = "From manhunts to communication support, the KHP provides aerial surveillance for communities that do not have air support.";
			
			break;


		case 3:	
			sourceTag = "../careerop/images/comm03.jpg";
			altTag =  "School bus inspections";
			titleTag = "School bus inspections";
			
			desc = "Troopers perform yearly school bus inspections on every school bus in the state.  This helps to ensure that our children will have save transportation to and from school.";
						
			break;	
		

		case 4:	
			sourceTag = "../careerop/images/comm04.jpg";
			altTag =  "Cadet Law";
			titleTag = "Cadet Law";
			
			desc = "The Cadet Law program, hosted by the Patrol, American Legion, and American Legion Auxiliary, teaches young Kansans about training and responsibilities of law enforcement officers in a hands-on environment.";
			
			break;

	}
	
	
	var OurDiv = document.getElementById("imageText");
	OurDiv.removeChild(OurDiv.childNodes[0]);
	var OurText = document.createTextNode(desc);
	OurDiv.appendChild(OurText); 
	
	//another way to do it that might not be supported by all browsers.
	//document.getElementById("trooperText").innerHTML = desc;
	
	document.getElementById('boxPic').src = sourceTag;
	document.getElementById('boxPic').alt = altTag;
	document.getElementById('boxPic').title = titleTag;
	

}






//End -->
