﻿function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

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_checkPlugin(plgIn, theURL, altURL, autoGo) { //v4.0
  var ok=false; document.MM_returnValue = false;
  with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)) {
    ok=(plugins && plugins[plgIn]);
  } else if (appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1
    if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null) ok=window.MM_flash;
    else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null) ok=window.MM_dir;
    else ok=autoGo; }
  if (!ok) theURL=altURL; if (theURL) window.location=theURL;
}

function mmLoadMenus() {
  if (window.mm_menu_0302121930_0) return;
  window.mm_menu_0302121930_0 = new Menu("root",181,18,"Arial, Verdana, Helvetica, sans-serif",12,"#666666","#ffffff","#ffffff","#20396c","left","middle",3,0,1000,-5,7,true,true,true,3,true,true);
  mm_menu_0302121930_0.addMenuItem("A&nbsp;to&nbsp;Z&nbsp;Health&nbsp;Topics","location='http://health.nih.gov'");
	mm_menu_0302121930_0.addMenuItem("Clinical&nbsp;Trials","location='http://www.clinicaltrials.gov'");
  mm_menu_0302121930_0.addMenuItem("MedlinePlus","location='http://www.nlm.nih.gov/medlineplus/'");
  mm_menu_0302121930_0.addMenuItem("Health&nbsp;Hotlines","location='http://www.nih.gov/health/infoline.htm'");
   mm_menu_0302121930_0.fontWeight="bold";
   mm_menu_0302121930_0.hideonmouseout=true;
   mm_menu_0302121930_0.menuBorder=1;
   mm_menu_0302121930_0.menuLiteBgColor='#e0e0e0';
   mm_menu_0302121930_0.menuBorderBgColor='#3d5e9b';
   mm_menu_0302121930_0.bgColor='#e0e0e0';
  window.mm_menu_0302124638_1 = new Menu("root",209,18,"Arial, Verdana, Helvetica, sans-serif",12,"#666666","#ffffff","#ffffff","#20396c","left","middle",3,0,1000,-5,7,true,true,true,3,true,true);
  mm_menu_0302124638_1.addMenuItem("Grants&nbsp;&amp;&nbsp;Funding","location='http://grants.nih.gov/grants/oer.htm'");
  mm_menu_0302124638_1.addMenuItem("Funding&nbsp;Opportunities&nbsp;(NIH&nbsp;Guide)","location='http://grants.nih.gov/grants/guide/index.html'");
  mm_menu_0302124638_1.addMenuItem("Forms&nbsp;and&nbsp;Deadlines","location='http://grants.nih.gov/grants/forms.htm'");
  mm_menu_0302124638_1.addMenuItem("Electronic&nbsp;Research&nbsp;Admin&nbsp;(eRA)","location='http://era.nih.gov'");
  mm_menu_0302124638_1.addMenuItem("Grants&nbsp;Policy","location='http://grants.nih.gov/grants/policy/policy.htm'");
  mm_menu_0302124638_1.addMenuItem("OER&nbsp;News","location='http://grants.nih.gov/grants/news.htm'");
  mm_menu_0302124638_1.addMenuItem("About&nbsp;OER","location='http://grants.nih.gov/grants/intro2oer.htm'");
  mm_menu_0302124638_1.addMenuItem("Research&nbsp;Contracts","location='http://oamp.od.nih.gov'");
  mm_menu_0302124638_1.addMenuItem("Loan&nbsp;Repayment","location='http://www.lrp.nih.gov'");
	 mm_menu_0302124638_1.fontWeight="bold";
   mm_menu_0302124638_1.hideonmouseout=true;
   mm_menu_0302124638_1.menuBorder=1;
   mm_menu_0302124638_1.menuLiteBgColor='#e0e0e0';
   mm_menu_0302124638_1.menuBorderBgColor='#3d5e9b';
   mm_menu_0302124638_1.bgColor='#e0e0e0';
   
   
 window.mm_menu_0302131643_2 = new Menu("root",167,18,"Arial, Verdana, Helvetica, sans-serif",12,"#666666","#ffffff","#ffffff","#20396c","left","middle",3,0,1000,-5,7,true,true,true,3,true,true);
	mm_menu_0302131643_2.addMenuItem("News&nbsp;Releases","location='http://www.nih.gov/news/index.html'");
	mm_menu_0302131643_2.addMenuItem("News&nbsp;Feed&nbsp;RSS","location='http://www.nih.gov/news/feed.xml'");
	mm_menu_0302131643_2.addMenuItem("NIH&nbsp;Events&nbsp;Calendar","location='http://calendar.nih.gov/app/MCalWelcome.aspx'");
	mm_menu_0302131643_2.addMenuItem("NIH&nbsp;Record","location='http://nihrecord.od.nih.gov/'");
	mm_menu_0302131643_2.addMenuItem("For&nbsp;the&nbsp;Press","location='http://www.nih.gov/news/forthepress.htm'");
	mm_menu_0302131643_2.addMenuItem("Multimedia","location='http://www.nih.gov/news/multimediagallery.htm'");
	mm_menu_0302131643_2.addMenuItem("Radio","location='http://www.nih.gov/news/radio/index.htm'");
	mm_menu_0302131643_2.addMenuItem("Podcast","location='http://www.nih.gov/news/radio/nihpodcast.htm'");
	mm_menu_0302131643_2.addMenuItem("News&nbsp;in&nbsp;Health&nbsp;Newsletter","location='http://newsinhealth.nih.gov/'");
	mm_menu_0302131643_2.addMenuItem("Research&nbsp;Matters&nbsp;eColumn","location='http://www.nih.gov/news/research_matters/index.htm'");
  
	mm_menu_0302131643_2.fontWeight="bold";
	mm_menu_0302131643_2.hideonmouseout=true;
	mm_menu_0302131643_2.menuBorder=1;
	mm_menu_0302131643_2.menuLiteBgColor='#e0e0e0';
	mm_menu_0302131643_2.menuBorderBgColor='#3d5e9b';
	mm_menu_0302131643_2.bgColor='#e0e0e0';
	
	window.mm_menu_0302132253_3 = new Menu("root",240,18,"Arial, Verdana, Helvetica, sans-serif",12,"#666666","#ffffff","#ffffff","#20396c","left","middle",3,0,1000,-5,7,true,true,true,3,true,true);
	mm_menu_0302132253_3.addMenuItem("Research&nbsp;in&nbsp;NIH&nbsp;Labs&nbsp;and&nbsp;Clinics","location='http://www.nih.gov/science/index.html#labsandclinics'");
	mm_menu_0302132253_3.addMenuItem("Training&nbsp;at&nbsp;NIH","location='http://www.nih.gov/science/index.html#training'");
	mm_menu_0302132253_3.addMenuItem("Scientific&nbsp;Interest&nbsp;Groups","location='http://www.nih.gov/sigs/sigs.html'");
	mm_menu_0302132253_3.addMenuItem("Library&nbsp;Resources","location='http://www.nih.gov/science/library.html'");
	mm_menu_0302132253_3.addMenuItem("Scientific&nbsp;Computing","location='http://www.nih.gov/science/#computing'");
	mm_menu_0302132253_3.addMenuItem("Human&nbsp;Embryonic&nbsp;Stem&nbsp;Cell&nbsp;Registry","location='http://stemcells.nih.gov/'");
	mm_menu_0302132253_3.addMenuItem("Lab&nbsp;Research&nbsp;Support","location='http://www.nih.gov/science/index.html#labsupport '");
	mm_menu_0302132253_3.addMenuItem("Clinical&nbsp;Research&nbsp;Support","location='http://www.nih.gov/science/index.html#clinicalsupport'");
	
	mm_menu_0302132253_3.fontWeight="bold";
	mm_menu_0302132253_3.hideonmouseout=true;
	mm_menu_0302132253_3.menuBorder=1;
	mm_menu_0302132253_3.menuLiteBgColor='#e0e0e0';
	mm_menu_0302132253_3.menuBorderBgColor='#3d5e9b';
	mm_menu_0302132253_3.bgColor='#e0e0e0';
   
   window.mm_menu_0302134128_4 = new Menu("root",274,18,"Arial, Verdana, Helvetica, sans-serif",12,"#666666","#ffffff","#ffffff","#20396c","left","middle",3,0,1000,-5,7,true,true,true,3,true,true);
  mm_menu_0302134128_4.addMenuItem("Office&nbsp;of&nbsp;the&nbsp;Director","location='http://www.nih.gov/icd/od/index.htm'");
  mm_menu_0302134128_4.addMenuItem("27&nbsp;Institutes&nbsp;and&nbsp;Centers&nbsp;that&nbsp;make&nbsp;up&nbsp;the&nbsp;NIH","location='http://www.nih.gov/icd/index.html'");
   mm_menu_0302134128_4.fontWeight="bold";
   mm_menu_0302134128_4.hideonmouseout=true;
   mm_menu_0302134128_4.menuBorder=1;
   mm_menu_0302134128_4.menuLiteBgColor='#e0e0e0';
   mm_menu_0302134128_4.menuBorderBgColor='#3d5e9b';
   mm_menu_0302134128_4.bgColor='#e0e0e0';
  window.mm_menu_0302134502_5 = new Menu("root",151,18,"Arial, Verdana, Helvetica, sans-serif",12,"#666666","#ffffff","#ffffff","#20396c","left","middle",3,0,1000,-5,7,true,true,true,3,true,true);
  
  mm_menu_0302134502_5.addMenuItem("Mission","location='http://www.nih.gov/about/#mission'");
	mm_menu_0302134502_5.addMenuItem("From&nbsp;Our&nbsp;Director","location='http://www.nih.gov/about/director/index.htm'");
  mm_menu_0302134502_5.addMenuItem("Visitor's&nbsp;Info","location='http://www.nih.gov/about/visitor/index.htm'");
  mm_menu_0302134502_5.addMenuItem("Organizational&nbsp;Structure","location='http://www1.od.nih.gov/oma/manualchapters/management/1123/'");
  mm_menu_0302134502_5.addMenuItem("Budget","location='http://www.nih.gov/about/budget.htm'");
  mm_menu_0302134502_5.addMenuItem("History","location='http://www.nih.gov/about/history.htm'");
  mm_menu_0302134502_5.addMenuItem("Science&nbsp;Education","location='http://science.education.nih.gov/'");
  mm_menu_0302134502_5.addMenuItem("Public&nbsp;Involvement","location='http://www.nih.gov/about/publicinvolvement.htm'");
   mm_menu_0302134502_5.fontWeight="bold";
   mm_menu_0302134502_5.hideonmouseout=true;
   mm_menu_0302134502_5.menuBorder=1;
   mm_menu_0302134502_5.menuLiteBgColor='#e0e0e0';
   mm_menu_0302134502_5.menuBorderBgColor='#3d5e9b';
   mm_menu_0302134502_5.bgColor='#e0e0e0';

  //mm_menu_0302134502_5.writeMenus();
} // mmLoadMenus()

function mailpage()
{
    //mail_str = "mailto:?subject=Link to the National Institutes of Health";
    //mail_str += "&amp;body=I thought you might be interested in this web page from the NIH";
    //mail_str += ". You can view it at " + location.href; 

    mail_str = "mailto:?subject=Link to the National Institutes of Health";
    mail_str += "&body=I thought you might be interested in this web page from the NIH";
    mail_str += ". You can view it at " + location.href; 
    location.href = mail_str;
}

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];}
}

function body_onload() {
    MM_preloadImages('/glmedia/nav_glance2.gif','/glmedia/nav_training2.gif','/glmedia/nav_jobs2.gif','/glmedia/nav_info2.gif','/glmedia/nav_subs2.gif','/glmedia/b_home_f2.gif','/glmedia/b_health_f2.gif','/glmedia/b_grants_f2.gif','/glmedia/b_news_f2.gif','/glmedia/b_research_f2.gif','/glmedia/b_institutes_f2.gif','/glmedia/b_about_f2.gif');
}