// UDMv4.4 //
/***************************************************************/
var um={'menuClasses':[],'itemClasses':[],'menuCode':[]};
/***************************************************************\

  ULTIMATE DROP DOWN MENU Version 4.4 by Brothercake
  http://www.udm4.com/

  This script may not be used or distributed without license

\***************************************************************/


/***************************************************************\
 * CORE CONFIGURATION
\***************************************************************/


//path to images folder
um.baseSRC = "udm-resources/";


//navbar orientation
um.orientation = [
	"horizontal",	// alignment ["vertical"|"horizontal"|"popup"|"expanding"]
	"left",		// h align ["left"|"right"|"rtl"]
	"top",		// v align ["top"|"bottom"]
	"relative",	// positioning ["relative"|"absolute"|"fixed"|"allfixed"]
	"0",	// x position ["em"|"ex"|"px"|"0"]
	"0",	// y position ["em"|"ex"|"px"|"0"]
	"1000",		// z order ["0" to "10000"] (menu takes 20000 headroom)
	];


//navbar list output
um.list = [
	"flexible",	// horizontal overflow ["rigid"|"flexible"]
	"yes",		// -SPARE-
	"no", 		// -SPARE-
	];


//menu behaviors
um.behaviors = [
	"200",		// open timer ["milliseconds"|"0"]
	"500",		// close timer ["milliseconds"|"never"|"0"]
	"yes",		// reposition menus to stay inside the viewport ["yes"|"no"]
	"default",	// manage windowed controls for win/ie ["default","hide","iframe","none"]
	];


//reset behaviors
um.reset = [
	"yes",		// reset from document mouse click ["yes"|"no"]
	"yes",		// reset from window resize ["yes"|"no"]
	"yes",		// reset from text resize ["yes"|"no"]
	"no",		// reset after following link ["yes"|"no"]
	];


//horizontal continuation strip
um.hstrip = [
	"none",		// background ["color"|"#hex"|"rgb()"|"image.gif"|"none"]
	"yes",		// copy item margin-right to margin-bottom ["yes"|"no"]
	];


/***************************************************************\
 * MODULE SETTINGS
\***************************************************************/


//keyboard navigation
um.keys = [
	"38",		// up ["n"] ("38" = up arrow key)
	"39",		// right ["n"] ("39" = right arrow key)
	"40",		// down ["n"] ("40" = down arrow key)
	"37",		// left ["n"] ("37" = left arrow key)
	"123",		// hotkey ["n"] ("123" = F12)
	"none",		// hotkey modifier ["none"|"shiftKey"|"ctrlKey"|"altKey"|"metaKey"]
	"27",		// escape ["n"|"none"] ("27" = escape key)
	"document.getElementsByTagName('a')[4]", // exit focus ["js-expression"]
	];


/***************************************************************\
 * NAVBAR DEFAULT STYLES
\***************************************************************/


//styles which apply to the navbar
um.navbar = [
	"0",		// nav to menu x-offset (+-)["n" pixels]
	"3",		// nav to menu y-offset (+-)["n" pixels]
	"8em",	// width ["em"|"ex"|"px"] (vertical navbar only - horizontal navbar items have "auto" width) ("%" doesn't work right)
	];


//styles which apply to each navbar item 447ebc
um.items = [
	"1",		// margin between items ["n" pixels]
	"0",		// border size ["n" pixels] (single value only)
	"collapse",	// border collapse ["collapse"|"separate"] (only applies when margin = "0")
	"#7bb53a #7bb53a #7bb53a #f7e899",// border colors ["color"|"#hex"|"rgb()"] (single, double or four values)
	"solid solid solid solid",	// border styles ["solid"|"double"|"dotted"|"dashed"|"groove"|"ridge"|"inset"|"outset"] (single, double or four values; be careful with using "none")
	"#447ebc #447ebc #447ebc #447ebc",// hover/focus border colors ["color"|"#hex"|"rgb()"] (single, double or four values)
	"solid solid solid solid",	// hover/focus border styles ["solid"|"double"|"dotted"|"dashed"|"groove"|"ridge"|"inset"|"outset"] (single, double or four values; be careful with using "none")
	"#447ebc #447ebc #447ebc #447ebc",// visited border colors ["color"|"#hex"|"rgb()"] (single, double or four values)
	"solid solid solid solid",// visited border styles ["solid"|"double"|"dotted"|"dashed"|"groove"|"ridge"|"inset"|"outset"] (single, double or four values; be careful with using "none")
	"6",		// left/right padding ["n" pixels] (single value only)
	"3",		// top/bottom padding ["n" pixels] (single value only)
	"#447ebc",  // background ["color"|"#hex"|"rgb()"|"image.gif"]
	"#7bb53a",  // hover/focus background ["color"|"#hex"|"rgb()"|"image.gif"]
	"#447ebc",  // visited background ["color"|"#hex"|"rgb()"|"image.gif"]
	"10pt",		// font size ["em"|"ex"|"%"|"px"|"pt"|"absolute-size"|"relative-size"]
	"Arial",// font family ["font1,font2,font3"] (always end with a generic family name)
	"normal",		// font weight ["normal"|"bold"|"bolder"|"lighter|"100" to "900"]
	"none",		// text decoration ["none"|"underline"|"overline"|"line-through"]
	"center",		// text-align ["left"|"right"|"center"]
	"#FFFFFF",	// color ["color"|"#hex"|"rgb()"]
	"#000000",	// hover/focus color ["color"|"#hex"|"rgb()"]
	"#FFFFFF",	// visited color ["color"|"#hex"|"rgb()"]
	"normal",	// font-style ["normal"|"italic"|"oblique"]
	"normal",	// hover/focus font-style ["normal"|"italic"|"oblique"]
	"normal",	// visited font-style ["normal"|"italic"|"oblique"]
	"background-color:#447ebc;letter-spacing:1px !important;",// additional link CSS (careful!)
	"background-color:#7bb53a;",// additional hover/focus CSS (careful!)
	"background-color:#447ebc;",// additional visited CSS (careful!)
	"down-red.gif",// menu indicator character/image ["text"|"image.gif"|"none"]
	"down-yellow.gif",// menu indicator rollover image ["image.gif"|"none"] (only when using image arrows)
	"7",		// clipping width of indicator image ["n" pixels] (only when using image arrows)
	"..",		// alt text of indicator image ["text"] (only when using image arrows)
	];


/***************************************************************\
 * MENU DEFAULT STYLES
\***************************************************************/


//styles which apply to each menu
um.menus = [
	"-7",		// menu to menu x-offset (+-)["n" pixels]
	"0",	// menu to menu y-offset (+-)["n" pixels]
	"1",		// border size ["n" pixels] (single value only)
	"#000000 #000000 #000000 #000000",// border colors ["color"|"#hex"|"rgb()"] (single, double or four values)
	"solid",	// border styles ["solid"|"double"|"dotted"|"dashed"|"groove"|"ridge"|"inset"|"outset"] (single, double or four values; be careful with using "none")
	"9.8em",	// width ["em"|"ex"|"px"]
	"2",		// padding ["n" pixels] (single value only)
	"#7bb53a",	// background ["color"|"#hex"|"rgb()"|"image.gif"]
	"",		// additional menu CSS (careful!) (you can use a transition here but *not* a static filter)
	"orangheshadow.png",// shadow background ["color"|"#hex"|"rgb()"|"image.gif"|"none"]
	"2px",		// shadow offset (+-)["em"|"ex"|"px"|"%"|"0"]
	"filter:alpha(opacity=50);",// additional shadow layer CSS (if you use a Microsoft.Shadow filter here then Win/IE5.5+ will do that *instead* of default shadow)
	];


//styles which apply to each menu item
um.menuItems = [
	"0",		// margin around items ["n" pixels] (single value only; margins are like table cellspacing)
	"1",		// border size ["n" pixels] (single value only)
	"separate",	// border collapse ["collapse"|"separate"] (only applies when margin = "0")
	"#7bb53a",	// border colors ["color"|"#hex"|"rgb()"] (single, double or four values)
	"solid",	// border styles ["solid"|"double"|"dotted"|"dashed"|"groove"|"ridge"|"inset"|"outset"] (single, double or four values; be careful with using "none")
	"#aca",		// hover/focus border colors ["color"|"#hex"|"rgb()"] (single, double or four values)
	"solid",	// hover/focus border styles ["solid"|"double"|"dotted"|"dashed"|"groove"|"ridge"|"inset"|"outset"] (single, double or four values; be careful with using "none")
	"#7bb53a",	// visited border colors ["color"|"#hex"|"rgb()"] (single, double or four values)
	"solid",	// visited border styles ["solid"|"double"|"dotted"|"dashed"|"groove"|"ridge"|"inset"|"outset"] (single, double or four values; be careful with using "none")
	"5",		// left/right padding ["n" pixels] (single value only)
	"2",		// top/bottom padding ["n" pixels] (single value only)
	"transparent",	// background ["color"|"#hex"|"rgb()"|"image.gif"]
	"#cc6600",	// hover/focus background ["color"|"#hex"|"rgb()"|"image.gif"]
	"transparent",	// visited background ["color"|"#hex"|"rgb()"|"image.gif"]
	"10",		// font size ["em"|"ex"|"%"|"px"|"pt"|"absolute-size"|"relative-size"]
	"Arial",// font family ["font1,font2,font3"] (always end with a generic family name)
	"normal",	// font weight ["normal"|"bold"|"bolder"|"lighter|"100" to "900"]
	"none",		// text decoration ["none"|"underline"|"overline"|"line-through"]
	"center",		// text-align ["left"|"right"|"center"]
	"#ffffff",		// color ["color"|"#hex"|"rgb()"]
	"#ffffff",		// hover/focus color ["color"|"#hex"|"rgb()"]
	"#ffffff",		// visited color ["color"|"#hex"|"rgb()"]
	"normal",	// font-style ["normal"|"italic"|"oblique"]
	"normal",	// hover/focus font-style ["normal"|"italic"|"oblique"]
	"normal",	// visited font-style ["normal"|"italic"|"oblique"]
	"",		// additional link CSS (careful!)
	"",		// additional hover/focus CSS (careful!)
	"",		// additional visited CSS (careful!)
	"right-green.gif",// submenu indicator character/image ["text"|"image.gif"|"none"]
	"right-black.gif",// submenu indicator rollover image ["image.gif"|"none"] (only when using image arrows)
	"3",		// clipping width of indicator image ["n" pixels] (only when using image arrows)
	"..",		// alt text of indicator image ["text"] (only when using image arrows)
	];




//classes which apply to menus
um.menuClasses["orangeMenu"] = [
	"#7bb53a #7bb53a #7bb53a #7bb53a",// border colors ["color"|"#hex"|"rgb()"]
	"solid",	// border styles ["solid"|"double"|"dotted"|"dashed"|"groove"|"ridge"|"inset"|"outset"] (single, double or four values; be careful with using "none")
	"8em",		// width ["em"|"ex"|"px"]
	"#7bb53a",		// background ["color"|"#hex"|"rgb()"|"image.gif"]
	"",// additional menu CSS (careful!) (you can use a transition here but *not* a static filter)
	"orangeshadow.png",// shadow background ["color"|"#hex"|"rgb()"|"image.gif"|"none"]
	"2px",		// shadow offset (+-)["em"|"ex"|"px"|"%"|"0"]
	"filter:alpha(opacity=50);", // additional shadow layer CSS (if you use a Microsoft.Shadow filter here then Win/IE5.5+ will do that *instead* of default shadow)
	];


//classes which apply to menu items
um.itemClasses["orangeMenuItem"] = [
	"#7bb53a",		// border colors ["color"|"#hex"|"rgb()"] (single, double or four values)
	"solid",	// border styles ["solid"|"double"|"dotted"|"dashed"|"groove"|"ridge"|"inset"|"outset"] (single, double or four values; be careful with using "none")
	"#7bb53a",	// hover/focus border colors ["color"|"#hex"|"rgb()"] (single, double or four values)
	"solid",	// hover/focus border styles ["solid"|"double"|"dotted"|"dashed"|"groove"|"ridge"|"inset"|"outset"] (single, double or four values; be careful with using "none")
	"#7bb53a",		// visited border colors ["color"|"#hex"|"rgb()"] (single, double or four values)
	"solid",	// visited border styles ["solid"|"double"|"dotted"|"dashed"|"groove"|"ridge"|"inset"|"outset"] (single, double or four values; be careful with using "none")
	"#7bb53a",		// background ["color"|"#hex"|"rgb()"|"image.gif"]
	"#447ebc",	// hover/focus background ["color"|"#hex"|"rgb()"|"image.gif"]
	"#7bb53a",		// visited background ["color"|"#hex"|"rgb()"|"image.gif"]
	"70%",		// font size ["em"|"ex"|"%"|"px"|"pt"|"absolute-size"|"relative-size"]
	"Arial",// font family ["font1,font2,font3"] (always end with a generic family name)
	"normal",	// font weight ["normal"|"bold"|"bolder"|"lighter|"100" to "900"]
	"none",		// text decoration ["none"|"underline"|"overline"|"line-through"]
	"left",		// text-align ["left"|"right"|"center"]
	"#000000",	// color ["color"|"#hex"|"rgb()"]
	"#ffffff",	// hover/focus color ["color"|"#hex"|"rgb()"]
	"#000000",	// visited color ["color"|"#hex"|"rgb()"]
	"normal",	// font-style ["normal"|"italic"|"oblique"]
	"normal",	// hover/focus font-style ["normal"|"italic"|"oblique"]
	"normal",	// visited font-style ["normal"|"italic"|"oblique"]
	"",		// additional link CSS (careful!)
	"",		// additional hover/focus CSS (careful!)
	"",		// additional visited CSS (careful!)
	"right-red.gif",// submenu indicator character/image ["text"|"image.gif"|"none"] (must be the same type as default submenu indicator)
	"right-red.gif",// submenu indicator rollover image ["image.gif"|"none"] (only when using image arrows)
	"..",		// alt text of indicator image  ["text"] (only when using image arrow)
	];

um.menuCode["info1"] = ''
+ '<ul  class="orangeMenu" style="width:10em">'
	+ '<li class="orangeMenuItem"><a href="12km_inst.php">Sunday Mail 12km Run or Walk</a>'
		+ '<ul style="width:12em">'
			+ '<li><a href="12km_inst.php">12km Instructions </a></li>'
			+ '<li><a href="12km_start.php">Start    </a></li>'
			+ '<li><a href="12km_finish.php">Finish   </a></li>'
			+ '<li><a href="12km_toilet.php">Toilets  </a></li>'
		+ '</ul>'
	+ '</li>'
	+ '<li class="orangeMenuItem"><a href="6km_inst.php">The Advertiser 6km Run or Walk</a>'
		+ '<ul style="width:12em">'
			+ '<li><a href="6km_inst.php">6km Instructions </a></li>'
			+ '<li><a href="6km_start.php">Start    </a></li>'
			+ '<li><a href="6km_finish.php">Finish   </a></li>'
			+ '<li><a href="6km_toilet.php">Toilets  </a></li>'
		+ '</ul>'
	+ '</li>'
	+ '<li class="orangeMenuItem"><a href="3km_inst.php">The Chill 3km Run/Walk</a>'
		+ '<ul style="width:12em">'
			+ '<li><a href="3km_inst.php">3km Instructions </a></li>'
			+ '<li><a href="3km_start.php">Start     </a></li>'
			+ '<li><a href="3km_finish.php">Finish   </a></li>'
			+ '<li><a href="3km_toilet.php">Toilets  </a></li>'
			+ '<li><a href="3km_parking.php">Parking </a></li>'
		+ '</ul>'
	+ '</li>'
	+ '<li class="orangeMenuItem"><a href="wheelchair.php">Racing Wheelchair Athletes</a></li>'
	+ '<li class="orangeMenuItem"><a href="sub60.php">Sub 60min 12K Runners</a></li>'
	+ '<li class="orangeMenuItem"><a href="walk_run.php">Are you a Walker or a Runner</a></li>'
	+ '<li class="orangeMenuItem"><a href="course.php">Course Map</a></li>'
	+ '<li class="orangeMenuItem"><a href="entry_fees.php">Entry Fees</a></li>'
	+ '<li class="orangeMenuItem"><a href="team_members.php">Team Competitor Lists</a></li>'
	+ '<li class="orangeMenuItem"><a href="comp_members.php">Company Competitor Lists</a></li>'
	+ '</ul>';

um.menuCode["info2"] = ''
+ '<ul  class="orangeMenu" style="width:10em">'
	+ '<li class="orangeMenuItem"><a href="indemnity.php">Indemnity Form</a></li>'
	+ '<li class="orangeMenuItem"><a href="how_to_enter.php">How to Enter</a></li>'
	+ '<li class="orangeMenuItem"><a href="race_no.php">Race Nos / Timing System</a></li>'
	+ '<li class="orangeMenuItem"><a href="transport.php">Race Day Transport</a></li>'
	+ '<li class="orangeMenuItem"><a href="parking.php">Parking</a></li>'
	+ '<li class="orangeMenuItem"><a href="road_closures.php">Road Closures</a></li>'
	+ '<li class="orangeMenuItem"><a href="baggage.php">Baggage</a></li>'
	+ '<li class="orangeMenuItem"><a href="firstaid.php">First Aid</a></li>'
	+ '<li class="orangeMenuItem"><a href="refreshments.php">Refreshments</a></li>'
	+ '<li class="orangeMenuItem"><a href="team.php">Team Information</a></li>'
	+ '<li class="orangeMenuItem"><a href="schools.php">Schools Information</a></li>'
	+ '</ul>';

um.menuCode["village"] = ''
+ '<ul  class="orangeMenu" style="width:10em">'
	+ '<li class="orangeMenuItem"><a href=village.php>village site registrations</a></li>'
	+ '<li class="orangeMenuItem"><a href=entertainment.php>entertainment</a></li>'
	+ '<li class="orangeMenuItem"><a href=presentations.php>presentations</a></li>'
	+ '<li class="orangeMenuItem"><a href=massage.php>massage</a></li>'
	+ '<li class="orangeMenuItem"><a href=fancy_dress.php>fancy dress</a></li>'
	+ '<li class="orangeMenuItem"><a href=prizes.php>prizes</a></li>'
	+ '<li class="orangeMenuItem"><a href=team_awards.php>team awards</a></li>'
	+ '</ul>';

um.menuCode["about"] = ''
+ '<ul  class="orangeMenu" style="width:10em">'
	+ '<li class="orangeMenuItem"><a href="about1.php">history    </a></li>'
	+ '<li class="orangeMenuItem"><a href="about2.php">sponsors   </a></li>'
	+ '<li class="orangeMenuItem"><a href="about3.php">newsletters</a></li>'
	+ '<li class="orangeMenuItem"><a href="about4.php">advertising material</a></li>'
	+ '<li class="orangeMenuItem"><a href="about5.php">expo sites </a></li>'
	+ '<li class="orangeMenuItem"><a href="about6.php">about us </a></li>'
	+ '<li class="orangeMenuItem"><a href="about7.php">photos</a></li>'
	+ '<li class="orangeMenuItem"><a href="contact.php">contact us </a></li>'
+ '</ul>';

um.menuCode["training"] = ''
+ '<ul  class="orangeMenu" style="width:14em">'
	+ '<li class="orangeMenuItem"><a href="training1.php">Runners</a></li>'
	+ '<li class="orangeMenuItem"><a href="training2.php">Walkers</a></li>'
	+ '<li class="orangeMenuItem"><a href="training5.php">Workshops</a></li>'
	+ '<li class="orangeMenuItem"><a href="training4.php">Health Tips</a>'
+ '</ul>';

um.menuCode["results"] = ''
+ '<ul  class="orangeMenu" style="width:11em">'
	+ '<li class="orangeMenuItem"><a href="results.php">results list   </a></li>'
	+ '<li class="orangeMenuItem"><a href="summary.php">runner history  </a></li>'
	+ '<li class="orangeMenuItem"><a href="age_avg_2011.php">2011 Age Group Counts and Avg Times </a></li>'
	+ '<li class="orangeMenuItem"><a href="age_avg_2010.php">2010 Age Group Counts and Avg Times </a></li>'
	+ '<li class="orangeMenuItem"><a href="age_avg.php">2009 Age Group Counts and Avg Times </a></li>'
	+ '<li class="orangeMenuItem"><a href="pastwinners.php">past winners</a></li>'
	+ '<li class="orangeMenuItem"><a href="cert_select.php">2011 certificate print</a></li>'+ '</ul>';

um.menuCode["faq"] = ''
+ '<ul  class="orangeMenu" style="width:11em">'
	+ '<li class="orangeMenuItem"><a href="faq1.php">FAQ   </a></li>'
	+ '<li class="orangeMenuItem"><a href="faq2.php">Team Co-ordinator Info </a></li>'
+ '</ul>';




