/*
 * Name:	Quick Jump
 * Author:	Matthew Lesko (mlesko@pavstudios.com)
 * Date:	April 2, 2003
 */
 
// Create an array to hold content select menu 
var aMenuContent = new Array (
  "Home:/index.html",
  "Patient's Home:/patients/patients.htm",
  "Physician's Home:/physicians/physicians.htm",
  "About Us:/about.htm"
);
		
// Function to build select box menu
function selectMenu(myMenuContent) {
  // Write the menu heading text & <p> tag
  document.write('<p class="MenuHeading">Quick Area Jump:<br>');
  // Write the select box opening html tag
  document.write('<select name="SelectMenu" class="SelectMenu" id="SelectMenu" onChange="jumpTo(document.JumpMenuForm.SelectMenu.options[document.JumpMenuForm.SelectMenu.options.selectedIndex].value)">');
  // Write the menu heading
  document.write('<option></option>');
  // loop through the list of name:values and load
  for (var i=0; i<myMenuContent.length; i++) {
    var selectElement = myMenuContent[i].split(":");
	var selectLable = selectElement[0];
	var selectURL = selectElement[1];
	// For each loop iteration write in the html option tag
	document.write('<option value="' +selectURL+ '">' +selectLable+ '</option>');
  }
  // Write the select box opening html tag
  document.write('</select>');
  // Write closing <p> tag
  document.write('</p>');
}

// Call menu building function
selectMenu(aMenuContent);