////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//	*************************************************************************************************************
//	*									*
//	*	MAKE CORRESPONDING CHANGES TO MENU_ITEMS.JS		*
//	*	           IN HTDOCS FOR SITE ENTRY: INDEX.HTML &			*
//	*		IN SECURE FOR LOGINREM.PHP							*
//	*									*
//	*	##########################################		*
//	*									*
//	*************************************************************************************************************
//
//////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// This script will highlight the navigation bar to show the current position within the website.
// It also sets a downward marker (HIGHLIGHTED_SUFFIX) in the navigation field to indicate that sub levels exist.
// The current page is highlighted and marked (HIGHLIGHTED_PREFIX) and any upper levels are highlighted.
// The structure and position of the navigation bar is defined in MENU_ITEMS below.
//
//	***** Make corresponding changes to htdocs/menu_items & secure/menu_items *****
// 	#########################################################

BLANK_IMAGE = 'images/b.gif';

var code="code";var url="url";var sub="sub";

var MAIN_STYLE = {
	border:1,			// item's border width, pixels; zero means "none"
	shadow:0,			// item's shadow size, pixels; zero means "none"
	color:{
		border:"white",	// color of the item border, if any
		shadow:"#DBD8D1",	// color of the item shadow, if any
		bgON:"#336600",		// background color for the items
		bgOVER:"green"	// background color for the item which is under mouse right now
	},
	css:{
		ON:"clsCMOn",
		OVER:"clsCMOverColored"
	}
};

var MENU_ITEMS =
[
	{"pos":"relative", "style":MAIN_STYLE, "leveloff":[0,0], "size":[22,100], "itemoff":[22,0], delay:1000},
	{code:"Home", url:"home.htm", format: {"size":[22,100]}},
	{code:"About Us", url:"aboutus.htm", format: {arrow:"images/arrright.gif", arrsize:[7,10]},
		sub:[
			{"leveloff":[0,100], "itemoff":[0,100]},
			{code:"Introduction", url:"aboutus.htm"},
			{code:"Committee", url:"committee.htm"},
			{code:"Pro Tour Member", url:"protour.htm", format: {"size":[22,130], arrow:"images/arrdown.gif", arrsize:[14,10]},
			sub:[
				{"itemoff":[22,0], "leveloff":[22,0]},
				{code:"Introduction", url:"protour.htm"},
				{code:"Tom Reid", url:"tomreid.htm"}
				]
			},
			{code:"Contacts", url:"contacts.htm", format: {"itemoff": [0,130]}}
		]
	},
	{code:"History", url:"history/intro.htm"},
		
	{code:"Visitors", url:"visitors.htm", format: {arrow:"images/arrright.gif", arrsize:[7,10]},
		sub:[
			{"leveloff":[0,100], "itemoff":[0,100]},
			{code:"Introduction", url:"visitors.htm"},
			{code:"Dress Code", url:"dresscode.htm"},
			{code:"Green Fees", url:"greenfees.htm"},
			{code:"Societies", url:"societies.htm", format: {arrow:"images/arrdown.gif", arrsize:[14,10]},
			sub:[
				{"itemoff":[22,0], "leveloff":[22,0]},
				{code:"Introduction", url:"societies.htm"},
				{code:"Bookings", url:"socbook.htm"},
				{code:"Terms", url:"socterms.htm"},
				{code:"Pro Services", url:"proservs.htm"},
				{code:"Packages", url:"packages.htm"}
				]
			},
			{code:"Location", url:"location.htm"}
		]
	},
	{code:"The Course", url:"course.htm", format: {arrow:"images/arrright.gif", arrsize:[7,10]},
	sub:[
			{"leveloff":[0,100], "itemoff":[0,100]},
			{code:"Overview", url:"course.htm"},
			{code:"Fixtures", url:"fixtures.htm", format: {arrow:"images/arrdown.gif", arrsize:[14,10]},
			sub:[
				{"itemoff":[22,0], "leveloff":[22,0]},
				{code:"January", url:"jan.pdf", target:"_blank"},
				{code:"February", url:"feb.pdf", target:"_blank"},
				{code:"March", url:"mar.pdf", target:"_blank"},
				{code:"April", url:"apr.pdf", target:"_blank"},
				{code:"May", url:"may.pdf", target:"_blank"},
				{code:"June", url:"jun.pdf", target:"_blank"},
				{code:"July", url:"jul.pdf", target:"_blank", format: {"itemoff":[-88,100]}},
				{code:"August", url:"aug.pdf", target:"_blank"},
				{code:"September", url:"sep.pdf", target:"_blank"},
				{code:"October", url:"oct.pdf", target:"_blank"},
				{code:"November", url:"nov.pdf", target:"_blank"},
				{code:"December", url:"dec.pdf", target:"_blank"}
				]
			},
			{code:"Course Tour", url:"tour.htm"},
			{code:"The Card", url:"card.htm", format: {arrow:"images/arrdown.gif", arrsize:[14,10]},
			sub:[
				{"itemoff":[22,0], "leveloff":[22,0]},
				{code:"Yardages", url:"card.htm"},
				{code:"Local Rules", url:"locrules.htm"}
				]
			}
			
		]
	},
	{code:"Professional", url:"professnl.htm", format: {arrow:"images/arrright.gif", arrsize:[7,10]},
	sub:[
		{"leveloff":[0,100], "itemoff":[0,100]},
		{code:"Welcome", url:"professnl.htm"},
		{code:"Background", url:"probckgnd.htm"},
		{code:"Services", url:"prosrvcs.htm"},
		{code:"Pro Shop", url:"proshop.htm"}
		]
	},
	{code:"Membership", url:"memship.htm", format: {arrow:"images/arrright.gif", arrsize:[7,10]},
	sub:[
			{"leveloff":[0,100], "itemoff":[0,100]},
			{code:"Introduction", url:"memship.htm"},
			{code:"Full Details", url:"memship.pdf", target:"_blank"},
			{code:"Temporary Membership", url:"tempmemb.pdf", target:"_blank", format: {"size":[22,150]}},
			{code:"Enquiry Form", url:"memshpapp.htm", format: {"itemoff": [0,150]}}
		]
	},
	{code:"Members Only", url:"members.htm", format: {arrow:"images/arrright.gif", arrsize:[7,10]},
	sub:[
			{"leveloff":[0,100], "itemoff":[0,100]},
			{code:"Overview", url:"members.htm"},
			{code:"Registration", url:"memreg.htm"},
			{code:"Members' Area", url:"../protect/mementry.php"}
		]
	},
	{code:"Contact Us", url:"contactus.htm", format: {"itemoff":[22,0], "size":[22,100]}},
	{code:"Links", url:"links.htm", format: {"itemoff":[22,0], "size":[22,100]}},
	{code:"Help", url:"help.htm", format: {"itemoff":[22,0], "size":[22,100]}},
	{code:"Site Map", url:"sitemap.htm", format: {"itemoff":[22,0], "size":[22,100]}}
];