
<!-- Begin Blowup Picture -->

if (document.images) {

	facility1 = new Image (500,275);
	facility1.src="images/facility/facility1Blowup.jpg";

	facility2 = new Image (500,275);
	facility2.src="images/facility/facility2Blowup.jpg";

	facility3 = new Image (500,275);
	facility3.src="images/facility/facility3Blowup.jpg";

	facility4 = new Image (500,275);
	facility4.src="images/facility/facility4Blowup.jpg";

	facility5 = new Image (500,275);
	facility5.src="images/facility/facility5Blowup.jpg";

	facility6 = new Image (500,275);
	facility6.src="images/facility/facility6Blowup.jpg";

	facility7 = new Image (500,275);
	facility7.src="images/facility/facility7Blowup.jpg";

	facility8 = new Image (500,275);
	facility8.src="images/facility/facility8Blowup.jpg";

	cat1 = new Image (500,275);
	cat1.src="images/cats/cat1Blowup.jpg";

	cat2 = new Image (500,275);
	cat2.src="images/cats/cat2Blowup.jpg";

	cat3 = new Image (500,275);
	cat3.src="images/cats/cat3Blowup.jpg";

	cat4 = new Image (500,275);
	cat4.src="images/cats/cat4Blowup.jpg";

	cat5 = new Image (428,275);
	cat5.src="images/cats/cat5Blowup.jpg";

	dog1 = new Image (500,275);
	dog1.src="images/dogs/dog1Blowup.jpg";

	dog2 = new Image (500,275);
	dog2.src="images/dogs/dog2Blowup.jpg";

	horse1 = new Image (500,275);
	horse1.src="images/horses/horse1Blowup.jpg";

	horse2 = new Image (500,275);
	horse2.src="images/horses/horse2Blowup.jpg";

	horse3 = new Image (500,275);
	horse3.src="images/horses/horse3Blowup.jpg";

	horse4 = new Image (500,275);
	horse4.src="images/horses/horse4Blowup.jpg";

}

function swapImage() {

	if (document.images) {
		for (var i=0; i<swapImage.arguments.length; i+=2) {
			document[swapImage.arguments[i]].src = eval
			(swapImage.arguments[i+1] + ".src");
		}
	}
}

function testImageNext() {

	var strPic

	strPic = document.frm.number.value;

	if (strPic == "facility1") {
		document.frm.number.value = "facility2";
		return "facility2";
	}else{
		if (strPic == "facility2") {
			document.frm.number.value = "facility3";
			return "facility3";
		}else{
			if (strPic == "facility3") {
				document.frm.number.value = "facility4";
				return "facility4";
			}else{
				if (strPic == "facility4") {
					document.frm.number.value = "facility5";
					return "facility5";
				}else{
					if (strPic == "facility5") {
						document.frm.number.value = "facility6";
						return "facility6";
					}else{
						if (strPic == "facility6") {
							document.frm.number.value = "facility7";
							return "facility7";
						}else{
							if (strPic == "facility7") {
								document.frm.number.value = "facility8";
								return "facility8";
							}else{
								if (strPic == "facility8") {
									document.frm.number.value = "horse1";
									return "horse1";
								}else{
									if (strPic == "horse1") {
										document.frm.number.value = "cat1";
										return "cat1";
									}else{
										if (strPic == "cat1") {
											document.frm.number.value = "horse2";
											return "horse2";
										}else{
											if (strPic == "horse2") {
												document.frm.number.value = "dog1";
												return "dog1";
											}else{
												if (strPic == "dog1") {
													document.frm.number.value = "cat2";
													return "cat2";
												}else{
													if (strPic == "cat2") {
														document.frm.number.value = "horse3";
														return "horse3";
													}else{
														if (strPic == "horse3") {
															document.frm.number.value = "dog2";
															return "dog2";
														}else{
															if (strPic == "dog2") {
																document.frm.number.value = "cat3";
																return "cat3";
															}else{
																if (strPic == "cat3") {
																	document.frm.number.value = "horse4";
																	return "horse4";
																}else{
																	if (strPic == "horse4") {
																		document.frm.number.value = "facility1";
																		return "facility1";
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}

}

function testImageBack() {

	var strPic

	strPic = document.frm.number.value;

	if (strPic == "facility1") {
		document.frm.number.value = "horse4";
		return "horse4";
	}else{
		if (strPic == "facility2") {
			document.frm.number.value = "facility1";
			return "facility1";
		}else{
			if (strPic == "facility3") {
				document.frm.number.value = "facility2";
				return "facility2";
			}else{
				if (strPic == "facility4") {
					document.frm.number.value = "facility3";
					return "facility3";
				}else{
					if (strPic == "facility5") {
						document.frm.number.value = "facility4";
						return "facility4";
					}else{
						if (strPic == "facility6") {
							document.frm.number.value = "facility5";
							return "facility5";
						}else{
							if (strPic == "facility7") {
								document.frm.number.value = "facility6";
								return "facility6";
							}else{
								if (strPic == "facility8") {
									document.frm.number.value = "facility7";
									return "facility7";
								}else{
									if (strPic == "horse1") {
										document.frm.number.value = "facility8";
										return "facility8";
									}else{
										if (strPic == "cat1") {
											document.frm.number.value = "horse1";
											return "horse1";
										}else{
											if (strPic == "horse2") {
												document.frm.number.value = "cat1";
												return "cat1";
											}else{
												if (strPic == "dog1") {
													document.frm.number.value = "horse2";
													return "horse2";
												}else{
													if (strPic == "cat2") {
														document.frm.number.value = "dog1";
														return "dog1";
													}else{
														if (strPic == "horse3") {
															document.frm.number.value = "cat2";
															return "cat2";
														}else{
															if (strPic == "dog2") {
																document.frm.number.value = "horse3";
																return "horse3";
															}else{
																if (strPic == "cat3") {
																	document.frm.number.value = "dog2";
																	return "dog2";
																}else{
																	if (strPic == "horse4") {
																		document.frm.number.value = "cat3";
																		return "cat3";
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}

}

<!-- End Blowup Picture -->
<!-- Begin Popup Picture -->

/**********************************************************************
  BEGIN MODAL DIALOG CODE
***********************************************************************/

// Global for brower version branching.
var Nav4 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))

// One object tracks the current modal dialog opened from this window.
var dialogWin = new Object()

// Event handler to inhibit Navigator form element 
// and IE link activity when dialog window is active.
function deadend() {
	if (dialogWin.win && !dialogWin.win.closed) {
		dialogWin.win.focus()
		return false
	}
}

// Since links in IE4 cannot be disabled, preserve 
// IE link onclick event handlers while they're "disabled."
// Restore when re-enabling the main window.
var IELinkClicks

// Disable form elements and links in all frames for IE.
function disableForms() {
	IELinkClicks = new Array()
	for (var h = 0; h < frames.length; h++) {
		for (var i = 0; i < frames[h].document.forms.length; i++) {
			for (var j = 0; j < frames[h].document.forms[i].elements.length; j++) {
				frames[h].document.forms[i].elements[j].disabled = true
			}
		}
		IELinkClicks[h] = new Array()
		for (i = 0; i < frames[h].document.links.length; i++) {
			IELinkClicks[h][i] = frames[h].document.links[i].onclick
			frames[h].document.links[i].onclick = deadend
		}
	}
}

// Restore IE form elements and links to normal behavior.
function enableForms() {
	for (var h = 0; h < frames.length; h++) {
		for (var i = 0; i < frames[h].document.forms.length; i++) {
			for (var j = 0; j < frames[h].document.forms[i].elements.length; j++) {
				frames[h].document.forms[i].elements[j].disabled = false
			}
		}
		for (i = 0; i < frames[h].document.links.length; i++) {
			frames[h].document.links[i].onclick = IELinkClicks[h][i]
		}
	}
}

// Grab all Navigator events that might get through to form
// elements while dialog is open. For IE, disable form elements.
function blockEvents() {
	if (Nav4) {
		window.captureEvents(Event.CLICK | Event.MOUSEDOWN | Event.MOUSEUP | Event.FOCUS)
		window.onclick = deadend
	} else {
		disableForms()
	}
	window.onfocus = checkModal
}
// As dialog closes, restore the main window's original
// event mechanisms.
function unblockEvents() {
	if (Nav4) {
		window.releaseEvents(Event.CLICK | Event.MOUSEDOWN | Event.MOUSEUP | Event.FOCUS)
		window.onclick = null
		window.onfocus = null
	} else {
		enableForms()
	}
}

// Invoked by onFocus event handler of EVERY frame,
// return focus to dialog window if it's open.
function checkModal() {
	if (dialogWin.win && !dialogWin.win.closed) {
		dialogWin.win.focus()	
	}
}

/**************************
  END MODAL DIALOG CODE
**************************/

function graphicPopUp(page){

	dialogWin.url = "graphicPopup.asp?graphic=" + page;
	dialogWin.windowprops = "left=0,top=25,width=550,height=550,scrollbars=no";
	dialogWin.win=window.open(dialogWin.url, "displayWindow", dialogWin.windowprops);
	dialogWin.win.focus();
}

<!-- End Popup Picture -->

function testWindowName(){
	if (window.name != "displayWindow"){
		document.location = "./"
	}
}


