<!--
// Array Function

function makeArray() {
var args = makeArray.arguments;
    for (var i = 0; i < args.length; i++) {
    this[i] = args[i];
    }
this.length = args.length;
}

// This array holds the descriptions and names of the pages.

var pages = new makeArray("Department Listings",
"Aboriginal Health",
"Aurora Centre",
"Breast Health",
"Business Development",
"CARE Program",
"Centre of Excellence for Women's Health",
"Centre for International Child Health",
"Child Development",
"Children's Foundation",
"Community Dental Partners",
"Diagnostic &amp; Ambulatory Program",
"EEG (Diagnostic Neurophysiology)",
"Endocrinology &amp; Diabetes",
"Family Health Program",
"Family Practice Maternity Service",
"Family Resource Library",
"High Risk Antepartum",
"Infection Control",
"Logistics",
"Maternal Serum Screening",
"Medical Genetics (UBC)",
"Medical Microbiology/Virology",
"Midwifery",
"Newborn Care Program",
"Newborn Care (Physician)",
"Newborn Screening Program",
"Oak Tree Clinic",
"Obstetrics & Gynaecology",
"Online Programs",
"Orthopaedics",
"Osteoperosis",
"Palliative Care", 
"Pediatric Hematology Oncology",
"Pediatric Neuroscience Nurses",
"Pediatric Residents",
"Pharmaceutical Outcomes Program (UBC)",
"PMS",
"Prenatal Health",
"Psychology",
"Reproductive Medicine Program",
"Reproductive Psychiatry",
"Safe Start",
"Safety Station",
"Seating &amp; Mobility",
"Sexual Assault Service",
"Sexual Health Resource Centre",
"Shriner's Gait Lab",
"Special Care Maternity Program",
"Spiritual Care",
"Sunny Hill Health Centre",
"Surgical Program",
"Telehealth",
"Tube Feeding",
"Urology",
"Volunteer Resources",
"Women's Foundation",
"Women's Health Research Initiative",
"Youth Health");

// This array hold the URLs of the pages.

var urls = new makeArray("",
"http://www.cw.bc.ca/bcw/aboriginal_health.asp",
"http://www.cw.bc.ca/bcw/aurora_centre.asp",
"http://www.cw.bc.ca/bcw/breast_health.asp",
"http://www.cw.bc.ca/busdev/default.asp",
"http://www.cw.bc.ca/bcw/CARE.asp",
"http://www.bccewh.bc.ca/",
"http://www.bcchcich.ca/",
"http://www.cw.bc.ca/sunnyhill/CDR/index.htm",
"http://www.bcchf.ca",
"https://www.cw.bc.ca/dentistrysql/formlogin.asp",
"http://www.cw.bc.ca/bcw/diagnostic_ambulatory.asp",
"http://www.cw.bc.ca/eeg/default.asp",
"http://www.cw.bc.ca/endodiab/index.asp",
"http://www.cw.bc.ca/bcw/family_health.asp",
"http://www.cw.bc.ca/fpms/default.asp",
"http://www.cw.bc.ca/library/default.htm",
"http://www.cw.bc.ca/bcw/high_risk_antepartum.asp",
"http://www.cw.bc.ca/labserv/default.asp",
"http://www.cw.bc.ca/logistics/default.asp",
"http://www.cw.bc.ca/MatSerumScreen/default.asp",
"http://www.medgen.ubc.ca/",
"http://www.cw.bc.ca/labserv/default.asp",
"http://www.cw.bc.ca/bcw/midwifery.asp",
"http://www.cw.bc.ca/humanresources/dept_newborncare.asp",
"http://www.cw.bc.ca/newborncare/default.asp",
"http://www.cw.bc.ca/NewbornScreening/default.asp",
"http://www.cw.bc.ca/oaktree/home.asp",
"http://www.obstgyn.ca/",
"http://www.cw.bc.ca/onlinecourses/market/default.asp",
"http://www.cw.bc.ca/orthopaedics/index.asp",
"http://www.cw.bc.ca/bcw/osteoporosis.asp",
"http://www.cw.bc.ca/palliativecare/default.asp",
"http://www.cw.bc.ca/ch_oncology/index.asp",
"http://www.cw.bc.ca/neurosciences/default.asp",
"http://www.cw.bc.ca/pediatricresidents/index.asp",
"http://www.cw.bc.ca/ubc_pharmoutcomes/Pages/main.html",
"http://www.cw.bc.ca/bcw/PMS.asp",
"http://www.cw.bc.ca/prenatalhealth/default.asp",
"http://www.cw.bc.ca/psychology/default.asp",
"http://www.cw.bc.ca/bcw/reproductive_medicine.asp",
"http://www.cw.bc.ca/bcw/reproductive_psychiatry.asp",
"http://www.cw.bc.ca/safestart/index.asp",
"http://www.cw.bc.ca/SafetyStation/index.html",
"http://www.cw.bc.ca/sunnyhill/SeatMob/index.htm",
"http://www.cw.bc.ca/bcw/sexual_assault_service.asp",
"http://www.cw.bc.ca/sunnyhill/shrl/",
"http://www.cw.bc.ca/sunnyhill/gaitlab/index.html",
"http://www.cw.bc.ca/bcw/special_care_maternity.asp",
"http://www.cw.bc.ca/spiritualcare/default.asp",
"http://www.sunny-hill.bc.ca",
"http://www.cw.bc.ca/bcw/surgical_program.asp",
"https://www.cw.bc.ca/telehealth/default.asp",
"http://www.cw.bc.ca/tubefeeding/default.asp",
"http://www.cw.bc.ca/urology/default.asp",
"http://www.cw.bc.ca/volunteer/home.asp",
"http://www.bcwomensfoundation.org/",
"http://www.cw.bc.ca/whri/default.asp",
"http://www.cw.bc.ca/youthhealth/default.asp");

// This function determines which page is selected and goes to it.

function goPage(form) {
i = form.menu.selectedIndex;            
    if (i != 0) {
    window.location.href = urls[i];  
    }
}

function MM_goToURL() { //v2.0
  for (var i=0; i< (MM_goToURL.arguments.length - 1); i+=2) //with arg pairs
    eval(MM_goToURL.arguments[i]+".location='"+MM_goToURL.arguments[i+1]+"'");
  document.MM_returnValue = false;
}

// The select menu will be displayed wherever you place this code. 
document.write('<FORM><SELECT class="input" NAME = "menu" onChange = "goPage(this.form)">');
    for (var i = 0; i < pages.length; i++) {
    document.write('<OPTION>' + pages[i]);
    }
document.write('</SELECT></FORM>');

//-->