// <!--
// Determine browser for mouseover goodies
var browserOK = "FALSE"
theAppVersion = parseInt(navigator.appVersion.charAt(0))
if ((navigator.appName == "Netscape" && theAppVersion >= 3)
	|| (navigator.appName == "Microsoft Internet Explorer"
	&& theAppVersion >= 4)) {
		browserOK = "TRUE"
}

pixLoaded = "FALSE"
function loadPix() {
	if (browserOK == "TRUE") { // Is this Netscape 3 or better?
		pixLoaded = "TRUE"
		selectedGraphic = new Array()
		for(i=0; i<=16; i++) {
			selectedGraphic[i] = new Image()
		}
		selectedGraphic[0].src = "../images/secondarynav2/home.gif"     
		selectedGraphic[1].src = "../images/secondarynav2/homeX.gif"     
		selectedGraphic[2].src = "../images/secondarynav2/medmalpractice.gif"     
		selectedGraphic[3].src = "../images/secondarynav2/medmalpracticeX.gif"     
		selectedGraphic[4].src = "../images/secondarynav2/auto.gif"     
		selectedGraphic[5].src = "../images/secondarynav2/autoX.gif"
		selectedGraphic[6].src = "../images/secondarynav2/personal.gif"     
		selectedGraphic[7].src = "../images/secondarynav2/personalX.gif" 
		selectedGraphic[8].src = "../images/secondarynav2/about.gif"     
		selectedGraphic[9].src = "../images/secondarynav2/aboutX.gif"
		selectedGraphic[10].src = "../images/secondarynav2/norecovery.gif"     
		selectedGraphic[11].src = "../images/secondarynav2/norecoveryX.gif"
		selectedGraphic[12].src = "../images/secondarynav2/contact.gif"     
		selectedGraphic[13].src = "../images/secondarynav2/contactX.gif"
		selectedGraphic[14].src = "../images/secondarynav2/directions.gif"     
		selectedGraphic[15].src = "../images/secondarynav2/directionsX.gif"
	}
}


function hilite(button,highLow) { // Set the hilight of the button
	if (browserOK == "TRUE" && pixLoaded == "TRUE") { // NS3?
		thePix = "document." + button + ".src = selectedGraphic[" + highLow + "].src"
		eval(thePix)
	}
}
//  -->

/*------------------------------------------------------------------------------------------*/
// Email Validator
function emailCheck (emailStr) {var checkTLD=1;var knownDomsPat=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/;var emailPat=/^(.+)@(.+)$/;var specialChars="\\(\\)><@,;:\\\\\\\"\\.\\[\\]";var validChars="\[^\\s" + specialChars + "\]";var quotedUser="(\"[^\"]*\")";var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;var atom=validChars + '+';var word="(" + atom + "|" + quotedUser + ")";var userPat=new RegExp("^" + word + "(\\." + word + ")*$");var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$");var matchArray=emailStr.match(emailPat);if (matchArray==null) {alert("Email address seems incorrect (check @ and .'s)");return false;}var user=matchArray[1];var domain=matchArray[2];for (i=0; i<user.length; i++) {if (user.charCodeAt(i)>127) {alert("Ths username contains invalid characters.");return false;}}for (i=0; i<domain.length; i++) {if (domain.charCodeAt(i)>127) {alert("Ths domain name contains invalid characters.");return false;}}if (user.match(userPat)==null) {alert("The username doesn't seem to be valid.");return false;}var IPArray=domain.match(ipDomainPat);if (IPArray!=null) {for (var i=1;i<=4;i++) {if (IPArray[i]>255) {alert("Destination IP address is invalid!");return false;}}return true;}var atomPat=new RegExp("^" + atom + "$");var domArr=domain.split(".");var len=domArr.length;for (i=0;i<len;i++) {if (domArr[i].search(atomPat)==-1) {alert("The domain name does not seem to be valid.");return false;}}if (checkTLD && domArr[domArr.length-1].length!=2 && domArr[domArr.length-1].search(knownDomsPat)==-1) {alert("The address must end in a well-known domain or two letter " + "country.");return false;}if (len<2) {alert("This address is missing a hostname!");return false;}return true;}
// Email Validator End


// Clear/Replace Fields
function clearText(thefield) {
  if (thefield.defaultValue==thefield.value) { thefield.value = "" }
}


function replaceText(thefield) {
  if (thefield.value=="") { thefield.value = thefield.defaultValue}
}


//Mini Contact Form Validator
function CheckRequiredFieldsminiContact() {

		if (document.miniContact.name.value=='') {
			alert('Your name is required to use this form.');
			return false;
		}
		else if (document.miniContact.name.value=='*Name') {
			alert('Your name is required to use this form.');
			return false;
		}
		
		if (document.miniContact.email.value=='') {
			alert('A valid email address is required to use this form.');
			return false;
		}
		else if (document.miniContact.email.value=='*Email') {
			alert('A valid email address is required to use this form.');
			return false;
		}
		return true;
}


//Spanish Mini Contact Form Validator
function CheckRequiredFieldsContactSpanish() {

		if (document.miniContactSpanish.name.value=='') {
			alert('Your name is required to use this form.');
			return false;
		}
		else if (document.miniContactSpanish.name.value=='*Name') {
			alert('Your name is required to use this form.');
			return false;
		}
		
		if (document.miniContactSpanish.value=='') {
			alert('A valid email address is required to use this form.');
			return false;
		}
		else if (document.miniContactSpanish.value=='*Email') {
			alert('A valid email address is required to use this form.');
			return false;
		}
		return true;
}





// sidenav
function mmLoadMenus() {
  if (window.mm_menu_1011103605_0) return;
                        window.mm_menu_1011103605_0 = new Menu("root",216,18,"Arial, Helvetica, sans-serif",12,"#FFFFFF","#FECC69","#083664","#083664","left","middle",3,0,1000,-5,7,true,true,true,0,false,true);
  mm_menu_1011103605_0.addMenuItem("Birth&nbsp;Injuries","location='birth_injury.html'");
  mm_menu_1011103605_0.addMenuItem("Cerebral&nbsp;Palsy","location='cerebralpalsy.html'");
  mm_menu_1011103605_0.addMenuItem("Failure&nbsp;to&nbsp;Diagnose&nbsp;Cancer","location='diagnosecancer.html'");
  mm_menu_1011103605_0.addMenuItem("Failure&nbsp;to&nbsp;Diagnose&nbsp;Heart&nbsp;Attack","location='heartattack.html'");
  mm_menu_1011103605_0.addMenuItem("Emergency&nbsp;Room&nbsp;Errors","location='emergencyroom.html'");
  mm_menu_1011103605_0.addMenuItem("Military&nbsp;Medical&nbsp;Malpractice&nbsp;Claims","location='military.html'");
  mm_menu_1011103605_0.addMenuItem("Shoulder&nbsp;Injuries&nbsp;During&nbsp;Delivery","location='shoulder.html'");
  mm_menu_1011103605_0.addMenuItem("Fosamax&nbsp;Injuries","location='fosamax.html'"); 
  mm_menu_1011103605_0.fontWeight="bold";
  mm_menu_1011103605_0.hideOnMouseOut=true;
  mm_menu_1011103605_0.bgColor='#555555';
  mm_menu_1011103605_0.menuBorder=1;
  mm_menu_1011103605_0.menuLiteBgColor='#FFFFFF';
  mm_menu_1011103605_0.menuBorderBgColor='#777777';
      window.mm_menu_1011103699_0 = new Menu("root",225,18,"Arial, Helvetica, sans-serif",12,"#FFFFFF","#FECC69","#083664","#083664","left","middle",3,0,1000,-5,7,true,true,true,0,false,true);
  mm_menu_1011103699_0.addMenuItem("Take&nbsp;Our&nbsp;Quiz","location='accidentquiz.html'");
  mm_menu_1011103699_0.addMenuItem("Answers&nbsp;to&nbsp;FAQs","location='accidentquiz_answers.html'");
  mm_menu_1011103699_0.addMenuItem("Auto&nbsp;Accident&nbsp;Claims","location='autoaccidentclaims.html'");
  mm_menu_1011103699_0.addMenuItem("Drunk&nbsp;Driving&nbsp;Accidents","location='drunkdriving.html'");
  mm_menu_1011103699_0.addMenuItem("Motorcycle&nbsp;Accident&nbsp;Claims","location='motorcycleaccidentclaims.html'");
  mm_menu_1011103699_0.addMenuItem("Pedestrian&nbsp;Accident&nbsp;Claims","location='pedestrianaccident.html'");
  mm_menu_1011103699_0.addMenuItem("Truck&nbsp;Accident&nbsp;Claims","location='truckaccidentclaims.html'");
   mm_menu_1011103699_0.addMenuItem("25&nbsp;Defenses","location='defenses.html'");
  mm_menu_1011103699_0.fontWeight="bold";
  mm_menu_1011103699_0.hideOnMouseOut=true;
  mm_menu_1011103699_0.bgColor='#555555';
  mm_menu_1011103699_0.menuBorder=1;
  mm_menu_1011103699_0.menuLiteBgColor='#FFFFFF';
  mm_menu_1011103699_0.menuBorderBgColor='#777777';

      window.mm_menu_1011103615_0 = new Menu("root",150,18,"Arial, Helvetica, sans-serif",12,"#FFFFFF","#FECC69","#083664","#083664","left","middle",3,0,1000,-5,7,true,true,true,0,false,true);
  mm_menu_1011103615_0.addMenuItem("Personal&nbsp;Injury&nbsp;Lawsuits","location='personalinjury.html'");
  mm_menu_1011103615_0.addMenuItem("Brain&nbsp;Injury&nbsp;Claims","location='brain_injury.html'");
  mm_menu_1011103615_0.addMenuItem("Burn&nbsp;Injury&nbsp;Claims","location='burn_injury.html'");
  mm_menu_1011103615_0.addMenuItem("Wrongful&nbsp;Death&nbsp;Claims","location='wrongfuldeath.html'"); 
   mm_menu_1011103615_0.fontWeight="bold";
   mm_menu_1011103615_0.hideOnMouseOut=true;
   mm_menu_1011103615_0.bgColor='#555555';
   mm_menu_1011103615_0.menuBorder=1;
   mm_menu_1011103615_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1011103615_0.menuBorderBgColor='#777777';

 window.mm_menu_1011103616_0 = new Menu("root",100,18,"Arial, Helvetica, sans-serif",12,"#FFFFFF","#FECC69","#083664","#083664","left","middle",3,0,1000,-5,7,true,true,true,0,false,true);
  mm_menu_1011103616_0.addMenuItem("Herb&nbsp;Fuller","location='fuller_h.html'");
  mm_menu_1011103616_0.addMenuItem("Carol&nbsp;Fuller","location='fuller_c.html'");
  mm_menu_1011103616_0.addMenuItem("Marya&nbsp;Fuller","location='fuller_m.html'");
  mm_menu_1011103616_0.addMenuItem("Jay&nbsp;Fuller","location='fuller_j.html'"); 
  mm_menu_1011103616_0.addMenuItem("Nina&nbsp;Fuller","location='fuller_n.html'"); 
  mm_menu_1011103616_0.addMenuItem("Leonor&nbsp;Fuller","location='fuller_l.html'"); 
   mm_menu_1011103616_0.fontWeight="bold";
   mm_menu_1011103616_0.hideOnMouseOut=true;
   mm_menu_1011103616_0.bgColor='#555555';
   mm_menu_1011103616_0.menuBorder=1;
   mm_menu_1011103616_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1011103616_0.menuBorderBgColor='#777777';
   
    window.mm_menu_1011103617_0 = new Menu("root",100,18,"Arial, Helvetica, sans-serif",12,"#FFFFFF","#FECC69","#083664","#083664","left","middle",3,0,1000,-5,7,true,true,true,0,false,true);
  mm_menu_1011103617_0.addMenuItem("Tacoma","location='tacoma.html'");
  mm_menu_1011103617_0.addMenuItem("Olympia","location='olympia.html'");
  mm_menu_1011103617_0.addMenuItem("Port&nbsp;Orchard","location='portorchard.html'");
   mm_menu_1011103617_0.fontWeight="bold";
   mm_menu_1011103617_0.hideOnMouseOut=true;
   mm_menu_1011103617_0.bgColor='#555555';
   mm_menu_1011103617_0.menuBorder=1;
   mm_menu_1011103617_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1011103617_0.menuBorderBgColor='#777777';
   
mm_menu_1011103615_0.writeMenus();
} // sidenav
