var bn=navigator.platform
var ie=navigator.appName
var leftmargin=0
if(ie.indexOf("Microsoft Internet Explorer")!=-1)
leftmargin=-3;

_menuCloseDelay=100           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150            // The time delay before menus open on mouse over
_followSpeed=5                // Follow scrolling speed
_followRate=40                // Follow scrolling Rate
_subOffsetTop=5               // Sub menu top offset
_subOffsetLeft=0              // Sub menu left offset
_scrollAmount=3               // Only needed for Netscape 4.x
_scrollDelay=20               // Only needed for Netcsape 4.x


with(menuStyle=new mm_style()){
onbgcolor="#000000";
oncolor="#000000";
offbgcolor="#000000";
offcolor="#ffffff";
bordercolor="#296488";
borderstyle="solid";
borderwidth=0;
separatorcolor="#2D729D";
separatorsize="1";
padding=2;
fontsize="10px";
fontstyle="bold";
fontfamily="verdana,san-serif,Arial,Helvetica";
pagecolor="black";
pagebgcolor="#000000";
headercolor="#000000";
headerbgcolor="#ffffff";
//subimage="../images/arrow.gif";
subimagepadding="5";
}
with(submenuStyle=new mm_style()){
separatorsize="0";
padding=0;
fontsize="10px";
fontweight="bold"
fontstyle="bold";
fontfamily="verdana,Arial,Helvetica,san-serif";
pagecolor="black";
pagebgcolor="#000000";
headercolor="#ffffff";
headerbgcolor="#ffffff";
//subimage="../images/arrow.gif";
subimagepadding="5";
}

//About Obssr
with(milonic=new menuname("abt")){
orientation="horizontal";
style=submenuStyle;
left=0;
top=0;
overflow="scroll";
aI("text=<img src='images/black_patch0.gif'>;");
aI("text=<img src='../images/mission_off.gif' title='Mission' alt='Mission' name='myimage1' id='myimage1' onmouseover='menu_highlight(\"myimage1\",\"mission_on.gif\")' onmouseout='menu_drop(\"myimage1\",\"mission_off.gif\")'>;url=about_obssr/mission/mission.aspx;");
aI("text=<img src='../images/history_drop_off.gif' title='History' alt='History' name='myimage2' id='myimage2' onmouseover='menu_highlight(\"myimage2\",\"history_drop_on.gif\")' onmouseout='menu_drop(\"myimage2\",\"history_drop_off.gif\")'>;url=about_obssr/history/history.aspx;");
aI("text=<img src='../images/from_our_direction_off.gif' title='From our Director' alt='From our Director' name='myimage3' id='myimage3' onmouseover='menu_highlight(\"myimage3\",\"from_our_direction_on.gif\")' onmouseout='menu_drop(\"myimage3\",\"from_our_direction_off.gif\")'>;url=about_obssr/from_our_director/from_our_director.aspx;");
aI("text=<img src='../images/startegic_plan_off.gif' title='Startegic Plan' alt='Startegic Plan' name='myimage22' id='myimage22' onmouseover='menu_highlight(\"myimage22\",\"startegic_plan_on.gif\")' onmouseout='menu_drop(\"myimage22\",\"startegic_plan_off.gif\")'>;url=strategic_planning/strategicPlanning.aspx;");
aI("text=<img src='../images/staff_off.gif' title='Staff' alt='Staff' name='myimage134' id='myimage134' onmouseover='menu_highlight(\"myimage134\",\"staff_on.gif\")' onmouseout='menu_drop(\"myimage134\",\"staff_off.gif\")'>;url=about_obssr/staff/staff.aspx");
aI("text=<img src='../images/bssr_off.gif' title='BSSR Coordinating Committee' alt='BSSR Coordinating Committee' name='myimage145' id='myimage145' onmouseover='menu_highlight(\"myimage145\",\"bssr_on.gif\")' onmouseout='menu_drop(\"myimage145\",\"bssr_off.gif\")'>;url=bssr_cc/");
aI("text=<img src='../images/black_patch1.gif'>;");
}

//Grants
with(milonic=new menuname("gra")){
orientation="horizontal";
style=submenuStyle;
left=-105;
top=0;
overflow="scroll";
aI("text=<img src='../images/black_patch01.gif'>;");
aI("text=<img src='../images/foas_off.gif' title='Faqs' alt='Faqs' name='myimage135' id='myimage135' onmouseover='menu_highlight(\"myimage135\",\"foas_on.gif\")' onmouseout='menu_drop(\"myimage135\",\"foas_off.gif\")'>;url=;");
aI("text=<img src='../images/applying_for_grants_off.gif' title='Applying for Grants' alt='Applying for Grants' name='myimage136' id='myimage136' onmouseover='menu_highlight(\"myimage136\",\"applying_for_grants_on.gif\")' onmouseout='menu_drop(\"myimage136\",\"applying_for_grants_off.gif\")'>;url=;");
aI("text=<img src='../images/grantee_case_off.gif' title='Grantee Case Studies' alt='Grantee Case Studies' name='myimage137' id='myimage137' onmouseover='menu_highlight(\"myimage137\",\"grantee_case_on.gif\")' onmouseout='menu_drop(\"myimage137\",\"grantee_case_off.gif\")'>;url=;");
aI("text=<img src='../images/archives_sub_off.gif' title='Archives' alt='Archives' name='myimage138' id='myimage138' onmouseover='menu_highlight(\"myimage138\",\"archives_sub_on.gif\")' onmouseout='menu_drop(\"myimage138\",\"archives_sub_off.gif\")'>;url=;");
aI("text=<img src='../images/black_patch15.gif'>;");
}

//News and Events
with(milonic=new menuname("news")){
orientation="horizontal";
style=submenuStyle;
left=0;
top=0;
overflow="scroll";
aI("text=<img src='../images/black_patch02.gif'>;");
//aI("text=<img src='../images/events_calendar_off.gif' title='Events Calendar' alt='Events Calendar' name='myimage139' id='myimage139' onmouseover='menu_highlight(\"myimage139\",\"events_calendar_on.gif\")' onmouseout='menu_drop(\"myimage139\",\"events_calendar_off.gif\")'>;url=;");
aI("text=<img src='../images/conferences_and_work_off.gif' title='Conferences and Workshops' alt='Conferences and Workshops' name='myimage140' id='myimage140' onmouseover='menu_highlight(\"myimage140\",\"conferences_and_work_on.gif\")' onmouseout='menu_drop(\"myimage140\",\"conferences_and_work_off.gif\")'>;url=conferences_and_workshops/index.aspx;");
aI("text=<img src='../images/lectures_and_semi_off.gif' title='Lectures and Seminars' alt='Lectures and Seminars' name='myimage141' id='myimage141' onmouseover='menu_highlight(\"myimage141\",\"lectures_and_semi_on.gif\")' onmouseout='menu_drop(\"myimage141\",\"lectures_and_semi_off.gif\")'>;url=lectures_and_seminars/seminars.aspx;");
aI("text=<img src='../images/news_releases_off.gif' title='News Releases' alt='News Releases' name='myimage142' id='myimage142' onmouseover='menu_highlight(\"myimage142\",\"news_releases_on.gif\")' onmouseout='menu_drop(\"myimage142\",\"news_releases_off.gif\")'>;url=announcements/news.aspx");
aI("text=<img src='../images/videocast_off.gif' title='Videocasts' alt='Videocasts' name='myimage143' id='myimage143' onmouseover='menu_highlight(\"myimage143\",\"videocast_on.gif\")' onmouseout='menu_drop(\"myimage143\",\"videocast_off.gif\")'>;url=news_and_events/videocast/videocast.aspx;");
aI("text=<img src='../images/archives_sub_off.gif' title='Archives' alt='Archives' name='myimage144' id='myimage144' onmouseover='menu_highlight(\"myimage144\",\"archives_sub_on.gif\")' onmouseout='menu_drop(\"myimage144\",\"archives_sub_off.gif\")'>;url=lectures_and_seminars/archives/old_semn.aspx");
aI("text=<img src='../images/black_patch7.gif'>;");
}

//Career and Training
with(milonic=new menuname("tra")){
orientation="horizontal";
style=submenuStyle;
left=-299;
top=0;
overflow="scroll";
aI("text=<img src='../images/black_patch3.gif'>;");
aI("text=<img src='../images/training_off.gif' title='Training' alt='Training' name='myimage146' id='myimage146' onmouseover='menu_highlight(\"myimage146\",\"training_on.gif\")' onmouseout='menu_drop(\"myimage146\",\"training_off.gif\")'>;url=career_and_training/training.aspx;");
aI("text=<img src='../images/mentoring_diversity_off.gif' title='Mentoring for Diversity' alt='Mentoring for Diversity' name='myimage147' id='myimage147' onmouseover='menu_highlight(\"myimage147\",\"mentoring_diversity_on.gif\")' onmouseout='menu_drop(\"myimage147\",\"mentoring_diversity_off.gif\")'>;url=mfd/index.aspx;");
aI("text=<img src='../images/videocast_off.gif' title='Videocasts' alt='Videocasts' name='myimage148' id='myimage148' onmouseover='menu_highlight(\"myimage148\",\"videocast_on.gif\")' onmouseout='menu_drop(\"myimage148\",\"videocast_off.gif\")'>;url=career_and_training/videocast/videocast.aspx;");
aI("text=<img src='../images/black_patch13.gif'>;");
}

//Publications
with(milonic=new menuname("pubs")){
orientation="horizontal";
style=submenuStyle;
left=-442;
top=0;
overflow="scroll";
aI("text=<img src='../images/black_patch10.gif'>;");
aI("text=<img src='../images/reports_off.gif' title='Reports' alt='Reports' name='myimage150' id='myimage150' onmouseover='menu_highlight(\"myimage150\",\"reports_on.gif\")' onmouseout='menu_drop(\"myimage150\",\"reports_off.gif\")'>;url=books_and_projects/books_and_reports.aspx");
aI("text=<img src='../images/black_patch12.gif'>;");
}

//Resources
with(milonic=new menuname("reso")){
orientation="horizontal";
style=submenuStyle;
left=-595;
top=0;
overflow="scroll";
aI("text=<img src='../images/black_patch8.gif'>;");
aI("text=<img src='../images/grantee_links_off.gif' title='Grantee Links' alt='Grantee Links' name='myimage151' id='myimage151' onmouseover='menu_highlight(\"myimage151\",\"grantee_links_on.gif\")' onmouseout='menu_drop(\"myimage151\",\"grantee_links_off.gif\")'>;url=;");
aI("text=<img src='../images/health_tools_off.gif' title='Health Tools' alt='Health Tools' name='myimage152' id='myimage152' onmouseover='menu_highlight(\"myimage152\",\"health_tools_on.gif\")' onmouseout='menu_drop(\"myimage152\",\"health_tools_off.gif\")'>;url=");
aI("text=<img src='../images/useful_links_off.gif' title='Useful Links' alt='Useful Links' name='myimage153' id='myimage153' onmouseover='menu_highlight(\"myimage153\",\"useful_links_on.gif\")' onmouseout='menu_drop(\"myimage153\",\"useful_links_off.gif\")'>;url=links_to_internet_sites/infonih.aspx");
aI("text=<img src='images/black_patch14.gif'>;");
}

function menu_highlight(imgname,imgsrc)
{
	document.images[imgname].src='../images/'+imgsrc;
}

function menu_drop(imgname,imgsrc)
{
	document.images[imgname].src='../images/'+imgsrc;
}

drawMenus();

