function mmLoadMenus() {
  if (window.mm_menu_1011103605_0) return;
                                window.mm_menu_1011103605_0 = new Menu("root",131,18,"Arial, Helvetica, sans-serif",12,"#33076A","#621950","#F6E6FF","#F6E6FF","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1011103605_0.addMenuItem("Facelift","location='facelift.html'");
  mm_menu_1011103605_0.addMenuItem("Blepharoplasty","location='blepharoplasty.html'");
  mm_menu_1011103605_0.addMenuItem("Rhinoplasty","location='rhinoplasty.html'");
  mm_menu_1011103605_0.addMenuItem("Otoplasty","location='otoplasty.html'");
  mm_menu_1011103605_0.addMenuItem("Chin&nbsp;Implants","location='chin_implant.html'");
  mm_menu_1011103605_0.addMenuItem("Brow&nbsp;Lift","location='browlift.html'");
  mm_menu_1011103605_0.addMenuItem("Neck&nbsp;Lift","location='neck_lift.html'");
  mm_menu_1011103605_0.addMenuItem("Lip&nbsp;Augmentation","location='lip_aug.html'");
  mm_menu_1011103605_0.addMenuItem("Mini<nobr>-</nobr>Lift","location='facelift-lifestyle.html'");
   mm_menu_1011103605_0.fontWeight="bold";
   mm_menu_1011103605_0.hideOnMouseOut=true;
   mm_menu_1011103605_0.bgColor='#BC7FFE';
   mm_menu_1011103605_0.menuBorder=1;
   mm_menu_1011103605_0.menuLiteBgColor='#BC7FFE';
   mm_menu_1011103605_0.menuBorderBgColor='#BC7FFE';
   
window.mm_menu_1011105742_0 = new Menu("root",165,18,"Arial, Helvetica, sans-serif",12,"#FFFFFF","#FFFFFF","#66758C","#8093B0","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1011105742_0.addMenuItem("Vioxx&nbsp;&&nbsp;Heart&nbsp;Attacks","location='heart_attack.html'");
  mm_menu_1011105742_0.addMenuItem("Vioxx&nbsp;&&nbsp;Strokes","location='strokes.html'");
   mm_menu_1011105742_0.fontWeight="bold";
   mm_menu_1011105742_0.hideOnMouseOut=true;
   mm_menu_1011105742_0.bgColor='#8093B0';
   mm_menu_1011105742_0.menuBorder=1;
   mm_menu_1011105742_0.menuLiteBgColor='#8093B0';
   mm_menu_1011105742_0.menuBorderBgColor='#8093B0';

    window.mm_menu_1011103615_0 = new Menu("root",163,18,"Arial, Helvetica, sans-serif",12,"#33076A","#621950","#F6E6FF","#F6E6FF","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1011103615_0.addMenuItem("Breast&nbsp;Augmentation","location='breast_aug.html'");
  mm_menu_1011103615_0.addMenuItem("Breast&nbsp;Lift","location='breast_lift.html'");
  mm_menu_1011103615_0.addMenuItem("Breast&nbsp;Reduction","location='breast_reduction.html'");
  mm_menu_1011103615_0.addMenuItem("Male&nbsp;Breast&nbsp;Reduction","location='male_breast.html'");
  mm_menu_1011103615_0.addMenuItem("Breast&nbsp;Reconstruction","location='breast_reconstruction.html'");
   mm_menu_1011103615_0.fontWeight="bold";
   mm_menu_1011103615_0.hideOnMouseOut=true;
   mm_menu_1011103615_0.bgColor='#BD80FF';
   mm_menu_1011103615_0.menuBorder=1;
   mm_menu_1011103615_0.menuLiteBgColor='#BD80FF';
   mm_menu_1011103615_0.menuBorderBgColor='#BD80FF';

    window.mm_menu_1011103616_0 = new Menu("root",233,18,"Arial, Helvetica, sans-serif",12,"#33076A","#621950","#F6E6FF","#F6E6FF","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1011103616_0.addMenuItem("Rhinoplasty&nbsp;Surgery","location='rhinoplasty.html'");
  mm_menu_1011103616_0.addMenuItem("Rhinoplasty&nbsp;Revision","location='rhinoplasty-revision.html'");
  mm_menu_1011103616_0.addMenuItem("Rhinoplasty&nbsp;FAQs","location='rhinoplasty_faq.html'");
  mm_menu_1011103616_0.addMenuItem("Hispanic&nbsp;Rhinoplasty&nbsp;Surgery","location='rhinoplasty_hispanic.html'");
  mm_menu_1011103616_0.addMenuItem("African&nbsp;American&nbsp;Rhinoplasty&nbsp;Surgery","location='rhinoplasty_african_american.html'");
  mm_menu_1011103616_0.addMenuItem("Nasal&nbsp;Airway&nbsp;Obstruction&nbsp;Surgery","location='nasal-airway-obstruction.html'");
  mm_menu_1011103616_0.addMenuItem("Deviated&nbsp;Septum&nbsp;and&nbsp;Rhinoplasty","location='deviated-septum.html'");
   mm_menu_1011103616_0.fontWeight="bold";
   mm_menu_1011103616_0.hideOnMouseOut=true;
   mm_menu_1011103616_0.bgColor='#BD80FF';
   mm_menu_1011103616_0.menuBorder=1;
   mm_menu_1011103616_0.menuLiteBgColor='#BD80FF';
   mm_menu_1011103616_0.menuBorderBgColor='#BD80FF';

    window.mm_menu_1011103617_0 = new Menu("root",233,18,"Arial, Helvetica, sans-serif",12,"#33076A","#621950","#F6E6FF","#F6E6FF","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1011103617_0.addMenuItem("CO2&nbsp;Laser","location='affirm-co2-laser.html'");
  mm_menu_1011103617_0.addMenuItem("Hair&nbsp;Removal","location='hair_removal.html'");
  mm_menu_1011103617_0.addMenuItem("Vein&nbsp;Treatment","location='vein_treatments.html'");
  mm_menu_1011103617_0.addMenuItem("Photofacial","location='photofacial.html'");
  mm_menu_1011103617_0.addMenuItem("Age&nbsp;Spots","location='age_spots.html'");
   mm_menu_1011103617_0.fontWeight="bold";
   mm_menu_1011103617_0.hideOnMouseOut=true;
   mm_menu_1011103617_0.bgColor='#BD80FF';
   mm_menu_1011103617_0.menuBorder=1;
   mm_menu_1011103617_0.menuLiteBgColor='#BD80FF';
   mm_menu_1011103617_0.menuBorderBgColor='#BD80FF';


mm_menu_1011103615_0.writeMenus();
} // mmLoadMenus()


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

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

function CheckRequiredFields() {

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



function CheckMainRequiredFields() {

		if (document.mainContact.name.value=='*Name') {
			alert('Your name is required to submit this form.');
			return false;
		}
		
		if (document.mainContact.email.value=='*Email') {
			alert('A valid email address is required to submit this form.');
			return false;
		}
		
		if (document.mainContact.phone.value=='*Phone Number') {
			alert('Your phone number is required to submit this form.');
			return false;
		}
		
		return true;
}




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;
}


function load() {
      if (GBrowserIsCompatible()) {
      function createMarker(point,html) {
        var marker = new GMarker(point);
        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(html);
        });
        return marker;
      }
      var map    = new GMap(document.getElementById("map"));
      var point  = new GPoint(-118.347959, 33.811205);
      
      var html   = '<br /><strong>Bray Plastic Surgery</strong><br />23560 Madison St., Ste. 102<br />Torrance, CA 90505';
      html += '<form action="http://maps.google.com/maps" method="get" target="_blank">';
      html += '<em>Directions to here from</em>: <br />';
      html += '<input type="text"   name="saddr" value="" size="25"><br />';
      html += '<input type="hidden" name="daddr" value="23560 Madison St, 90505" />';
      html += '<input type="hidden" name="hl" value="en">';
      html += '<input type="submit" value="Directions"/></form>'; 
      
      var marker = new createMarker(point, html);
      
      map.addControl(new GLargeMapControl());
      map.addControl(new GMapTypeControl());
      
      map.centerAndZoom(point, 4);    
      
      map.addOverlay(marker);
      
      marker.openInfoWindowHtml(html);
      
      }
    }