sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

/*--- Validate forms ---*/
function validate_letstalk() {

// check to see if any characters were entered in the field
		  if (document.form.name.value.length<1)
		     { alert("please enter your name.");
		       return false;}

// check to see if any characters were entered in the field
		  if (document.form.email.value.length<1)
		     { alert("please enter your email address.");
		       return false;}
			  
			  // declare a variable for value for field from email
          var valemail=document.form.email.value;
          //parse the string for presence of @ character

          validemail=valemail.indexOf("@")
          // value returned by false in "indexOf" function is "-1"
          if (validemail<0)
          {
           alert("that is not a valid email address");
           return false;
              }

// else everything is fine and submit the form
          return true;
          }
					
	function validate_referfriend() {

// check to see if any characters were entered in the field
		  if (document.form.sendername.value.length<1)
		     { alert("please enter a sender's name.");
		       return false;}

// check to see if any characters were entered in the field
		  if (document.form.senderemail.value.length<1)
		     { alert("please enter a sender's email address.");
		       return false;}
			  
			  // declare a variable for value for field from email
          var valemail=document.form.senderemail.value;
          //parse the string for presence of @ character

          validemail=valemail.indexOf("@")
          // value returned by false in "indexOf" function is "-1"
          if (validemail<0)
          {
           alert("that is not a valid sender's email address");
           return false;
              }
			  
			  // check to see if any characters were entered in the field
		  if (document.form.friendname.value.length<1)
		     { alert("please enter a friend's name.");
		       return false;}

// check to see if any characters were entered in the field
		  if (document.form.friendemail.value.length<1)
		     { alert("please enter a friend's email address.");
		       return false;}
			  
			  // declare a variable for value for field from email
          var valemail=document.form.friendemail.value;
          //parse the string for presence of @ character

          validemail=valemail.indexOf("@")
          // value returned by false in "indexOf" function is "-1"
          if (validemail<0)
          {
           alert("that is not a valid sender's email address");
           return false;
              }

// else everything is fine and submit the form
          return true;
          }
					
function validate_freeassessment() {

// check to see if any characters were entered in the field
		  if (document.form.name.value.length<1)
		     { alert("please enter your name.");
		       return false;}

// check to see if any characters were entered in the field
		  if (document.form.email.value.length<1)
		     { alert("please enter your email address.");
		       return false;}
			  
			  // declare a variable for value for field from email
          var valemail=document.form.email.value;
          //parse the string for presence of @ character

          validemail=valemail.indexOf("@")
          // value returned by false in "indexOf" function is "-1"
          if (validemail<0)
          {
           alert("that is not a valid email address");
           return false;
              }

// check to see if any characters were entered in the field
		  if (document.form.phone.value.length<1)
		     { alert("please enter your phone number.");
		       return false;}
			   
// else everything is fine and submit the form
          return true;
          }
