var curlight

// preload 
var pica = new Array();
var picb  = new Array();
for(i=1;i<=7;i++) {
	pica[i] = new Image();
	picb[i] = new Image();
	pica[i].src = "images/nav"+i+".jpg";
	picb[i].src = "images/nav"+i+"on.jpg";
}
	
function over(which) {
theImage = eval("document.nav" + which);
if (which!=curlight) theImage.src = "images/nav"+which+"on.jpg";
}

function out(which) {
theImage = eval("document.nav" + which);
if (which!=curlight) theImage.src = "images/nav"+which+".jpg";
else theImage.src = "images/nav"+which+"on.jpg"; 
}

function light(which) {
theImage = eval("document.nav" + which);
theImage.src = "images/nav"+which+"on.jpg";
curlight = which;
}





function enlarge(which) {
window.open("enlarge.html?"+which,"enlarge","width=780,height=520,resizable=1,scrollbars=1")
}




function validateCons(theForm) {
if (theForm.name.value == "") {
	alert("Name required. Thank you");
	theForm.name.focus();
	return (false);
	}
if (theForm.email.value == "") {
	alert("Email required. Thank you");
	theForm.email.focus();
	return (false);
	}
if (theForm.email.value.indexOf("@")<1 || theForm.email.value.indexOf(".")<1) {
	alert("Valid email required. Thank you");
	theForm.email.focus();
	return (false);
	}
if (theForm.phone.value == "") {
	alert("Phone required. Thank you");
	theForm.phone.focus();
	return (false);
	}
return (true);
}
