var um={'menuClasses':[],'itemClasses':[],'menuCode':[]};

//path to images folder 
um.baseSRC = "/udm-resources/";


//navbar orientation
um.orientation = [
	"vertical",	// alignment ["vertical"|"horizontal"|"popup"|"expanding"]
	"left",		// h align ["left"|"right"]
	"top",		// v align ["top"|"bottom"]
	"absolute",	// positioning ["relative"|"absolute"|"fixed"|"allfixed"]
	"0px",	// x position ["em"|"ex"|"px"|"0"]
	"115px",	// 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"]
	"yes",		// reset after following link ["yes"|"no"]
	];

//horizontal continuation strip
um.hstrip = [
	"none",		// background ["color"|"#hex"|"rgb()"|"image.gif"|"none"]
	"yes",		// copy navbar item margin-right to margin-bottom ["yes"|"no"]
	];
	
///////////////////////////////////////////////////////////////////
// MODULE SETTINGS                                               //
///////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////
// NAVBAR DEFAULT STYLES                                         //
///////////////////////////////////////////////////////////////////


//styles which apply to the navbar
um.navbar = [
	"-3",		// nav -> menu x-offset (+-)["n" pixels]
	"-5",		// nav -> menu y-offset (+-)["n" pixels]
	"160px",	// width ["em"|"ex"|"px"] (vertical navbar only - horizontal navbar items have "auto" width) ("%" doesn't work right) 
	];


//styles which apply to each navbar item
um.items = [
	"0",		// margin between items ["n" pixels]
	"1",		// border size ["n" pixels] (single value only)
	"collapse",	// border collapse ["collapse"|"separate"] (only applies when margin = "0")
	"#333333 #333333",	// 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")
	"#000000",	// 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")
	"000000",	// 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")
	"6",		// left/right padding ["n" pixels] (single value only)
	"5",		// top/bottom padding ["n" pixels] (single value only)
	"#E5F1FF",		// background ["color"|"#hex"|"rgb()"|"image.gif"]
	"#FFFACD",		// hover/focus background ["color"|"#hex"|"rgb()"|"image.gif"]
	"#E5F1FF",		// visited background ["color"|"#hex"|"rgb()"|"image.gif"]
	"100%",		// font size ["em"|"ex"|"%"|"px"|"pt"|"absolute-size"|"relative-size"]
	"tahoma,sans-serif",// 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()"]
	"#000000",	// 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"]
	"letter-spacing:1px !important;",// additional link CSS (careful!)
	"",		// additional hover/focus CSS (careful!)
	"",		// additional visited CSS (careful!)
	"right-black.gif",// menu indicator character/image ["text"|"image.gif"|"none"] 
	"right-blue.gif",// menu indicator rollover character/image ["text"|"image.gif"|"none"] (must be same type)
	"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 = [
	"-4",		// menu -> menu x-offset (+-)["n" pixels]
	"-5",		// menu -> menu y-offset (+-)["n" pixels]
	"1",		// border size ["n" pixels] (single value only) 
	"DDDDDD",// 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")
	"170px",	// width ["em"|"ex"|"px"]
	"0",		// padding ["n" pixels] (single value only) 
	"#E5F1FF",	// background ["color"|"#hex"|"rgb()"|"image.gif"]
	"",		// additional menu CSS (careful!) (you can use a transition here but *not* a static filter)
	"none",// shadow background ["color"|"#hex"|"rgb()"|"image.gif"|"none"]
	"2px",		// shadow offset (+-) ["em"|"px"|"pt"|"%"|"0"]
	"filter:alpha(opacity=40);",// 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)
	"0",		// border size ["n" pixels] (single value only)
	"separate",	// border collapse ["collapse"|"separate"] (only applies when margin = "0")
	"#CCCCCC",	// 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")
	"#CCCCCC",		// 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")
	"#CCCCCC",	// 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) 
	"7",		// top/bottom padding ["n" pixels] (single value only) 
	"FFFFFF",	// background ["color"|"#hex"|"rgb()"|"image.gif"]
	"#FFFACD",	// hover/focus background ["color"|"#hex"|"rgb()"|"image.gif"]
	"FFFFFF",	// visited background ["color"|"#hex"|"rgb()"|"image.gif"]
	"75%",		// font size ["em"|"ex"|"%"|"px"|"pt"|"absolute-size"|"relative-size"]
	"tahoma,sans-serif",// 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()"]
	"#000000",		// 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-blue2.gif",// submenu indicator character/image ["text"|"image.gif"|"none"] 
	"right-blue.gif",// submenu indicator rollover character/image ["text"|"image.gif"|"none"] (must be the same type)
	"3",		// clipping width of indicator image ["n" pixels] (only when using image arrows)
	"..",		// alt text of indicator image ["text"] (only when using image arrows)
	];

///////////////////////////////////////////////////////////////////
// MENU CLASSES [comment out or remove if not using]             //
///////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////
// DYNAMIC MENUS                                                 //
///////////////////////////////////////////////////////////////////
	
	
	um.menuCode['home'] = '<a href="/index.html">Home</a>';
	um.menuCode['pricelist'] = '<a href="/products/pricelist.html">Price List</a>';
	um.menuCode['specifications'] = '<a href="/products/specifications.html" target="_blank">Specifications</a>';
	um.menuCode['computer'] = '<a href="/products/computer.html">Computers and Software</a>';
	um.menuCode['gallery'] = '<a class="nohref" >Gallery</a>'
		+ '<ul>'
		+ '<li><a class="nohref" >Low Cost Systems</a>'
			+ '<ul>' 
			+ '<li><a href="/gallery/1C.html" ><b>SIA-1C</b><img src="/resources/slowscan.gif" id="menuitem">'
			+ '<br>768 x 512</a></li>'
			+ '<li><a href="/gallery/L3.html" ><b>SIA-L3</b><img src="/resources/live.gif" id="menuitem">'
			+ '<br>2048 x 2048</a></li>' 
			+ '<li><a class="nohref" ><b>SIA-L4</b><img src="/resources/live.gif" id="menuitem">'
			+ '<br>1648 x 1214' 
			+ '<br><i>Gallery currently unavailable</i></a></li>'  		
			+ '<li><a class="nohref" ><b>SIA-TV</b><img src="/resources/live.gif" id="menuitem">'
			+ '<br>640 x 480'
			+ '<br><i>Gallery currently unavailable</i></a></li>'  			  
			+ '</ul>'
		+ '</li>'
		+ '<li><a class="nohref" >Research Grade Systems</a>'
			+ '<ul>' 
			+ '<li><a href="/gallery/L3C.html"><b>SIA-L3C</b><img src="/resources/live.gif" id="menuitem">'
			+ '<br>2048 x 2048</a></li>'
			+ '<li><a href="/gallery/7C.html"><b>SIA-7C</b><img src="/resources/slowscan.gif" id="menuitem">'
			+ '<br>2184 x 1472</a></li>'  
			+ '<li><a href="/gallery/8C.html"><b>SIA-8C</b><img src="/resources/slowscan.gif" id="menuitem">'
			+ '<br>2048 x 2048<br>or<br>3072 x 2048</a></li>'  
			+ '<li><a href="/gallery/L9C.html"><b>SIA-L9C</b><img src="/resources/live.gif" id="menuitem">'
			+ '<br>4008 x 2672</a></li>' 
			+ '<li><a href="/gallery/12C.html"><b>SIA-12C</b><img src="/resources/slowscan.gif" id="menuitem">'
			+ '<br>4096 x 4096</a></li>'  
			+ '<li><a class="nohref" ><b>SIA-15C</b><img src="/resources/slowscan.gif" id="menuitem">'
			+ '<br>3056 x 3056'  		
			+ '<br><i>Gallery currently unavailable</i></a></li>'  
			//+ '<li><a class="nohref" ><b>SIA-16C</b><img src="/resources/slowscan.gif" id="menuitem">'
			//+ '<br>7216 x 5412' 
			//+ '<br><i>Gallery currently unavailable</i></a></li>'  
			+ '</ul>'
		+ '</li>' 
		+ '<li><a class="nohref" >Specialized & High QE Systems</a>'
			+ '<ul>' 
			+ '<li><a class="nohref" ><b>SIA-10C</b><img src="/resources/slowscan.gif" id="menuitem">'
			+ '<br><i>Gallery currently unavailable</i></a></li>'  
			//+ '<li><a class="nohref" ><b>SIA-14C</b><img src="/resources/slowscan.gif" id="menuitem">'
			//+ '<br><i>Gallery currently unavailable</i></a></li>'  
			//+ '<li><a class="nohref" ><b>Intensified<br>TV Camera</b><img src="/resources/live.gif" id="menuitem">'
			//+ '<br><i>Gallery currently unavailable</i></a></li>'  
			+ '</ul>'
		+ '</li>' 
		+ '<li><a class="nohref" >Equipment Galleries</a>'
			+ '<ul>' 
			+ '<li><a href="/gallery/E-1C.html"><b>SIA-1C</b><img src="/resources/slowscan.gif" id="menuitem"></a></li>' 
			+ '<li><a href="/gallery/E-L3.html"><b>SIA-L3</b><img src="/resources/live.gif" id="menuitem"></a></li>' 
			+ '<li><a href="/gallery/E-L3C.html"><b>SIA-L3C</b><img src="/resources/live.gif" id="menuitem"></a></li>' 
			+ '<li><a href="/gallery/E-L4.html"><b>SIA-L4</b><img src="/resources/live.gif" id="menuitem"></a></li>' 
			//+ '<li><a href="/gallery/E-5C.html"><b>SIA-5C</b></a></li>' 
			//+ '<li><a href="/gallery/E-6C.html"><b>SIA-6C</b></a></li>' 
			+ '<li><a href="/gallery/E-7C.html"><b>SIA-7C</b><img src="/resources/slowscan.gif" id="menuitem"></a></li>' 
			+ '<li><a href="/gallery/E-8C.html"><b>SIA-8C</b><img src="/resources/slowscan.gif" id="menuitem"></a></li>' 
			+ '<li><a href="/gallery/E-L9C.html"><b>SIA-L9C</b><img src="/resources/live.gif" id="menuitem"></a></li>' 
			+ '<li><a href="/gallery/E-12C.html"><b>SIA-12C</b><img src="/resources/slowscan.gif" id="menuitem"></a></li>' 
			+ '<li><a href="/gallery/E-15C.html"><b>SIA-15C</b><img src="/resources/slowscan.gif" id="menuitem"></a></li>' 
			+ '<li><a href="/gallery/E-tv.html"><b>SIA-TV</b><img src="/resources/live.gif" id="menuitem"></a></li>' 
			+ '</ul>'
		+ '</li>' 
		+ '</ul>';
	um.menuCode['demoused'] = '<a href="/demoused/demoused.html" >Discounted Demo Units</a>';
	um.menuCode['links'] = '<a href="/links/links.html" >Software and Electronics</a>';
	um.menuCode['contact'] = '<a href="/contact.html" >Contact us</a>';







