function focusField(field){if(field.value==field.defaultValue){field.value="";field.style.color="#000";}return true;}
function blurField(field){if(field.value==""){field.value=field.defaultValue;field.style.color="";}return true;}
function ValidateForm(oForm){
	if(oForm.email.value==oForm.email.defaultValue){
		alert("Please enter your email address.");
		oForm.email.focus();
		return false;
	}
	return true;
}
function openPhoto(imgSrc,imgWidth,imgHeight,strCaption){
	var blnTooWide=imgWidth+10>screen.availWidth;
	var blnTooTall=imgHeight+30>screen.availHeight;
	var leftPosition=blnTooWide?5:(screen.availWidth-imgWidth)/2;
	var topPosition=blnTooTall?5:(screen.availHeight-imgHeight)/2-25;
	var winWidth,winHeight,strScrollbars="",strStyle="";
	if(blnTooWide){winWidth=screen.availWidth-20;strScrollbars=",scrollbars=yes";}
	else if(blnTooTall){winWidth=imgWidth+16;strStyle+="overflow-x:hidden;"}
	else{winWidth=imgWidth;}
	if(blnTooTall){winHeight=screen.availHeight-40;strScrollbars=",scrollbars=yes";}
	else if(blnTooWide){winHeight=imgHeight+16;strStyle+="overflow-y:hidden;"}
	else{winHeight=imgHeight;}
	var objImage=window.open("","_blank","width="+winWidth+",height="+winHeight+",left="+leftPosition+",top="+topPosition+strScrollbars);
	objImage.document.open();
	objImage.document.write('<html><head><title>'+strCaption+'</title><meta http-equiv="imagetoolbar" content="no"></head><body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="'+strStyle+'" onLoad="javascript:focus();" onBlur="javascript:window.close();"><img src="'+imgSrc+'" width="'+imgWidth+'" height="'+imgHeight+'" alt="'+strCaption+'"></body></html>');
	objImage.document.close();
}
function writeEmail(strTLD,strDomain,strUsr,blnLink){
	if(blnLink){document.write('<a href="mailto:'+strUsr+'@'+strDomain+'.'+strTLD+'">'+strUsr+'@'+strDomain+'.'+strTLD+'</a>');}
	else{document.write(strUsr+'@'+strDomain+'.'+strTLD);}
}
/********
 * JavaScript fix for the 2nd level menu dropdowns in IE6 because it doesn't support li:hover
********/
EnableMenu = function() {
	if (document.all && document.getElementById) {
		oRoot = document.getElementById("Menu");
		for (i=0; i<oRoot.childNodes.length; i++) {
			oNode = oRoot.childNodes[i];
			if (oNode.nodeName == "LI") {
				oNode.onmouseover = function() { this.className += " over"; }
				oNode.onmouseout = function() { this.className = this.className.replace(" over", ""); }
			}
		}
	}
}

window.onload=EnableMenu;
