/* school menus - updated 3-21-07 by kevin */
/* Added funding opportunities to Research */


var education = 0;
var research = 0;
var patientcare = 0;
var community = 0;
function mmLoadMenus() {
  if (window.mm_menu_departments_0) return;
window.mm_menu_education = new Menu("root",175,22,"Arial, Helvetica, sans-serif",12,"#FFFFFF","#FFFFFF","#808150","#5F6123","left","middle",5,0,50,-5,7,true,false,true,3,false,true);
  mm_menu_education.addMenuItem("Education&nbsp;Home","window.open('http://med.stanford.edu/education/', '_top');");
  mm_menu_education.addMenuItem("Admissions","window.open('http://med.stanford.edu/admissions/', '_top');");
  mm_menu_education.addMenuItem("Degree&nbsp;Programs","window.open('http://med.stanford.edu/education/', '_top');");
  mm_menu_education.addMenuItem("&nbsp;&nbsp;MD&nbsp;Program","window.open('http://med.stanford.edu/md/', '_top');");
  mm_menu_education.addMenuItem("&nbsp;&nbsp;PhD&nbsp;Programs","window.open('http://med.stanford.edu/phd/', '_top');");
  mm_menu_education.addMenuItem("&nbsp;&nbsp;Masters&nbsp;Programs","window.open('http://med.stanford.edu/ms/', '_top');");
  mm_menu_education.addMenuItem("&nbsp;&nbsp;Undergraduate&nbsp;Education","window.open('http://med.stanford.edu/education/undergrad.html', '_top');");
  mm_menu_education.addMenuItem("Multiple-Degree&nbsp;Programs","window.open('http://med.stanford.edu/combined_degree/', '_top');");
  mm_menu_education.addMenuItem("&nbsp;&nbsp;MD/MPH","window.open('http://med.stanford.edu/md-mph/', '_top');");
  mm_menu_education.addMenuItem("&nbsp;&nbsp;MD/PhD&nbsp;&amp;&nbsp;MSTP","window.open('http://mstp.stanford.edu/', '_top');");
  mm_menu_education.addMenuItem("Non-Degree&nbsp;Programs","window.open('http://med.stanford.edu/education/', '_top');");
  mm_menu_education.addMenuItem("&nbsp;&nbsp;Postdoctoral&nbsp;Scholars","window.open('http://postdocs.stanford.edu/', '_top');");
  mm_menu_education.addMenuItem("&nbsp;&nbsp;Fellowships","window.open('http://med.stanford.edu/fellowships/', '_top');");
  mm_menu_education.addMenuItem("&nbsp;&nbsp;Clerkships","window.open('http://med.stanford.edu/md/clerkships/index.html', '_top');");
  mm_menu_education.addMenuItem("&nbsp;&nbsp;Resident&nbsp;Programs","window.open('http://med.stanford.edu/gme/', '_top');");
  mm_menu_education.addMenuItem("&nbsp;&nbsp;CME","window.open('http://cme.stanford.edu/', '_top');");
  mm_menu_education.addMenuItem("Career&nbsp;Center","window.open('http://med.stanford.edu/careercenter/', '_top');");
  mm_menu_education.addMenuItem("Office&nbsp;of&nbsp;Student&nbsp;Affairs","window.open('http://med.stanford.edu/osa/', '_top');");
  mm_menu_education.fontWeight="bold";
  mm_menu_education.hideOnMouseOut=true;
  mm_menu_education.bgColor='#555555';
  mm_menu_education.menuBorder=0;
  mm_menu_education.menuLiteBgColor='#ffffff';
  mm_menu_education.menuBorderBgColor='#555555';
window.mm_menu_research = new Menu("root",175,22,"Arial, Helvetica, sans-serif",12,"#FFFFFF","#FFFFFF","#808150","#5F6123","left","middle",5,0,50,-5,7,true,false,true,3,false,true);
  mm_menu_research.addMenuItem("Research&nbsp;Home","window.open('http://med.stanford.edu/research/', '_top');");
  mm_menu_research.addMenuItem("Research&nbsp;Mission&nbsp;Overview","window.open('http://med.stanford.edu/research/overview.html', '_top');");
  mm_menu_research.addMenuItem("Faculty/Research&nbsp;Profiles","window.open('http://med.stanford.edu/profiles/', '_top');");
  mm_menu_research.addMenuItem("Clinical&nbsp;Trials","window.open('http://clinicaltrials.stanford.edu/research/', '_top');");
  mm_menu_research.addMenuItem("Core&nbsp;Facilities","window.open('http://med.stanford.edu/research/core_facilities/', '_top');");
  mm_menu_research.addMenuItem("Faculty&nbsp;Laboratories","window.open('http://med.stanford.edu/labs/', '_top');");
  mm_menu_research.addMenuItem("Seminar&nbsp;Calendar","window.open('http://med.stanford.edu/seminars/', '_top');");
  mm_menu_research.addMenuItem("News","window.open('http://mednews.stanford.edu/', '_top');");
  mm_menu_research.addMenuItem("Funding&nbsp;Opportunities","window.open('http://med.stanford.edu/rmg/funding/', '_top');");
  mm_menu_research.addMenuItem("Institutes&nbsp;&amp;&nbsp;Departments","window.open('http://med.stanford.edu/departments/', '_top');");
  mm_menu_research.fontWeight="bold";
  mm_menu_research.hideOnMouseOut=true;
  mm_menu_research.bgColor='#555555';
  mm_menu_research.menuBorder=0;
  mm_menu_research.menuLiteBgColor='#ffffff';
  mm_menu_research.menuBorderBgColor='#555555';
window.mm_menu_patientcare = new Menu("root",175,22,"Arial, Helvetica, sans-serif",12,"#FFFFFF","#FFFFFF","#808150","#5F6123","left","middle",5,0,50,-5,7,true,false,true,3,false,true);
  mm_menu_patientcare.addMenuItem("Patient&nbsp;Care&nbsp;Home","window.open('http://med.stanford.edu/patient_care/', '_top');");
  mm_menu_patientcare.addMenuItem("Mission Overview","window.open('http://med.stanford.edu/patient_care/overview.html', '_top');");
  mm_menu_patientcare.addMenuItem("Clinical&nbsp;Research&nbsp;Centers","window.open('http://med.stanford.edu/research/researchcenters.html', '_top');");
  mm_menu_patientcare.addMenuItem("Find&nbsp;a&nbsp;Physician&nbsp;&#40;Adult&#41;","window.open('http://www.stanfordhospital.com/FindAPhysician/Search/searchDoc.aspx', '_top');");
  mm_menu_patientcare.addMenuItem("Find&nbsp;a&nbsp;Physician&nbsp;&#40;Pediatric&#41;","window.open('http://www.lpch.org/findADoctor/search/searchDoc.pl', '_top');");
  mm_menu_patientcare.addMenuItem("Clinical&nbsp;Trials","window.open('http://clinicaltrials.stanford.edu/research/', '_top');");
  mm_menu_patientcare.addMenuItem("Health&nbsp;Library","window.open('http://healthlibrary.stanford.edu/', '_top');");
  mm_menu_patientcare.addMenuItem("Stanford&nbsp;Hospital","window.open('http://www.stanfordhospital.com/', '_top');");
  mm_menu_patientcare.addMenuItem("Packard&nbsp;Childrens&nbsp;Hospital","window.open('http://www.lpch.org/', '_top');");
  mm_menu_patientcare.addMenuItem("Institutes&nbsp;&amp;&nbsp;Departments","window.open('http://med.stanford.edu/departments/', '_top');");
  mm_menu_patientcare.fontWeight="bold";
  mm_menu_patientcare.hideOnMouseOut=true;
  mm_menu_patientcare.bgColor='#555555';
  mm_menu_patientcare.menuBorder=0;
  mm_menu_patientcare.menuLiteBgColor='#ffffff';
  mm_menu_patientcare.menuBorderBgColor='#555555';
window.mm_menu_community = new Menu("root",185,24,"Arial, Helvetica, sans-serif",12,"#FFFFFF","#FFFFFF","#808150","#5F6123","left","middle",5,0,50,-5,7,true,false,true,3,false,true);
  mm_menu_community.addMenuItem("Community&nbsp;Home","window.open('http://med.stanford.edu/community/', '_top');");
  mm_menu_community.addMenuItem("Courses&nbsp;and&nbsp;Education","window.open('http://med.stanford.edu/community/courses/', '_top');");
  mm_menu_community.addMenuItem("Diversity&nbsp;Programs","window.open('http://med.stanford.edu/community/diversity/', '_top');");
  mm_menu_community.addMenuItem("International&nbsp;Health","window.open('http://med.stanford.edu/community/global/', '_top');");
  mm_menu_community.addMenuItem("Community&nbsp;Based&nbsp;Research","window.open('http://med.stanford.edu/community/research/index.html', '_top');");
  mm_menu_community.addMenuItem("Service&nbsp;To&nbsp;The&nbsp;Community","window.open('http://med.stanford.edu/community/service/', '_top');");
  mm_menu_community.addMenuItem("Make&nbsp;a&nbsp;Gift","window.open('http://med.stanford.edu/giving/', '_top');");
  mm_menu_community.fontWeight="bold";
  mm_menu_community.hideOnMouseOut=true;
  mm_menu_community.bgColor='#555555';
  mm_menu_community.menuBorder=0;
  mm_menu_community.menuLiteBgColor='#ffffff';
  mm_menu_community.menuBorderBgColor='#555555';
  mm_menu_community.writeMenus();

} // mmLoadMenus()

<!--

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_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_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];}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}



function startState(str) {
	var id, img;
	if (str == "Home") { 
		return;
	}
	else {
		if (str == "Education") { education = 1; id="tabedu"; img="http://med.stanford.edu/Templates/school/tab-edu-trans.gif"; }
		if (str == "Research") { research = 1; id="tabres"; img="http://med.stanford.edu/Templates/school/tab-res-trans.gif"; }
		if (str == "Patient Care") { patientcare = 1; id="tabpc"; img="http://med.stanford.edu/Templates/school/tab-pc-trans.gif"; }
		if (str == "Community") { community = 1; id="tabcom"; img="http://med.stanford.edu/Templates/school/tab-com-trans.gif"; }
		MM_swapImage(id,'',img,1);
	}
	
}

//-->

