function mOver(id1,id2,image,nav,navStyle,navValue){
	if(document.getElementById(id1)){
		document.getElementById(id1).style.backgroundImage = "url("+image+")";
	}
	if(document.getElementById(id2)){
		document.getElementById(id2).style.backgroundImage = "url("+image+")";
	}
	if(document.getElementById(nav)){
		strNav = 'document.getElementById("'+nav+'").style.'+navStyle+' = "'+navValue+'"';
		eval(strNav);
	}
}

function show_popup(gifurl,gifname,wd,ht,rs,mb,tb,lo,st,sb,x){
	
	var lf=(screen.width) ? (screen.width-wd)/2 : 0;
	var tp=(screen.height) ? (screen.height-ht)/2 : 0;
	
		if(!wd||!ht){
			var ha=((mb=='yes')?30:0)+((tb=='yes')?60:0)+((lo=='yes')?20:0)+((st=='yes')?20:0);wd=600;ht=400-ha;if(ver4){
				if(screen.availWidth){
					wd=screen.availWidth-20;ht=screen.availHeight-65-ha;lf=screen.availLeft;tp=screen.availTop+10;
				}
			}
		} 
	window.open(gifurl,gifname,'width='+wd+',height='+ht+',left='+lf+',top='+tp+',resizable='+rs+',menubar='+mb+',toolbar='+tb+',location='+lo+',status='+st+',scrollbars='+sb+x);
} 


function checkFields(){
		if (document.contactus.First_Name.value == ""){
			alert("Your First Name is required");
			return false;
	}	
		if (document.contactus.Last_Name.value == ""){
			alert("Your Last Name is required");
			return false;
	}	
		if (document.contactus.Email_Address.value == "" || (document.contactus.Email_Address.value.indexOf("@",0) == -1||document.contactus.Email_Address.value.indexOf(".",0) == -1)) { 
			alert("Please enter a valid E-mail address");
			return false;
	}
		if (document.contactus.comments.value == ""){
			alert("Your Comments are required");
			return false;
	}	
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		nav_bullet_over = newImage("/zajac/images/nav_bullet_over.gif");
		nav_sub_bullet = newImage("/zajac/images/nav_sub_bullet.gif");
		preloadFlag = true;
	}
}