function mmLoadMenus() {
  if (window.mm_learn) return;
  window.mm_learn = new Menu("root",280,23,"Verdana, Geneva, Arial, Helvetica, sans-serif",11,"#0162C5","#CC0000","#FFFFFF","#f5f5f5","left","middle",25,-1,1000,0,1,true,true,true,0,true,true);
  mm_learn.addMenuItem("Where does the Money Go?","location='http://www.healthyyears.org/where_the_money_goes.php'");
  mm_learn.addMenuItem("Who are the Board Members?","location='http://www.healthyyears.org/board.php'");  
  mm_learn.addMenuItem("What are the Facts on Aging Diseases?","location='http://www.healthyyears.org/know_facts.php'");  
  mm_learn.addMenuItem("What are the Causes of Aging?","location='http://www.healthyyears.org/causes.php'");

  
   mm_learn.fontWeight="normal";
   mm_learn.hideOnMouseOut=true;
   mm_learn.bgColor='#fff';
   mm_learn.menuBorder=1;
   mm_learn.menuLiteBgColor='#fff';
   mm_learn.menuBorderBgColor='#fff';


  if (window.mm_programs) return;
  window.mm_programs = new Menu("root",200,23,"Verdana, Geneva, Arial, Helvetica, sans-serif",11,"#0162C5","#CC0000","#FFFFFF","#f5f5f5","left","middle",25,-1,1000,0,1,true,true,true,0,true,true);
  mm_programs.addMenuItem("Information Management","location='http://www.healthyyears.org/program1.php'");
  mm_programs.addMenuItem("Raising Awareness","location='http://www.healthyyears.org/program2.php'"); 
  mm_programs.addMenuItem("Publications & Studies","location='http://www.healthyyears.org/program3.php'"); 
  mm_programs.addMenuItem("Special Interest Research","location='http://www.healthyyears.org/program4.php'"); 
  mm_programs.addMenuItem("Elder Helpers","location='http://www.healthyyears.org/program5.php'"); 
  mm_programs.addMenuItem("LifeStyle Guide","location='http://www.healthyyears.org/program6.php'"); 

     mm_programs.fontWeight="normal";
   mm_programs.hideOnMouseOut=true;
   mm_programs.bgColor='#fff';
   mm_programs.menuBorder=0;
   mm_programs.menuLiteBgColor='#CCCCCC';
   mm_programs.menuBorderBgColor='#CCCCCC';
   

////////// CK ///////////////////   

  if (window.mm_media) return;

  window.mm_media = new Menu("root",200,23,"Verdana, Geneva, Arial, Helvetica, sans-serif",11,"#0162C5","#CC0000","#FFFFFF","#f5f5f5","left","middle",25,-1,1000,0,1,true,true,true,0,true,true);





     mm_media.fontWeight="normal";

   mm_media.hideOnMouseOut=true;

   mm_media.bgColor='#fff';

   mm_media.menuBorder=0;

   mm_media.menuLiteBgColor='#CCCCCC';

   mm_media.menuBorderBgColor='#CCCCCC';

////////// CK ///////////////////   



  if (window.mm_action) return;
  window.mm_action = new Menu("root",165,23,"Verdana, Geneva, Arial, Helvetica, sans-serif",11,"#0162C5","#CC0000","#FFFFFF","#f5f5f5","left","middle",25,-1,1000,0,1,true,true,true,0,true,true);
  mm_action.addMenuItem("Become a Member","location='https://npo.networkforgood.org/Donate/Donate.aspx?npoSubscriptionId=1002657'");
  mm_action.addMenuItem("Become a Fundraiser","location='http://www.healthyyears.org/fundraiser.php'");
  mm_action.addMenuItem("Spread the Word","location='http://www.healthyyears.org/spreadtheword.php'");
  mm_action.addMenuItem("Sign up for Email","location='http://www.healthyyears.org/register.php'");
mm_action.addMenuItem("Join us on Facebook","location='http://www.healthyyears.org/causes_application.php'");
 
 
  
   mm_action.fontWeight="normal";
   mm_action.hideOnMouseOut=true;
   mm_action.bgColor='#fff';
   mm_action.menuBorder=0;
   mm_action.menuLiteBgColor='#CCCCCC';
   mm_action.menuBorderBgColor='#CCCCCC';
   

  if (window.mm_people) return;
  window.mm_people = new Menu("root",220,23,"Verdana, Geneva, Arial, Helvetica, sans-serif",11,"#0162C5","#CC0000","#FFFFFF","#f5f5f5","left","middle",25,-1,1000,0,1,true,true,true,0,true,true);
  mm_people.addMenuItem("with Arthritis","location='http://www.healthyyears.org/people_with_arthritis.php'");
  mm_people.addMenuItem("with Alzheimer's","location='http://www.healthyyears.org/people_with_alzheimers.php'"); 
  mm_people.addMenuItem("with Cancer","location='http://www.healthyyears.org/people_with_cancer.php'"); 
  mm_people.addMenuItem("with Cardiovascular diseases","location='http://www.healthyyears.org/people_with_cd.php'"); 
  mm_people.addMenuItem("with Diabetes","location='http://www.healthyyears.org/people_with_diabetes.php'");  
  
   mm_people.fontWeight="normal";
   mm_people.hideOnMouseOut=true;
   mm_people.bgColor='#fff';
   mm_people.menuBorder=0;
   mm_people.menuLiteBgColor='#CCCCCC';
   mm_people.menuBorderBgColor='#CCCCCC';


////////// CK ///////////////////   

  if (window.mm_help) return;

  window.mm_help = new Menu("root",200,23,"Verdana, Geneva, Arial, Helvetica, sans-serif",11,"#0162C5","#CC0000","#FFFFFF","#f5f5f5","left","middle",25,-1,1000,0,1,true,true,true,0,true,true);

  mm_help.addMenuItem("Find Elder Helpers","location='http://www.healthyyears.org/program5.php'");

  mm_help.addMenuItem("Improve your Lifestyle","location='http://www.healthyyears.org/lifestyle.php'");

  mm_help.addMenuItem("Get the Insight","location='http://healthyyears.org/blog'");
  
  mm_help.addMenuItem("Get Support","location='http://www.healthyyears.org/contactus.php'");




     mm_help.fontWeight="normal";

   mm_help.hideOnMouseOut=true;

   mm_help.bgColor='#fff';

   mm_help.menuBorder=0;

   mm_help.menuLiteBgColor='#CCCCCC';

   mm_help.menuBorderBgColor='#CCCCCC';

////////// CK ///////////////////   







mm_learn.writeMenus();


mm_media.writeMenus();

mm_action.writeMenus();
mm_people.writeMenus();

mm_help.writeMenus();

} // mmLoadMenus()


function simpleSignup()
{
  // AJAX object
  var xmlhttp = false;
  if (window.ActiveXObject)
  {
    // Microsoft IE
    xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  }
  else if (window.XMLHttpRequest)
  {
    // Opera, Firefox, Safari
    xmlhttp = new XMLHttpRequest();
    xmlhttp.overrideMimeType('text/xml');
  }
  
  function processResponse()
  {
    if(xmlhttp.readyState == 4)
    {
      var response = xmlhttp.responseText;
      showSimpleSignup(response);
	  window.location = "sign-up-complete.php";
    }
  }

  var requestURL = "do_add_subscriber.php";

  var email = document.getElementById('from_email4').value;
  if ((email == "") || (email == "Email Address")) {
    alert("Please fill in your email address!");
    return;
  }
  var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
  if (!filter.test(email)) {
    alert("Entered email address is invalid - please double check!");
    return;
  }

  var zip = document.getElementById('from_email42').value;
  if ((zip == "") || (zip == "Zip Code")) {
    alert("Please fill in your zip code!");
    return;
  }
  /*if ((!(/^\d\d\d\d\d$/.test(zip))) &&
      (!(/^\d\d\d\d\d-\d\d\d\d$/.test(zip)))) {
    alert("Entered zip code is invalid - please double check!");
    return;
  }*/
  var parameters = 
  "email=" + encodeURI(email) +
    "&zip=" + encodeURI(zip);

  xmlhttp.open('POST', requestURL, true);
  xmlhttp.onreadystatechange = processResponse;
  xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  xmlhttp.setRequestHeader("Content-length", parameters.length);
  xmlhttp.setRequestHeader("Connection", "close");
  xmlhttp.send(parameters);
}

function showSimpleSignup (response)
{
  var signupArea = document.getElementById('signupArea');
  //signupArea.innerHTML = "<p><center><font size=+1 color=red><b>Thank you very much! <br>Your info has been submitted.</b></font></center>";
  signupArea.innerHTML = "";
}

function emptyFromEmail4 ()
{
  var email = document.getElementById('from_email4').value;
  if (email == "Email Address") {
    document.getElementById('from_email4').value = "";
  }
}

function emptyFromEmail42 ()
{
  var zip = document.getElementById('from_email42').value;
  if (zip == "Zip Code") {
    document.getElementById('from_email42').value = "";
  }
}


