// 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"]
	"20",	// 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"]
	"12pt",		// 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["info"] = ''
+ '<ul  class="orangeMenu" style="width:10em">'
	+ '<li class="orangeMenuItem"><a href="info_course1.php">course info</a>'
		+ '<ul style="width:12em">'
			+ '<li><a href="info_course1.php">Course Map        </a></li>'
			+ '<li><a href="info_course5.php">Course Length     </a></li>'
			+ '<li><a href="info_course2.php">Route Instructions</a></li>'
			+ '<li><a href="info_course3.php">Start             </a></li>'
			+ '<li><a href="info_course4.php">Finish            </a></li>'
		+ '</ul>'
	+ '</li>'
	+ '<li class="orangeMenuItem"><a href="info_raceday1.php">race day</a>'
		+ '<ul style="width:12em">'
			+ '<li><a href="info_raceday1.php" >Race Numbers      </a></li>'
			+ '<li><a href="info_raceday2.php" >Entertainment     </a></li>'
			+ '<li><a href="info_raceday3.php" >Presentations     </a></li>'
			+ '<li><a href="info_raceday4.php" >Refreshments      </a></li>'
			+ '<li><a href="info_raceday5.php" >Baggage           </a></li>'
			+ '<li><a href="info_raceday6.php" >Toilets           </a></li>'
			+ '<li><a href="info_raceday7.php" >Massage / First Aid</a></li>'
			+ '<li><a href="info_raceday8.php" >Transport         </a></li>'
			+ '<li><a href="info_raceday10.php">Road Closures     </a></li>'
		+ '</ul>'
	+ '</li>'
	+ '<li class="orangeMenuItem"><a href="info_event1.php">event info</a>'
		+ '<ul style="width:12em">'
			+ '<li><a href="info_event12.php" >Race Date </a></li>'
			+ '<li><a href="info_event0.php" >Sub 60min 12km Runners</a></li>'
			+ '<li><a href="info_event1.php" >Walker or Runner    	</a></li>'
			+ '<li><a href="info_event13.php" >Racing Wheelchair Athletes</a></li>'
			+ '<li><a href="info_event2.php" >Merchandise     	    </a></li>'
			+ '<li><a href="info_event3.php" >Fancy Dress       	</a></li>'
			+ '<li><a href="info_event4.php" >Entry Fees        	</a></li>'
			+ '<li><a href="info_event5.php" >How To Enter          </a></li>'
			+ '<li><a href="info_event6.php" >Registration Deadlines</a></li>'
			+ '<li><a href="info_event7.php" >Office Hours      	</a></li>'
			+ '<li><a href="info_event8.php" >Prizes         	    </a></li>'
			+ '<li><a href="info_event9.php" >Team Awards    	    </a></li>'
			+ '<li><a href="info_event10.php">Indemnity Form   	    </a></li>'
			+ '<li><a href="info_event11.php">Race Results          </a></li>'
		+ '</ul>'
	+ '<li class="orangeMenuItem"><a href="info_schools1.php">School Groups</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">Workshops</a></li>'
	+ '<li class="orangeMenuItem"><a href="training2.php">Training Guide</a></li>'
	+ '<li class="orangeMenuItem"><a href="training3.php">Promotional Health Training Tips</a></li>'
//	+ '<li class="orangeMenuItem"><a href="stp1.php">Schools Training Program</a>'
//		+ '<ul style="width:12em">'
//			+ '<li><a href="stp1.php" >Teacher Info    	 </a></li>'
//			+ '<li><a href="stp2.php" >Student Info	     </a></li>'
//			+ '<li><a href="stp3.php" >Parent Info       </a></li>'
//			+ '<li><a href="stp4.php" >Training & Warmup </a></li>'
//			+ '<li><a href="stp5.php" >Nutrition         </a></li>'
//			+ '<li><a href="stp6.php" >Other Info 	     </a></li>'
//
//		+ '</ul>'
//	+ '</li>'
+ '</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.php">2009 Age Group Counts and Avg Times </a></li>'
	+ '<li class="orangeMenuItem"><a href="pastwinners.php">past winners</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>';



