<!--
// Milonic DHTML menu
// Written by Andy Woolley
// Copyright 2003 (c) Milonic Solutions. All Rights Reserved.
// Plase vist http://www.milonic.co.uk/menu or e-mail menu3@milonic.com


//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="<scr"+"ipt language=JavaScript>";for(a=1;a<menus.length;a++){mt+=" menu"+a+"=menus["+a+"];"}mt+="<\/scr"+"ipt>";_d.write(mt)}
//Please leave the above line intact. The above also needs to be enabled unless you have more than one _array.js file


////////////////////////////////////
// Editable properties START here //
////////////////////////////////////

// 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)"
}

timegap=500                   // The time delay for menus to remain visible
followspeed=5                 // Follow Scrolling speed
followrate=50                 // Follow Scrolling Rate
suboffset_top=5               // Sub menu offset Top position
suboffset_left=10             // Sub menu offset Left position
Frames_Top_Offset=0 		// Frames Page Adjustment for Top Offset
Frames_Left_Offset=-36		// Frames Page Adjustment for Left Offset


MainStyle=[                // MainStyle is an array of properties. You can have as many property arrays as you need
"ffffff",                     // Mouse Off Font Color
"47476c",                     // Mouse Off Background Color (use zero for transparent in Netscape 6)
"000000",                     // Mouse On Font Color
"ff9900",                     // Mouse On Background Color was the darker ochre "bc5901"
"ffffff",                     // Menu Border Color
"12",                         // Font Size (default is px but you can specify mm, pt or a percentage)
"normal",                     // Font Style (italic or normal)
"normal",                     // Font Weight (bold or normal)
"verdana,helvetica",          // Font Name
5,                            // Menu Item Padding or spacing
"images/arrow_wh.gif",                             // Sub Menu Image (Leave this blank if not needed)
1,                            // 3D Border & Separator bar
"72729b",                             // 3D High Color
"262651",                             // 3D Low Color
,                             // Current Page Item Font Color (leave this blank to disable)
,                             // Current Page Item Background Color (leave this blank to disable)
"images/arrow_wh.gif",                             // Top Bar image (Leave this blank to disable)
"ffffff",                     // Menu Header Font Color (Leave blank if headers are not needed)
"bc5901",                     // Menu Header Background Color (Leave blank if headers are not needed)
,                             // Menu Item Separator Color
]




addmenu(menu=[				// This is the array that contains your menu properties and details
"HeaderMenu",				// Menu Name - This is needed in order for the menu to be called
8,							// Menu Top - The Top position of the menu in pixels
4,							// Menu Left - The Left position of the menu in pixels
143,						// Menu Width - Menus width in pixels
1,							// Menu Border Width 
,							// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
MainStyle,				// 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)
"left",						// Alignment - sets the menu elements text alignment, values valid here are: left, right or center
effect,						// Filter - Text variable for setting transitional effects on menu activation - see above for more info
,							// Follow Scrolling Top Position - Tells the menu to follow the user down the screen on scroll placing the menu at the value specified.
, 							// 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
,							// Set the Overall Width of Horizontal Menu to 100% and height to a specified amount
,							// 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
// "Menu Item Text", "URL", "Alternate URL for submenu holders", "Status Text", "Separator Bar Width"
,"Main Menu","# align=center;type=header;",,,1
,"Home","home.htm  target=main;sourceframe=main;",,,1
,"What are Fungi?","show-menu=SubMenu2 target=main;sourceframe=main;","#",,1
,"Value to Landscapes","show-menu=SubMenu3 target=main;sourceframe=main;","#",,1
,"Finding & Collecting","show-menu=SubMenu4 target=main;sourceframe=main;","#",,1
,"Building a useful Resource","show-menu=SubMenu5 target=main;sourceframe=main;","#",,1
,"Using for Revegetation &nbsp;&nbsp;&nbsp;","show-menu=SubMenu6 target=main;sourceframe=main;","#",,1
,"Extras","# align=center;type=header;",,,1
,"Additional Resources","show-menu=SubMenu7 target=main;sourceframe=main;","#",,1
,"Glossary","show-menu=SubMenu8 target=main;sourceframe=main;","#",,1
,"Site Map","show-menu=SubMenu9 target=main;sourceframe=main;","#",,1
,"Legal & Privacy","show-menu=SubMenu10 target=main;sourceframe=main;","#",,1
,"Credits & Contact","show-menu=SubMenu11 target=main;sourceframe=main;","#",,1
])

// BG= Detect screen size and then re-assign correct menu style arguments
// e.g. MainStyle= low or high array var

/*
Made By Aviv Salem, Aviv@innocnet.com
Adapted by Brett Glossop for Milonic menus at two screen sizes
*/

// browser test:
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (browserName == "Netscape" && browserVer >= 4 || browserName == "Microsoft Internet Explorer" && browserVer >= 4)
   version = "1";
else if (browserName == "Netscape" && browserVer >= 3)
   version = "2";
else
   version = "3"; 

if (version == "1") {
   var correctwidth=1020
   var correctheight=760
   if (screen.width<correctwidth||screen.height<correctheight) {
     MainStyle[5]="11"    // font size in points for small screen size
      MainStyle[9]="3"    // Menu Item Padding was 5     
     //menus[1][3]=115    // menu width in pixels for small screen
     // MORE ??????
     }
   //else
      //leave as before
   }

if (version == "2") {
   var toolkit = java.awt.Toolkit.getDefaultToolkit();
   var screen_size = toolkit.getScreenSize();
   var correctwidth=1020
   var correctheight=760
   if (screen_size.width<correctwidth||screen_size.height<correctheight) {
     MainStyle[5]="11"    // font size in points for small screen size
      MainStyle[9]="3"    // Menu Item Padding was 5     
     //menus[1][3]=115    // menu width in pixels for small screen
     }
   //else
      //leave as before
   }

//if (version == "3") 
      //leave as before


dumpmenus()

//-->