// ------- son of suckerfish menu script -------
  sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
			this.style.zIndex=200; //this line added to force flyout to be above relatively positioned stuff in IE
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), '');
			this.style.zIndex=0; //this line added to force flyout to be above relatively positioned stuff in IE
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

function showMenu() {



document.write("	<table border=0 cellpadding=0 cellspacing=0 width=900><tr>");

document.write("	<td width=100 align=left class=menuText><a href=about.html>about</a></td>");

document.write("	<td width=100 align=left class=menuText>");
document.write("	<ul id=nav>");
document.write("		<li><a href=gallery.html>portraits</a>");
document.write("			<ul>");
document.write("				<li><a href=maternity.html>maternity</a></li>");
document.write("				<li><a href=children.html>children</a></li>");
document.write("				<li><a href=seniors.html>teens/seniors</a></li>");
//document.write("				<li><a href=couples.html>couples</a></li>");
document.write("				<li><a href=family.html>families</a></li>");
document.write("				<li><a href=business.html>business</a></li>");
document.write("				<li><a href=faces.html>editorial</a></li>");
//document.write("				<li><a href=weddings.html>weddings</a></li>");
document.write("			</ul>	");
document.write("		</li>");
document.write("	</ul>	");
document.write("	</td>");

document.write("	<td width=100 align=left class=menuText><a href=weddings.html>weddings</a></td>");

document.write("	<td width=100 align=left class=menuText><a href=contact.html>contact</a></td>");
document.write("	<td width=100 align=left class=menuText><a href=pricing.html>pricing</a></td>");
document.write("	<td width=100 align=left class=menuText><a href=proofs.html>client proofs</a></td>");
document.write("	<td width=75 align=left class=menuText><a href=mailing.html>mailing list</a></td>");
document.write("	<td width=150 align=center class=menuText><a href=http://www.facebook.com/rbellphotography target=new><img src=images/facebook.gif border=0 alt='Find Us On FaceBook'></a></td>");
document.write("	<td width=75 align=right class=menuText><a href=index.html>home</a></td>");
document.write("	</tr></table>");

}

var FormName = "theForm";

// Place 2:
// Between the quotation marks, specify the field names 
//    that are required. List the field name separated 
//    with a comma.

var RequiredFields = "Name,Email";


//
// No other customization of this JavaScript is required.
//
/////////////////////////////////////////////////////////

function ValidateRequiredFields()
{
var FieldList = RequiredFields.split(",")
var BadList = new Array();
for(var i = 0; i < FieldList.length; i++) {
	var s = eval('document.' + FormName + '.' + FieldList[i] + '.value');
	s = StripSpacesFromEnds(s);
	if(s.length < 1) { BadList.push(FieldList[i]); }
	}
if(BadList.length < 1) { return true; }
var message = new String('\n\nThe following field(s) are required:\n');
for(var i = 0; i < BadList.length; i++) { message += '\n' + BadList[i]; }
document.getElementById('errorMsg').innerHTML = message;
return false;
}

function StripSpacesFromEnds(s)
{
while((s.indexOf(' ',0) == 0) && (s.length> 1)) {
	s = s.substring(1,s.length);
	}
while((s.lastIndexOf(' ') == (s.length - 1)) && (s.length> 1)) {
	s = s.substring(0,(s.length - 1));
	}
if((s.indexOf(' ',0) == 0) && (s.length == 1)) { s = ''; }
return s;
}
