/*
	Milonic DHTML Website Navigation Menu - Version 3.5
	Written by Andy Woolley
	Copyright 2002 (c) Milonic Solutions Limited. All Rights Reserved.
	Please visit http://www.milonic.co.uk/menu or
	e-mail menu3@milonic.com for more information.
 
	The Free use of this menu is only available to Non-Profit,
	Educational & Personal web sites.
	Commercial and Corporate licenses are available for use on
	all other web sites & Intranets.
	All Copyright notices MUST remain in place at ALL times and
	please keep us informed of your intentions to use the menu
	and send us your URL.
*/

//	The following line is critical for menu operation, and
//	MUST APPEAR ONLY ONCE. If you have more than one menu_array.js
//	file rem out this line in subsequent files

isDOM=document.getElementById?1:0;
isIE=document.all?1:0;
isNS4=navigator.appName=='Netscape'&&!isDOM?1:0;
isIE4=isIE&&!isDOM?1:0;
isOp=window.opera?1:0;
isDyn=isDOM||isIE||isNS4;

var CSSmode=document.compatMode;
CSSmode=(CSSmode&&CSSmode.indexOf('CSS')!=-1)||isDOM&&!isIE||isOp?1:0;

if (!window.page) var page = { win: window, minW: 0, minH: 0, MS: isIE&&!isOp,
 db: CSSmode?'documentElement':'body' }

page.winW=function()
 { with (this) return isIE?win.document[db].clientWidth:win.innerWidth; }
page.winH=function()
 { with (this) return isIE?win.document[db].clientHeight:win.innerHeight; }

	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)
	}


	effect = "Fade(duration=0.2);Alpha(style=0,opacity=88);Shadow(color='#777777', Direction=135, Strength=5)"


	timegap=500;
	followspeed=5;
	followrate=40;
	suboffset_top=10;
	suboffset_left=10;
	closeOnClick = true

	style1=[
		"000000",
		"dddddd",
		"dddddd",
		"000000",
		"000000",
		16,
		"normal",
		"bold",
		"Times",
		4,
		"",
		,
		"dddddd",
		"000099",
		"000000",
		"dddddd",
		"",
		"dddddd",
		"000099",
		"navy"
]


	addmenu(menu=[
		"mainmenu",
		130,
		,
		,
		1,
		"center",
		style1,
		1,
		"left",
		,
		,
		1,
		0,
		,
		1,
		,
		,
		,
		,
		,
		,
		,
		"Overview","show-menu=overview",,"Overview of Web Site",1,
		"Real-Time Monitoring","show-menu=monitoring",,"Real-Time Monitoring",1,
		"Water Quality","show-menu=waterquality",,"Water Quality",1,
		"Water Use","show-menu=wateruse",,"Water Use",1,
		"Recreation","show-menu=recreation",,"Recreation",1]);

	addmenu(menu=[
		"overview",
		,
		,
		120,
		1,
		"",
		style1,
		,
		"left",
		effect,
		,
		,
		,
		,
		,
		,
		,
		,
		,
		,
		,
		,
		"Home Page","index.html",,,1,
		"Project Goals","projectgoals.html",,,1,
		"Frequently Asked Questions","ipswatch_faq.html",,,1,
		"What is a watershed?","ovwatershed.html",,,1,
		"Detailed Map","ovdetailedmap.html",,,1,
		"Watershed Descriptions","ovsummarystats.html",,,1,
		"Water Standards","314cmrclasses.html",,,1,
		"Partner Groups","partner.html",,,1,
		"IPSWATCH Proposal","empact_proposal.html",,,1]);

	addmenu(menu=[
		"monitoring",
		,
		,
		120,
		1,
		"",
		style1,
		,
		"left",
		effect,
		,
		,
		,
		,
		,
		,
		,
		,
		,
		,
		,
		,
		"Overview","monoverview.html",,,1,
		"Monitoring data","monmap.html",,,1,
		"Mercury deposition monitoring","mercury_overview.html",,,1]);

	addmenu(menu=[
		"waterquality",
		,
		,
		120,
		1,
		"",
		style1,
		,
		"left",
		effect,
		,
		,
		,
		,
		,
		,
		,
		,
		,
		,
		,
		,
		"Overview","wqoverview.html",,,1,
		/* "Latest IRWA Oxygen Data","wqirwa.html",,,1, */
		"Ipswich River Water Quality Data","wqipswich.html",,,1,
		"Parker River Water Quality Data","wqparker_nutrients.html",,,1,
		"Water Quality Data Download","download.html",,,1,
		"IRWA Summaries","wqsummaries.html",,,1,
		"Other Watersheds","http://www.GM-WICS.sr.unh.edu",,,1,
		"Hazardous Waste Sites","hazard.html",,,1]);

	addmenu(menu=[
		"wateruse",
		,
		,
		120,
		1,
		"",
		style1,
		,
		"left",
		effect,
		,
		,
		,
		,
		,
		,
		,
		,
		,
		,
		,
		,
		"Water Ban Status","water_ban.html",,,1,
		"Water Ban Status Contacts","waterdept_contacts.html",,,1,
		"Map of Public Water Supply Areas","water_supply.html",,,1]);

	addmenu(menu=[
		"recreation",
		,
		,
		120,
		1,
		"",
		style1,
		,
		"left",
		effect,
		,
		,
		,
		,
		,
		,
		,
		,
		,
		,
		,
		,
		"Overview","recreation.html",,,1,
		"Fishing","recreation.html#fishing",,,1,
		"Canoeing","recreation.html#canoeing",,,1,
		"Kayaking","recreation.html#kayaking",,,1,
		"Clamming","recreation.html#clamming",,,1,
		"Hiking","recreation.html#hiking",,,1,
		"Birdwatching","recreation.html#birdwatching",,,1,
		"Beach Closure Contacts","beach_closure.html",,,1]);

	dumpmenus();
