//SuckerTree Horizontal Menu (Sept 14th, 06)
//By Dynamic Drive: http://www.dynamicdrive.com/style/

var menuids=["treemenu1"] //Enter id(s) of SuckerTree UL menus, separated by commas

function buildsubmenus_horizontal(){
for (var i=0; i<menuids.length; i++){
  var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++){
		if (ultags[t].parentNode.parentNode.id==menuids[i]){ //if this is a first level submenu
			ultags[t].style.top=ultags[t].parentNode.offsetHeight+"px" //dynamically position first level submenus to be height of main menu item
			ultags[t].parentNode.getElementsByTagName("a")[0].className="mainfoldericon"
		}
		else{ //else if this is a sub level menu (ul)
		  ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px" //position menu to the right of menu item that activated it
    	ultags[t].parentNode.getElementsByTagName("a")[0].className="subfoldericon"
		}
    ultags[t].parentNode.onmouseover=function(){
    this.getElementsByTagName("ul")[0].style.visibility="visible"
    }
    ultags[t].parentNode.onmouseout=function(){
    this.getElementsByTagName("ul")[0].style.visibility="hidden"
    }
    }
  }
}

if (window.addEventListener)
window.addEventListener("load", buildsubmenus_horizontal, false)
else if (window.attachEvent)
window.attachEvent("onload", buildsubmenus_horizontal)

BLANK_IMAGE="pix/b.gif";
//keywords
var code="code";var url="url";var sub="sub";
//styles
var color = {"border":"#000000", "shadow":"#DBD8D1", "bgON":"#009933","bgOVER":"#009933"};
var color1 = {"border":"#000000", "shadow":"#DBD8D1", "bgON":"#E8FFE8","bgOVER":"#009933"};
var css = {"ON":"clsCMOn", "OVER":"clsCMOver"};
var STYLE = {"border":1, "shadow":0, "color":color, "css":css};
var STYLESUB = {"border":1, "shadow":3, "color":color1, "css":css};
//items and formats
var MENU_ITEMS_SIZING =
[
	{"pos":[113,114], "itemoff":[0,69], "leveloff":[21,0], "style":STYLE, "size":[22,100]},
	{code:"<center><font color=#FFFFFF>Home</font></center>",url:"index.htm"
//		sub:[
//			{"style":STYLESUB, "itemoff":[21,0],"leveloff":[25,0]},
	//		{code:"Home", url:"index.htm", "format":{"size":[22,100]}},
	//		{code:"Mission", url:"missionStatement.htm", "format":{"size":[22,100]}},
	//		{code:"History", url:"history.htm", "format":{"size":[22,100]}},
	//		{code:"Location", url:"location.htm", "format":{"size":[22,100]}},
	//		{code:"Contact Us", url:"contactUs.htm", "format":{"size":[22,100]}},
	//		{code:"Staff", url:"staff.htm", "format":{"size":[22,100]}},
//			{code:"Fees", url:"fees.htm", "format":{"size":[22,100]}},
	//		{code:"Employment", url:"employment.htm", "format":{"size":[22,100]}},
	//		{code:"Links", url:"links.htm", "format":{"size":[22,100]}}
	//		]
	},
	
	
//	{code:"<center><font color=#FFFFFF>News</font></center>", "format":{"itemoff":[0,84],"leveloff":[25,0], "size":[22,85]},
//		sub:[
	//		{"style":STYLESUB, "itemoff":[21,0],"leveloff":[25,0]},
	//		{code:"Bay of Fundy Species Information Database now online", url:"http://gmbis.marinebiodiversity.ca/BayOfFundy/search.html", "format":{"size":[22,320]}},
	//		{code:"Field Courses 2004!", url:"highSchoolCoursesPick.htm", "format":{"size":[22,320]}},
	//		{code:"Applications for Scholarships now closed", url:"scholarFellowShip.htm", "format":{"size":[22,320]}},
	//		{code:"BIODAQUA International Exchange", url:"exchange.htm", "format":{"size":[22,320]}},
  //    {code:"Animal communities change with organic enrichment", url:"quarterlyNews.htm", "format":{"size":[22,320]}},
   //    {code:"Co-op students at the ARC", url:"quarterlyNews.htm", "format":{"size":[22,320]}}
//			]
	//},	

	
		{code:"<center><font color=#FFFFFF>Services</font></center>", "format":{ "itemoff":[0,99],"leveloff":[25,0], "size":[22,100]},url:"services.htm"
//		sub:[
	//	{"style":STYLESUB},
//{code:"Welcome",url:"aquaPreview.htm", "format":{"itemoff":[22,0], "size":[22,100]}},
//		{code:"Hours", url:"aquariumHours.htm", "format":{"itemoff":[21,0], "size":[22,100]}},
	//		{code:"Fees",url:"aquariumFees.htm", "format":{"itemoff":[21,0], "size":[22,100]}}
		
		
	//	{code:"<center>Tours</center>", "format":{"itemoff":[0,48], "size":[22,48]},
	//	sub:[
	//	{"itemoff":[21,0]},
	//		{code:"School Tours", url:"schoolTour.html", "format":{"itemoff":[-1,0], "size":[20,85]}},
	//		{code:"Visitor Tours", url:"visitorTour.html", "format":{"itemoff":[19,0], "size":[20,85]}},
	//		{code:"Guided Walks", url:"guidedWalk.html", "format":{"itemoff":[19,0], "size":[20,85]}}
	//		]
	//		},
	//		]
	},	
			
//	{code:"<center><font color=#FFFFFF>About Us</font></center>", "format":{ "itemoff":[0,99],"leveloff":[25,0], //"size":[22,100]}, url:"services.htm"

//	},			

{code:"<center><font color=#FFFFFF>Clients</font></center>", "format":{"itemoff":[0,99],"leveloff":[25,0], "size":[22,120]},
		sub:[
		{"style":STYLESUB, "itemoff":[21,0],"leveloff":[25,0]},
	{code:"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remit Payroll", url:"http://www.a-1bookkeeping.com/cgi-bin/password.cgi", "format":{"size":[22,130]}},
<!--To expand the height of a menu box, type "itemoff":[21,0], including the comma and quotes just before "size"-->
		
		{code:"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Client Area", url:"http://www.a-1bookkeeping.com/cgi-bin/clientArea.cgi", "format":{"size":[22,130]}}
	<!--Starting at the quotes, the following should replace the url above "http://www.a-1bookkeeping.com/cgi-bin/clientArea.cgi"-->
	
	]
	},		
	
	
	//{code:"<center><font color=#FFFFFF>Aquaculture</font></center>", "format":{"itemoff":[0,84],"leveloff":[25,0], "size":[22,85]},
	//	sub:[
	//		{"style":STYLESUB, "itemoff":[21,0],"leveloff":[25,0]},
	//		{code:"HMSC Aquaculture", url:"aquaculture.htm", "format":{"size":[22,120]}},
	//		{code:"ASBDP", url:"asbdp.htm", "format":{"size":[22,120]}}
			
	//		]
	//},	

	{code:"<center><font color=#FFFFFF>Our Firm</font></center>", "format":{"itemoff":[0,119],"leveloff":[25,0], "size":[22,120]},
		sub:[
			{"style":STYLESUB, "itemoff":[21,0],"leveloff":[25,0]},
			{code:"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;About Us", url:"aboutUs.htm", "format":{"size":[22,130]}},
			{code:"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Contact Us", url:"contactUs.htm", "format":{"size":[22,130]}}
			//{code:"Privacy Policy", url:"policy.htm", "format":{"size":[22,130]}},
		//	{code:"Tips", url:"tips.htm", "format":{"size":[22,130]}},
		//	{code:"Frequency Asked Questions", url:"faq.htm", "format":{"size":[33,130]}},
		//	{code:"Other Links", url:"links.htm", "format":{"itemoff":[33,0],"size":[22,130]}}
			]
	},
	

	{code:"<center><font color=#FFFFFF>Info.</font></center>", "format":{"itemoff":[0,119],"leveloff":[25,0], "size":[22,100]},
		sub:[
			{"style":STYLESUB, "itemoff":[21,0],"leveloff":[25,0]},
		//	{code:"About Us", url:"aboutUs.htm", "format":{"size":[22,130]}},
		//	{code:"Contact Us", url:"contactUs.htm", "format":{"size":[22,130]}},
			{code:"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Privacy Policy", url:"policy.htm", "format":{"size":[22,130]}},
			{code:"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tips", url:"tips.htm", "format":{"size":[22,130]}},
			{code:"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FAQ", url:"faq.htm", "format":{"size":[22,130]}},
			{code:"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Other Links", url:"links.htm", "format":{"size":[22,130]}}
			]
	},
];			
/*				{code:"Big SubItem 4", "format":{"itemoff":[21,-140], "size":[43,70]}},
			{code:"SubItem 5", "format":{"itemoff":[0,69], "size":[22,70]}},
	    {code:"SubItem 6", "format":{"itemoff":[21,0], "size":[22,70]}},
			{code:"One more too long SubItem 7", "format":{"itemoff":[21,-138], "size":[22,208]}}
		]
	},
			
  {code:"Research",
		sub:[
			{"itemoff":[21,0]},
			{code:"SubItem 1"},
			{code:"SubItem 2"},
			{code:"SubItem 3"},
			{code:"SubItem 4"}
		]
	},

  {code:"Aquarium",
		sub:[
			{"itemoff":[21,0]},
			{code:"SubItem 1"},
			{code:"SubItem 2"},
			{code:"SubItem 3"},
			{code:"SubItem 4"}
		]
	},
	
  {code:"Facilities", 
		sub:[
			{"itemoff":[21,0]},
			{code:"SubItem 1"},
			{code:"SubItem 2"},
			{code:"SubItem 3"},
			{code:"SubItem 4"}
		]
	}	
,

**/	