/////////////////////////////////////////
// JavaScript functions for MWP web site
/////////////////////////////////////////

function mmLoadMenus() {
  if (window.mm_menu_0527112140_0) return;

  // This function provides pop-up menus.  Each menu is attached to a specific image.
  // Each menu is numbered (0, 1, 2), thus "mm_menu_0527112140_0" is menu zero.
  // Each menu contains a set of menu items.  
  // You can edit the existing items, delete items, and add items by editing this file.
  // The "addMenuItem()" function adds an item to a specified menu.
  // addMenuItem takes two arguments: addMenuItem (Label, LinkPath).
	  // Label is displayed to user.  You must substitute &nbsp (non-breaking space) for actual spaces.
	  // LinkPath specifies the path to the link, this gets appended to based URL.
  // Example:
	  // addMenuItem("Annual&nbsp;Meeting","location='/events/annual-meeting'")
  // Be careful editing this file.  Mistakes can cause all javascript (popup menu, rollovers) to fail.
  // Before editing a critical file, it's a good idea to make a backup copy of the original, in case things go wrong.
  // If you edit this file and upload your changes, it's a good idea to notify anyone else who might edit the file.
  // Edit only the lines containing "addMenuItem" functions.
  // When adding a menu item, use the same format as existing items.
  // When deleting a menu item, either delete the entire line, or prefix the line with // to make it a comment.
  
  // NETWORKING, SOCIAL, and EDUCATIONAL EVENTS
  window.mm_menu_0527112140_0 = new Menu("root",225,20,"Verdana, Arial, Helvetica, sans-serif",14,"#FFFFFF","#FFFFFF","#AF78B6","#824989","left","middle",3,0,350,-5,7,true,false,true,3,false,true);
	// begin menu items
  mm_menu_0527112140_0.addMenuItem("Annual&nbsp;Meeting","location='/events/annual-meeting'");
  mm_menu_0527112140_0.addMenuItem("Book&nbsp;Club","location='/events/book-club'");
  mm_menu_0527112140_0.addMenuItem("Mentorship&nbsp;Program","location='/events/mentorship-program'");
  mm_menu_0527112140_0.addMenuItem("Private&nbsp;Practice&nbsp;Group","location='/events/private-practice-group'");
  mm_menu_0527112140_0.addMenuItem("Professional&nbsp;Development","location='/events/professional-development'");
  mm_menu_0527112140_0.addMenuItem("Self&nbsp;Care&nbsp;(Fireside&nbsp;Chat)","location='/events/self-care'");
  mm_menu_0527112140_0.addMenuItem("Wine&nbsp;and&nbsp;Chocolate&nbsp;Event","location='/events/wine-chocolate-event'");
	// end menu items
  mm_menu_0527112140_0.hideOnMouseOut=true;
  mm_menu_0527112140_0.bgColor='#555555';
  mm_menu_0527112140_0.menuBorder=1;
  mm_menu_0527112140_0.menuLiteBgColor='#FFFFFF';
  mm_menu_0527112140_0.menuBorderBgColor='#777777';

  // MEMBER TO MEMBER
  window.mm_menu_0527112140_1 = new Menu("root",225,20,"Verdana, Arial, Helvetica, sans-serif",14,"#FFFFFF","#FFFFFF","#AF78B6","#824989","left","middle",3,0,350,-5,7,true,false,true,3,false,true);
	// begin menu items
  mm_menu_0527112140_1.addMenuItem("Ads","location='/member-to-member/ads/'");
  mm_menu_0527112140_1.addMenuItem("Email & Web Resources","location='/member-to-member/email-and-web/'");
  mm_menu_0527112140_1.addMenuItem("Member Directory","location='/member-to-member/directory/'");
  mm_menu_0527112140_1.addMenuItem("Newsletter","location='/member-to-member/newsletter/'");
  mm_menu_0527112140_1.addMenuItem("Outpatient Groups","location='/member-to-member/outpatient-groups/'");
  mm_menu_0527112140_1.addMenuItem("Workshops","location='/member-to-member/workshops/'");
	// end menu items
  mm_menu_0527112140_1.hideOnMouseOut=true;
  mm_menu_0527112140_1.bgColor='#555555';
  mm_menu_0527112140_1.menuBorder=1;
  mm_menu_0527112140_1.menuLiteBgColor='#FFFFFF';
  mm_menu_0527112140_1.menuBorderBgColor='#777777';

  // MEMBER RESOURCES
  window.mm_menu_0527112140_2 = new Menu("root",225,20,"Verdana, Arial, Helvetica, sans-serif",14,"#FFFFFF","#FFFFFF","#AF78B6","#824989","left","middle",3,0,350,-5,7,true,false,true,3,false,true);
	// begin menu items
  mm_menu_0527112140_2.addMenuItem("Bylaws","location='/member-to-member/bylaws/'");
  mm_menu_0527112140_2.addMenuItem("Ethical Resources","location='/member-resources/ethical-resources/'");
  mm_menu_0527112140_2.addMenuItem("Legal Resources","location='/member-resources/legal-resources/'");
  mm_menu_0527112140_2.addMenuItem("Other Resources","location='/member-resources/other-resources/'");
  mm_menu_0527112140_2.addMenuItem("Self-Care Information","location='/member-resources/self-care-information/'");
  mm_menu_0527112140_2.addMenuItem("MWP Website Icon","location='/member-resources/mwp-website-icon/'");
//  mm_menu_0527112140_2.addMenuItem("Test","location='http://wikipedia.org'");
	// end menu items
  mm_menu_0527112140_2.hideOnMouseOut=true;
  mm_menu_0527112140_2.bgColor='#555555';
  mm_menu_0527112140_2.menuBorder=1;
  mm_menu_0527112140_2.menuLiteBgColor='#FFFFFF';
  mm_menu_0527112140_2.menuBorderBgColor='#777777';

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


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
