if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;

isMac = (navigator.appVersion.indexOf("Mac") != -1);
HM_PG_MenuWidth = 150;
HM_PG_FontFamily = "verdana, sans-serif";
if(isMac){HM_PG_FontSize = 9;}
     else{HM_PG_FontSize = 9 - 2;}
HM_PG_FontBold = 0;
HM_PG_FontItalic = 0;
HM_PG_FontColor = "#000000";
HM_PG_FontColorOver = "#000000";
HM_PG_BGColor = "#CCCCCC";
HM_PG_BGColorOver = "#ffffff";
HM_PG_ItemPadding = 3;

HM_PG_BorderWidth = 1;
HM_PG_BorderColor = "#000000";
HM_PG_BorderStyle = "solid";
HM_PG_SeparatorSize = 1;
HM_PG_SeparatorColor = "black";

HM_PG_ImageSrc = "";
HM_PG_ImageSrcLeft = "";
HM_PG_ImageSrcOver = "";
HM_PG_ImageSrcLeftOver = "";
HM_PG_ImageSize = 5;
HM_PG_ImageHorizSpace = 0;
HM_PG_ImageVertSpace = 2;

HM_PG_KeepHilite = 1;
HM_PG_ClickStart = 0;
HM_PG_ClickKill = false;
HM_PG_ChildOverlap = 20;
HM_PG_ChildOffset = 10;
HM_PG_ChildPerCentOver = null;
HM_PG_TopSecondsVisible = .5;
HM_PG_StatusDisplayBuild =0;
HM_PG_StatusDisplayLink = 0;
HM_PG_UponDisplay = null;
HM_PG_UponHide = null;
HM_PG_RightToLeft = 0;

HM_PG_CreateTopOnly = 1;
HM_PG_ShowLinkCursor = 1;
HM_PG_NSFontOver = true;

HM_PG_ScrollEnabled = true;
HM_PG_ScrollBarHeight = 14;
HM_PG_ScrollBarColor = "lightgrey";
HM_PG_ScrollImgSrcTop = "";
HM_PG_ScrollImgSrcBot = "";
HM_PG_ScrollImgWidth = 9;
HM_PG_ScrollImgHeight = 5;

HM_PG_ScrollBothBars = true;

HM_PG_HoverTimeTop  = 1000;
HM_PG_HoverTimeTree = 1000;

//HM_a_TreesToBuild = [2,3]

//=============================================================
/*
 * Original Script: HM_Loader.js
 * Original script copyright © 2003 Peter Belesis.
 * http://www.webreference.com/dhtml/
 * All rights reserved.
 * Used under license.
 * All modifications Copyright © 2005 by Advanced Solutions International, Inc.
 * Copyright (c) 2003 Peter Belesis. All Rights Reserved.
*/

HM_DOM = (document.getElementById) ? true : false;
HM_NS4 = (document.layers) ? true : false;
HM_IE = (document.all) ? true : false;
HM_IE4 = HM_IE && !HM_DOM;
HM_Mac = (navigator.appVersion.indexOf("Mac") != -1);
HM_IE4M = HM_IE4 && HM_Mac;
HM_Opera = (navigator.userAgent.indexOf("Opera")!=-1);
HM_Konqueror = (navigator.userAgent.indexOf("Konqueror")!=-1);

HM_IsMenu = !HM_Opera && !HM_IE4M && (HM_DOM || HM_NS4 || HM_IE4 || HM_Konqueror);

HM_BrowserString = HM_NS4 ? "NS4" : HM_DOM ? "DOM" : "IE4";

if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;

// the following function is included to illustrate the improved JS expression handling of
// the left_position and top_position parameters introduced in 4.0.9
// and modified in 4.1.3 to account for IE6 standards-compliance mode
// you may delete if you have no use for it

function HM_f_CenterMenu(topmenuid) {
  var MinimumPixelLeft = 0;
  var TheMenu = HM_DOM ? document.getElementById(topmenuid) : window[topmenuid];
  var TheMenuWidth = HM_DOM ? parseInt(TheMenu.style.width) : HM_IE4 ? TheMenu.style.pixelWidth : TheMenu.clip.width;
  var TheWindowWidth = HM_IE ? (HM_DOM ? HM_Canvas.clientWidth : document.body.clientWidth) : window.innerWidth;
  return Math.max(parseInt((TheWindowWidth-TheMenuWidth) / 2),MinimumPixelLeft);
}

if(HM_IsMenu) {
  HM_Array1 = [[,0,0,,,,,,,,,,,,,,,,],["CMDA Headquarters","http://www.cmda.org/AM/Template.cfm?Section=CMDA_Headquarters&Template=/CM/HTMLDisplay.cfm&ContentID=1652",1,0,0],["Missions & Beliefs","http://www.cmda.org/AM/Template.cfm?Section=Missions_and_Beliefs&Template=/CM/HTMLDisplay.cfm&ContentID=1633",1,0,0],["Employment","http://www.cmda.org/AM/Template.cfm?Section=Employment&Template=/CM/HTMLDisplay.cfm&ContentID=3603",1,0,0],["Leadership","http://www.cmda.org/AM/Template.cfm?Section=Leadership&Template=/CM/HTMLDisplay.cfm&ContentID=7528",1,0,0],["Doctor Search","http://www.cmda.org/AM/Template.cfm?Section=Doctor_Search&Template=/CM/HTMLDisplay.cfm&ContentID=5670",1,0,0],["Latest News Headlines","http://www.cmda.org/AM/Template.cfm?Section=Latest_News_Headlines&Template=/CM/HTMLDisplay.cfm&ContentID=7894",1,0,0]];
HM_Array2 = [[,0,0,,,,,,,,,,,,,,,,],["Master Calendar","http://www.cmda.org/AM/Template.cfm?Section=Master_Calendar&Template=/CM/HTMLDisplay.cfm&ContentID=7898",1,0,0],["View By Region","http://www.cmda.org/AM/Template.cfm?Section=View_By_Region&Template=/CM/HTMLDisplay.cfm&ContentID=8201",1,0,0],["Continuing Education","http://www.cmda.org/AM/Template.cfm?Section=Accredited_Continuing_Education&Template=/CM/HTMLDisplay.cfm&ContentID=5245",1,0,0]];
HM_Array3 = [[,0,0,,,,,,,,,,,,,,,,],["Beginning of Life","http://www.cmda.org/AM/Template.cfm?Section=Beginning_of_Life&Template=/CM/HTMLDisplay.cfm&ContentID=1860",1,0,0],["End of Life","http://www.cmda.org/AM/Template.cfm?Section=End_of_Life&Template=/CM/HTMLDisplay.cfm&ContentID=3700",1,0,0],["Healthcare","http://www.cmda.org/AM/Template.cfm?Section=Healthcare&Template=/CM/HTMLDisplay.cfm&ContentID=3701",1,0,0],["Other","http://www.cmda.org/AM/Template.cfm?Section=Other&Template=/CM/HTMLDisplay.cfm&ContentID=3702",1,0,0]];
HM_Array4 = [[,0,0,,,,,,,,,,,,,,,,],["Apply Now","http://www.cmda.org/AM/Template.cfm?Section=Statement_of_Faith&Template=/CM/HTMLDisplay.cfm&ContentID=5226",1,0,0],["Member Info/Support","http://www.cmda.org/AM/Template.cfm?Section=Member_Info_Support&Template=/CM/HTMLDisplay.cfm&ContentID=7520",1,0,0],["Member Communities","http://www.cmda.org/AM/Template.cfm?Section=Member_Communities&Template=/CM/HTMLDisplay.cfm&ContentID=6232",1,0,0],["Membership Initiative","http://www.cmda.org/AM/Template.cfm?Section=Membership_Initiative&Template=/CM/HTMLDisplay.cfm&ContentID=6447",1,0,0],["Prospective Members","http://www.cmda.org/AM/Template.cfm?Section=Join",1,0,0]];
HM_Array5 = [[,0,0,,,,,,,,,,,,,,,,],["Campus & Community","http://www.cmda.org/AM/Template.cfm?Section=Campus_and_Community&Template=/CM/HTMLDisplay.cfm&ContentID=8131",1,0,0],["Clinical Practice","http://www.cmda.org/AM/Template.cfm?Section=Clinical_Practice&Template=/CM/HTMLDisplay.cfm&ContentID=7820",1,0,0],["Leadership & Church","http://www.cmda.org/AM/Template.cfm?Section=Leadership_and_Church&Template=/CM/HTMLDisplay.cfm&ContentID=7248",1,0,0],["Marriage Enrichment","http://www.cmda.org/AM/Template.cfm?Section=Marriage_Enrichment&Template=/CM/HTMLDisplay.cfm&ContentID=2795",1,0,0],["Medical Malpractice","http://www.cmda.org/AM/Template.cfm?Section=Medical_Malpractice&Template=/CM/HTMLDisplay.cfm&ContentID=5535",1,0,0],["Prayer","http://www.cmda.org/AM/Template.cfm?Section=Prayer&Template=/CM/HTMLDisplay.cfm&ContentID=2784",1,0,0],["Side by Side Spouses","http://www.cmda.org/AM/Template.cfm?Section=Side_by_Side_Spouses&Template=/CM/HTMLDisplay.cfm&ContentID=8103",1,0,0],["Singles Ministry","http://www.cmda.org/AM/Template.cfm?Section=Singles_Ministry&Template=/CM/HTMLDisplay.cfm&ContentID=8143",1,0,0],["Specialty Sections","http://www.cmda.org/AM/Template.cfm?Section=Specialty_Sections&Template=/CM/HTMLDisplay.cfm&ContentID=8165",1,0,0],["Women in Medicine & Dentistry","http://www.cmda.org/AM/Template.cfm?Section=Women_in_Medicine_and_Dentistry&Template=/CM/HTMLDisplay.cfm&ContentID=6432",1,0,0]];
HM_Array6 = [[,0,0,,,,,,,,,,,,,,,,],["Center for Medical Missions","http://www.cmda.org/AM/Template.cfm?Section=Center_for_Medical_Missions&Template=/CM/HTMLDisplay.cfm&ContentID=7304",1,0,0],["Global Health Outreach","http://www.cmda.org/AM/Template.cfm?Section=Global_Health_Outreach&Template=/CM/HTMLDisplay.cfm&ContentID=8163",1,0,0],["Healthcare for the Poor","http://www.cmda.org/AM/Template.cfm?Section=Healthcare_for_the_Poor&Template=/CM/HTMLDisplay.cfm&ContentID=7780",1,0,0],["Medical Education International","http://www.cmda.org/AM/Template.cfm?Section=Medical_Education_International&Template=/CM/HTMLDisplay.cfm&ContentID=7635",1,0,0],["Pan-African Acad. of Surgeons","http://www.cmda.org/AM/Template.cfm?Section=PAACS&Template=/CM/HTMLDisplay.cfm&ContentID=5211",1,0,0],["Scholarships","http://www.cmda.org/AM/Template.cfm?Section=Scholarships&Template=/CM/HTMLDisplay.cfm&ContentID=7275",1,0,0]];
HM_Array7 = [[,0,0,,,,,,,,,,,,,,,,],["About Placement Services","http://www.cmda.org/AM/Template.cfm?Section=About_Placement_Services&Template=/CM/HTMLDisplay.cfm&ContentID=5490",1,0,0],["Candidate Registration & Info","http://www.cmda.org/AM/Template.cfm?Section=Candidate_Registration_and_Info&Template=/CM/HTMLDisplay.cfm&ContentID=6503",1,0,0],["Medical/Dental Opportunities","http://www.cmda.org/AM/Template.cfm?Section=Medical_Dental_Opportunities&Template=/CM/HTMLDisplay.cfm&ContentID=7540",1,0,0],["Registration for Practices","http://www.cmda.org/AM/Template.cfm?Section=Registration_for_Practices&Template=/CM/HTMLDisplay.cfm&ContentID=7153",1,0,0]];
HM_Array8 = [[,0,0,,,,,,,,,,,,,,,,],["Ethics & Position Statements","http://www.cmda.org/AM/Template.cfm?Section=Ethics_and_Position_Statements&Template=/CM/HTMLDisplay.cfm&ContentID=8154",1,0,0],["Press Room","http://www.cmda.org/AM/Template.cfm?Section=Press_Room&Template=/CM/HTMLDisplay.cfm&ContentID=7862",1,0,0],["PSAs","http://www.cmda.org/AM/Template.cfm?Section=PSAs&Template=/CM/HTMLDisplay.cfm&ContentID=7860",1,0,0],["Washington Office","http://www.cmda.org/AM/Template.cfm?Section=Washington_Office1&Template=/CM/HTMLDisplay.cfm&ContentID=7550",1,0,0]];
HM_Array9 = [[,0,0,,,,,,,,,,,,,,,,],["e-Newsletters","http://www.cmda.org/AM/Template.cfm?Section=e_Newsletters&Template=/CM/HTMLDisplay.cfm&ContentID=5666",1,0,0],["Professional Consultant Network","http://www.cmda.org/AM/Template.cfm?Section=Professional_Consultant_Network&Template=/CM/HTMLDisplay.cfm&ContentID=5645",1,0,0],["Publications","http://www.cmda.org/AM/Template.cfm?Section=Publications&Template=/CM/HTMLDisplay.cfm&ContentID=7512",1,0,0],["Recommended Speakers","http://www.cmda.org/AM/Template.cfm?Section=Recommended_Speakers&Template=/CM/HTMLDisplay.cfm&ContentID=3355",1,0,0],["Relevant Links","http://www.cmda.org/AM/Template.cfm?Section=Relevant_Links&Template=/CM/HTMLDisplay.cfm&ContentID=4998",1,0,0],["Classified Ads","http://www.cmda.org/AM/Template.cfm?Section=Classified_Ads&Template=/CM/HTMLDisplay.cfm&ContentID=7986",1,0,0]];

  document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='images/c_images/cmda/HM_Script"+ HM_BrowserString +".js' TYPE='text/javascript'><\/SCR" + "IPT>");
}

/* E. Rasul 04/19/2005:  this code here determines where the drop-down menu should appear underneath a roll-over image.
                         Deals with center-aligned menus */
function AdjustHierMenuArray ( nvn, hiermenuname, navigation_menu_orientation, menuleftoffset, menutopoffset) {
   var elm = document.getElementById(nvn);
   var rd = { x:0 ,y:0 };
   var pos_value = 0;

   if (navigation_menu_orientation == 'horizontal') {
     var height = elm.offsetHeight;
     do { rd.x += parseInt( elm.offsetLeft );
          rd.y += parseInt( elm.offsetTop );
          elm = elm.offsetParent;
     } while ( elm );
     rd.y = rd.y + height;
   }

   if (navigation_menu_orientation == 'vertical') {
     var width= elm.offsetWidth;
     do { rd.x += parseInt( elm.offsetLeft );
          rd.y += parseInt( elm.offsetTop );
          elm = elm.offsetParent;
     } while ( elm );
     rd.x = rd.x + width;
   }

  var TempMenu = document.getElementById(hiermenuname);
  if(!TempMenu)return;

  TempMenu.tree.MenuLeft = rd.x + menuleftoffset;
  TempMenu.tree.MenuTop = rd.y + menutopoffset;
  /*
  var elm = document.getElementById(nvn);
  TempMenu.tree.MenuLeft = elm.parentNode.offsetLeft;
  TempMenu.tree.MenuTop = elm.parentNode.offsetTop;
  */
  return;

}; //end getXYcoord ( string ) -> object{x,y}
/* E. Rasul 04/19/2005: END */

function HM_f_ToggleElementList(show,elList,toggleBy) {

   if(!(HM_DOM||HM_IE||HM_NS4)) return true;

   if(HM_NS4&&(toggleBy=="tag")) return true;

   for(var i=0; i<elList.length; i++) {
      var ElementsToToggle = [];
      switch(toggleBy) {
         case "tag":
            ElementsToToggle =
  (HM_DOM) ? document.getElementsByTagName(elList[i]) :
  document.all.tags(elList[i]);
            break;
         case "id":
            ElementsToToggle[0] =
  (HM_DOM) ? document.getElementById(elList[i]) :
  (HM_IE) ? document.all(elList[i]) :
  document.layers[elList[i]];
            break;
      }
      for(var j=0; j<ElementsToToggle.length; j++) {
         var theElement = ElementsToToggle[j];
         if(!theElement) continue;
         if(HM_DOM||HM_IE) {
            theElement.style.visibility =
               show ? "inherit" : "hidden";
         } else {
            theElement.visibility =
               show ? "inherit" : "hide";
         }
      }
   }
   return true;
}

/* E. Rasul 01/10/2005: added the showSelect JS function so that the SELECT boxes can be hidden on the home page when the DHTML menu is made  */
function showSelect(isOn,divName) {
   var theSelect = null;
   if(document.getElementById) {
      theSelect=document.getElementById(divName);
      if(theSelect) theSelect.style.visibility = isOn ? "visible" : "hidden";
   } else if (document.all) {
      theSelect=document.all(divName);
      if(theSelect) theSelect.style.visibility = isOn ? "visible" : "hidden";
   } else if (document.layers) {
      theSelect=document[divName];
      if(theSelect) theSelect.visibility = isOn ? "show" : "hide";
   }
}
