// --------------------------------------------------------------------------------------
// 

// This defines the position of the menu bar from the top of the web page in pixels.
var intPxFromTopOfPage = 67;

var menunum=0;
var menus=new Array();
var _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);
}

// -------------------------------------------------------------------------------------

// -------------------------------------------------------------------------------------
// Menu properties
// -------------------------------------------------------------------------------------

// Menu Properties

timegap			= 100	// The time delay for menus to remain visible.
followspeed		= 5     // Follow Scrolling speed.
followrate		= 40    // Follow Scrolling Rate.
suboffset_top	= 0     // Sub menu offset Top position.
suboffset_left  = 0     // Sub menu offset Left position.

// Menu Styles
// This is style of the top level menu.

TopLevelStyle=[               // TopLevelStyle is an array of properties. You can have as many property arrays as you need.
"ffff00",                     // Mouse Off Font Color.
"006600",                     // Mouse Off Background Color (use zero for transparent in Netscape 6).
"006600",                     // Mouse On Font Color.
"f0e68c",                     // Mouse On Background Color.
"006600",                     // Menu Border Color.
"12",                         // 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).
"Arial",					  // Font Name.
6,                            // Menu Item Padding or spacing.
"",							  // Sub Menu Image (Leave this blank if not needed).
0,                            // 3D Border & Separator bar.
"",							  // 3D High Color.
"",							  // 3D Low Color.
"",							  // Current Page Item Font Color (leave this blank to disable).
"",                           // Current Page Item Background Color (leave this blank to disable).
,                             // Top Bar image (Leave this blank to disable).
"",							  // Menu Header Font Color (Leave blank if headers are not needed).
"",							  // Menu Header Background Color (Leave blank if headers are not needed).
,                             // Menu Item Separator Color.
]

// This is the style of all sub menus. It is identical to the style of the top level menu except
// for the 'Menu Border Color' property.

SubMenuStyle=[                // SubMenuStyle is an array of properties. You can have as many property arrays as you need.
"ffff00",                     // Mouse Off Font Color.
"006600",                     // Mouse Off Background Color (use zero for transparent in Netscape 6).
"006600",                     // Mouse On Font Color.
"f0e68c",                     // Mouse On Background Color.
"f0e68c",                     // Menu Border Color.
"12",                         // 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).
"Arial",					  // Font Name.
6,                            // Menu Item Padding or spacing.
"",							  // Sub Menu Image (Leave this blank if not needed).
0,                            // 3D Border & Separator bar.
"",							  // 3D High Color.
"",							  // 3D Low Color.
"",							  // Current Page Item Font Color (leave this blank to disable).
"",                           // Current Page Item Background Color (leave this blank to disable).
,                             // Top Bar image (Leave this blank to disable).
"",							  // Menu Header Font Color (Leave blank if headers are not needed).
"",							  // Menu Header Background Color (Leave blank if headers are not needed).
,                             // Menu Item Separator Color.
]

// Example menu constuction.

//addmenu(menu=[
//"Sample",			// 1)  Menu Name - This is needed in order for this menu to be called.
//0,                // 2)  Menu Top - The Top position of this menu in pixels.
//0,                // 3)  Menu Left - The Left position of this menu in pixels.
//700,              // 4)  Menu Width - Menus width in pixels.
//0,                // 5)  Menu Border Width.
//,                 // 6)  Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle".
//SubMenuStyle,       // 7)  Properties Array - this array is declared higher up as you can see above.
//0,                // 8)  Always Visible - allows this menu item to be visible at all time (1=on or 0=off).
//,                 // 9)  Alignment - sets this menu elements text alignment, values valid here are: left, right or center.
//,                 // 10) Filter - Text variable for setting transitional effects on menu activation - see above for more info.
//0,                // 11) Follow Scrolling Top Position - Tells this menu to follow the user down the screen on scroll placing the menu at the value specified.
//0,                // 12) Horizontal Menu - Tells this menu to display horizontaly instead of top to bottom style (1=on or 0=off).
//0,                // 13) Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on or 0=off).
//,                 // 14) Position of TOP sub image left:center:right.
//,                 // 15) Set the Overall Width of Horizontal Menu to specified width or 100% and height to a specified amount.
//0,                // 16) Right To Left - Used in Hebrew for example. (1=on or 0=off).
//0,                // 17) Open the Menus OnClick - leave blank for OnMouseover (1=on or 0=off).
//,                 // 18) ID of the div you want to hide on MouseOver (useful for hiding form elements).
//,                 // 19) Background image for menu Color must be set to transparent for this to work.
//0,                // 20) Scrollable Menu.
//,                 // 21) Miscellaneous Menu Properties.
//])

addmenu(menu=[
"Mainmenu",				// 1)
intPxFromTopOfPage,			// 2)
,					// 3)
120,					// 4)
1,					// 5) 
"center",				// 6)
TopLevelStyle,				// 7)
1,					// 8)
,					// 9)
"",					// 10)
0,					// 11)
1,					// 12)
0,					// 13)
,					// 14)
,					// 15)
0,					// 16)
0,					// 17)
,					// 18)	
,					// 19)
0,					// 20)
,					// 21)
,"Home",	"display-webpage=Norwich-Pool/HomePage.htm","#",,1
,"Leagues",	"show-menu=leagues","#",,1
,"Competitions","display-webpage=Norwich-Pool/Competitions/Competitions.htm","#",,1
,"Admin",	"show-menu=admin","#",,1
,"Links",	"show-menu=Links_Menu","#",,1
])

addmenu(menu=[
"Links_Menu",			// 1)
,					// 2)
,					// 3)
160,				// 4)
1,					// 5)
,					// 6)
SubMenuStyle,		// 7)	
0,					// 8)
,					// 9)
"",					// 10)
0,					// 11)
0,					// 12)
0,					// 13)
,					// 14)
,					// 15)
0,					// 16)
0,					// 17)
,					// 18)
,					// 19)
0,					// 20)
,					// 21)
,"Tunmore Pool League" ,"Leisure-Link_Index.htm",,,0
,"Singles League" ,"Singles-League_Index.htm",,,0
,"Other","display-webpage=Norwich-Pool/Links.htm","#",,0
])

// ,"Test Pages","show-menu=TestPages","#",,1
// ,"Ladder Rules","display-webpage=Norwich-Pool/Ladder/Rules_Ladder.htm","#",,1

addmenu(menu=[
"TestPages",		// 1)
,					// 2)
,					// 3)
200,				// 4)
1,					// 5)
,					// 6)
SubMenuStyle,			// 7)
0,					// 8)
,					// 9)
"",					// 10)
0,					// 11)
0,					// 12)
0,					// 13) 
,					// 14)
,					// 15)
0,					// 16)
0,					// 17)
,					// 18)
,					// 19)
0,					// 21)
,					// 22)
,"Cookie Page 1" ,"display-webpage=Cookie.htm","#",,0
,"Cookie Page 3" ,"display-webpage=Test_Pages/Fixtures/Cookie3.htm","#",,0
,"--------------" ,"","#",,0
,"Scrolling Page" ,"display-webpage=Test_Pages/JSScrollTest.htm","#",,0
,"--------------" ,"","#",,0
,"League Table Template" ,"display-webpage=Templates/Results/League_Table.htm","#",,0
,"League Fixtures Template" ,"display-webpage=Templates/Fixtures/League_Fixtures.htm","#",,0
,"League Fixtures (Summer Eight) Template" ,"display-webpage=Templates/Fixtures/League_Fixtures_Summer Eight Teams.htm","#",,0
,"Knock Out Template" ,"display-webpage=Templates/Competitions/KnockOutComp.htm","#",,0
,"Team Template" ,"display-webpage=Templates/Teams/Team.htm","#",,0
,"Help Page" ,"display-webpage=Generic_Pages/Help_Page.htm","#",,0
])

addmenu(menu=[
"Leagues",			// 1)
,					// 2)
,					// 3)
200,				// 4)
1,					// 5)
,					// 6)
SubMenuStyle,		// 7)
0,					// 8)
,					// 9)
"",					// 10)
0,					// 11)
0,					// 12)
0,					// 13) 
,					// 14)
,					// 15)
0,					// 16)
0,					// 17)
,					// 18)
,					// 19)
0,					// 21)
,					// 22)
,"Tunmore Leisure" ,"Leisure-Link_Index.htm",,,0
,"Singles League" ,"Singles-League_Index.htm",,,0
,"Norwich Pool Tour" ,"display-webpage-newwindow=http://www.norwichpooltour.org.uk","#",,0
,"Other Leagues" ,"display-webpage=Norwich-Pool/NorwichLeagues.htm","#",,0
])

addmenu(menu=[
"admin",			// 1)
,					// 2)
,					// 3)
200,				// 4)
1,					// 5)
,					// 6)
SubMenuStyle,		// 7)
0,					// 8)
,					// 9)
"",					// 10)
0,					// 11)
0,					// 12)
0,					// 13) 
,					// 14)
,					// 15)
0,					// 16)
0,					// 17)
,					// 18)
,					// 19)
0,					// 21)
,					// 22)
,"Contact Us" , "display-webpage=Norwich-Pool/ContactUs.htm","#",,0
,"About Us"   , "display-webpage=Norwich-Pool/AboutUs.htm","#",,0
])

addmenu(menu=[
"SinglesLeagueMenu",// 1)
,					// 2)
,					// 3)
150,				// 4)
1,					// 5)
,					// 6)
SubMenuStyle,		// 7)
0,					// 8)
,					// 9)
"",					// 10)
0,					// 11)
0,					// 12)
0,					// 13) 
,					// 14)
,					// 15)
0,					// 16)
0,					// 17)
,					// 18)
,					// 19)
0,					// 21)
,					// 22)
,"About" ,			"display-webpage=Norwich-Pool/SinglesLeague/SinglesLeague.htm","#",,0
,"Knock-Out",		"show-menu=SinglesLeagueKOMatchessMenu","#",,0
,"Rules" ,			"display-webpage=Norwich-Pool/SinglesLeague/SinglesLeague_Rules.htm","#",,0
,"Archives" ,		"display-webpage=Norwich-Pool/Archives_SinglesLeague/Archives.htm","#",,0
])

// ,"Matches",			"show-menu=SinglesLeagueMatchesMenu","#",,0
// ,"League Tables",	"show-menu=SinglesLeagueResultsMenu","#",,0
// ,"Clearances",		"display-webpage=Norwich-Pool/SinglesLeague/Clearances.htm","#",,0
// ,"Venues" ,			"display-webpage=Norwich-Pool/SinglesLeague/SinglesLeague_Venues.htm","#",,0

addmenu(menu=[
"SinglesLeagueMatchesMenu", // 1)
,							// 2)
,							// 3)
200,						// 4)
1,							// 5)
,							// 6)
SubMenuStyle,				// 7)
0,							// 8)
,							// 9)
"",							// 10)
0,							// 11)
0,							// 12)
0,							// 13) 
,							// 14)
,							// 15)
0,							// 16)
0,							// 17)
,							// 18)
,							// 19)
0,							// 21)
,							// 22)
,"Premier Division" , "display-webpage=Norwich-Pool/SinglesLeague/Fixtures_Div_Premier.htm","#",,0
,"Division 1"		, "display-webpage=Norwich-Pool/SinglesLeague/Fixtures_Div_1.htm","#",,0
,"Division 2"		, "display-webpage=Norwich-Pool/SinglesLeague/Fixtures_Div_2.htm","#",,0
,"Division 3"		, "display-webpage=Norwich-Pool/SinglesLeague/Fixtures_Div_3.htm","#",,0
])

addmenu(menu=[
"SinglesLeagueResultsMenu", // 1)
,							// 2)
,							// 3)
200,						// 4)
1,							// 5)
,							// 6)
SubMenuStyle,				// 7)
0,							// 8)
,							// 9)
"",							// 10)
0,							// 11)
0,							// 12)
0,							// 13) 
,							// 14)
,							// 15)
0,							// 16)
0,							// 17)
,							// 18)
,							// 19)
0,							// 21)
,							// 22)
,"Premier Division" , "display-webpage=Norwich-Pool/SinglesLeague/Results_Div_Premier.htm","#",,0
,"Division 1"		, "display-webpage=Norwich-Pool/SinglesLeague/Results_Div_1.htm","#",,0
,"Division 2"		, "display-webpage=Norwich-Pool/SinglesLeague/Results_Div_2.htm","#",,0
,"Division 3"		, "display-webpage=Norwich-Pool/SinglesLeague/Results_Div_3.htm","#",,0
])

addmenu(menu=[
"SinglesLeagueKOMatchessMenu",// 1)
,							// 2)
,							// 3)
200,						// 4)
1,							// 5)
,							// 6)
SubMenuStyle,				// 7)
0,							// 8)
,							// 9)
"",							// 10)
0,							// 11)
0,							// 12)
0,							// 13) 
,							// 14)
,							// 15)
0,							// 16)
0,							// 17)
,							// 18)
,							// 19)
0,							// 21)
,							// 22)
,"2006/2007 Knock-Out",		"display-webpage=Norwich-Pool/SinglesLeague/Singles_League_KO_2006.htm","#",,0
,"2006/2007 £5 AGM Flyer",	"display-webpage=Norwich-Pool/SinglesLeague/Singles_League_AGM_2007_Flyer.htm","#",,0
])

dumpmenus();
	
