function checkOS() {

version=0
if (navigator.appVersion.indexOf("MSIE")!=-1){
temp=navigator.appVersion.split("MSIE")
version=parseFloat(temp[1])


}


 if((navigator.userAgent.indexOf('Mac') != -1) && 
  (version>=5.0))
    { var OpSys = 42; }
else if(navigator.appName=="Netscape"&&parseFloat(navigator.appVersion)>=5)
	{ var OpSys = 34; }
  else { var OpSys = 34; }
  return OpSys;
}


// Milonic DHTML Menu
// Please note that major changes to this file have been made and is not compatible with earlier versions..
//
// You no longer need to number your menus as in previous versions. 
// The new menu structure allows you to name the menu instead. This means that you can remove menus and not break the system.
// The structure should also be much easier to modify, add & remove menus and menu items.
// 
// If you are having difficulty with the menu please read the FAQ at http://www.milonic.co.uk/menu/faq.php before contacting us.
//
// Please note that the above text CAN be erased if you wish as long as copyright notices remain in place.


// The following line is critical for menu operation, and must appear only once.
menunum=0;menus=new Array();_d=document;function addmenu(){menunum++;menus[menunum]=menu;}function dumpmenus(){mt="<script language=javascript>";for(a=1;a<menus.length;a++){mt+=" menu"+a+"=menus["+a+"];"}mt+="<\/script>";_d.write(mt)}
//Please leave the above line intact. The above also needs to be enabled if it not already enabled


////////////////////////////////////
// Editable properties START here //
////////////////////////////////////
var OpSys = checkOS();
timegap=500					// The time delay for menus to remain visible on mouse off
followspeed=7				// Follow Scrolling speed (higher number makes the scrolling smoother but slower)
followrate=30				// Follow Scrolling Rate (use a minimum of 40 or you may experience problems)
suboffset_top=10;			// Sub menu offset Top position 
suboffset_left=10;			// Sub menu offset Left position

// Special effect string for IE5.5 or above please visit http://www.milonic.co.uk/menu/filters_sample.php for more filters
if(navigator.appVersion.indexOf("MSIE 6.0")>0)
{
	effect = "Fade(duration=0.2);Alpha(style=0,opacity=88);Shadow(color='#777777', Direction=135, Strength=5)"
}
else
{
	effect = "Shadow(color='#777777', Direction=135, Strength=5)"
}


style2=[					// style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"ffffff",					// Mouse Off Font Color
"2C5A65",			// Mouse Off Background Color
"933E2B",					// Mouse On Font Color
"AFCFCF",				// Mouse On Background Color
"000000",					// Menu Border Color 
11,							// Font Size (default is px but you can specify mm, pt or a percentage)
"normal",					// Font Style (italic or normal)
"bold",						// Font Weight (bold or normal)
"Verdana, Tahoma, Arial, Helvetica, sans-serif",	// Font Name
3,							// Menu Item Padding
,		// Sub Menu Image (Leave this blank if not needed)
,							// 3D Border & Separator bar
"66ffff",					// 3D High Color
"000000",					// 3D Low Color
"ffffff",					// Current Page Item Font Color (leave this blank to disable)
"2C5A65",						// Current Page Item Background Color (leave this blank to disable)
,	// Top Bar image (Leave this blank to disable)
"933E2B",					// Menu Header Font Color (Leave blank if headers are not needed)
"000099",					// Menu Header Background Color (Leave blank if headers are not needed)
]


addmenu(menu=[		// This is the array that contains your menu properties and details
"mainmenu",			// Menu Name - This is needed in order for the menu to be called
OpSys,				// Menu Top - The Top position of the menu in pixels
25,					// Menu Left - The Left position of the menu in pixels
,					// Menu Width - Menus width in pixels
,					// Menu Border Width 
,					// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style2,				// Properties Array - this is set higher up, as above
1,					// Always Visible - allows the menu item to be visible at all time (1=on/0=off)
,					// Alignment - sets the menu elements text alignment, values valid here are: left, right or center
,					// Filter - Text variable for setting transitional effects on menu activation - see above for more info
,					// Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times) (1=on/0=off)
1, 					// Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)
,					// Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off)
,					// Position of TOP sub image left:center:right
,					// ..Now Obsolete..
,					// Right To Left - Used in Hebrew for example. (1=on/0=off)
,					// Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
,					// ID of the div you want to hide on MouseOver (useful for hiding form elements)
,					// Reserved for future use
,					// Reserved for future use
,					// Reserved for future use
,"Home&nbsp;","default.asp","#","Return to Main Page",1// "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"&nbsp;Overview&nbsp;&nbsp;","show-menu=overview","#","Overview",1
,"&nbsp;ICR&nbsp;Centers&nbsp;","show-menu=icr","#","ICR Centers",1
//,"&nbsp;Steering&nbsp;Committee&nbsp;","steering_member.asp",,"Steering Committee Members",1
//,"&nbsp;Steering&nbsp;Committee&nbsp;","show-menu=steering","#","Steering Committee",1
,"&nbsp;Committees&nbsp;","show-menu=steering","#","Steering Committee",1
,"&nbsp;ABCC&nbsp;","show-menu=abcc","#","ABCC",1
//,"&nbsp;Investigator&nbsp;Information","info_invest.asp",,"Investigator Information",1
//,"&nbsp;Investigator&nbsp;Information&nbsp;","show-menu=investigator","#","Investigator Information",1
,"&nbsp;For&nbsp;ICR&nbsp;Members&nbsp;Only","restricted.asp",,"For ICR Members Only",1
//,"&nbsp;Event&nbsp;Calendar","calendar.asp",,"Calendar of Events",1
,"&nbsp;Islet&nbsp;Workshops&nbsp;","workshops.asp",,"Islet Workshops",1
,"&nbsp;ICN Newsletters&nbsp;","newsletters.asp",,"ICR -Newsletter",1
,"&nbsp;Historic&nbsp;Documentation&nbsp;of&nbsp;ICR","show-menu=documents","#","Historic Documentation",1
])


if(document.layers)m1div="_d.layers['menu1'].document.layers['mel1'].document.layers['subscribeform']"; else m1div="subscribeform"

addmenu(menu=["Overview","offset=3",,185,1,"",style2,,"",effect,,,,,,,,,,,,
,"Mission Statement", "mission.asp",,"Mission Statement",1
,"ICR Steering Committee", "steering.asp",,"ICR Steering Committee",1
,"ABCC", "abcc.asp",,"ABCC",1
,"Organizational Structure", "org_structure.asp",,"Organizational Structure",1
,"Sponsor", "sponsor.asp",,"Sponsor",1
,"2008 Annual Report", "docs/AR2008_vF.pdf target=new",,"2007 Annual Report",1
])

addmenu(menu=["icr","offset=3",,195,1,"",style2,,"",effect,,,,,,,,,,,,
,"ICR Center Map", "icr_map.asp",,"ICR Center Map",1
//,"Policy and Procedures", "docs/icrpp.pdf target=new",,"Policy and Procedures",1
//,"ICR Sponsored Publications", "spon_publication.asp",,"ICR Sponsored Publications",1
])
addmenu(menu=["steering","offset=4",,295,1,"",style2,,"",effect,,,,,,,,,,,,
,"Steering&nbsp;Committee", "steering_member.asp",,"Steering Committee",1
,"Subcommittee Members", "subcommittee_members.asp",,"Subcommittee Members",1
,"Distribution Reports Through July 31, 2009", "https://stage.coh.org/abccsr/reports.aspx",,"Distribution Reports Through July 31, 2009",1
,"JDRF Reports Through July 31, 2009", "https://www.infosci.coh.org/abccjdrfreports/jdrfreports.aspx",,"JDRF Reports",1
])
addmenu(menu=["abcc","offset=3",,215,1,"",style2,,"left",effect,,,,,,,,,,,,
,"ABCC Staff Directory","abcc_staff.asp",,"ABCC Staff Directory",1
,"ABCC Organizational Structure","abcc_org.asp",,"ABCC Organizational Structure",1
])
addmenu(menu=["documents","offset=2",,210,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Policy and Procedures", "docs/icrpp.pdf target=new",,"Policy and Procedures",1
,"ICR Sponsored Publications", "spon_publication.asp",,"ICR Sponsored Publications",1
])


//////////////////////////////////
// Editable properties END here //
//////////////////////////////////
dumpmenus() // This must be the last line in this file

