/* --- geometry and timing of the menu --- */
var MENU_POS = new Array();

	// item sizes for different levels of menu
	MENU_POS['height']     = [22, 22];
	MENU_POS['width']      = [130, 130];

	// menu block offset from the origin:
	//  for root level origin is upper left corner of the page
	//  for other levels origin is upper left corner of parent item
	MENU_POS['block_top']  = [115, 23];
	MENU_POS['block_left'] = [15, 0];

	// offsets between items of the same level
//	MENU_POS['top']        = [0, 23];
//	MENU_POS['left']       = [130, 0];
	MENU_POS['top']        = [0, 23];
	MENU_POS['left']       = [131, 0];
	// time in milliseconds before menu is hidden after cursor has gone out
	// of any items
	MENU_POS['hide_delay'] = [200, 200];

/* --- dynamic menu styles ---
note: you can add as many style properties as you wish but be not all browsers
are able to render them correctly. The only relatively safe properties are
'color' and 'background'.
*/

var MENU_STYLES = new Array();

	// default item state when it is visible but doesn't have mouse over
	MENU_STYLES['onmouseout'] = [
		'background', ['#336699', '#6699cc'],
		'color', ['#ffffff', '#ffffff'],
	];

	// state when item has mouse over it
	MENU_STYLES['onmouseover'] = [
		'background', ['#336699', '#77b3ef'],
		'color', ['#ffffff', '#ffffff'],
	];

	// state when mouse button has been pressed on the item
	MENU_STYLES['onmousedown'] = [
		'background', ['#336699', '#6699cc'],
		'color', ['#ffffff', '#ffffff'],
	];
	
var MENU1_POS = new Array();
	MENU1_POS['height']     = [22, 22];
	MENU1_POS['width']      = [130, 130];
	MENU1_POS['block_top']  = [253, 23];
	MENU1_POS['block_left'] = [15, 0];
	MENU1_POS['top']        = [0, 23];
	MENU1_POS['left']       = [0,0];
	MENU1_POS['hide_delay'] = [50, 50];

var MENU1_STYLES = new Array();
	MENU1_STYLES['onmouseout'] = [
		'background', ['#336699', '#6699cc'],
		'color', ['#ffffff', '#ffffff'],
	];
	MENU1_STYLES['onmouseover'] = [
		'background', ['#6699cc', '#77b3ef'],
		'color', ['#ffffff', '#ffffff'],
	];
	MENU1_STYLES['onmousedown'] = [
		'background', ['#336699', '#6699cc'],
		'color', ['#ffffff', '#ffffff'],
	];
	
var MENU2_POS = new Array();
	MENU2_POS['height']     = [22, 22];
	MENU2_POS['width']      = [130, 130];
	MENU2_POS['block_top']  = [276, 23];
	MENU2_POS['block_left'] = [15, 0];
	MENU2_POS['top']        = [0, 23];
	MENU2_POS['left']       = [0,0];
	MENU2_POS['hide_delay'] = [50, 50];

var MENU2_STYLES = new Array();
	MENU2_STYLES['onmouseout'] = [
		'background', ['#336699', '#6699cc'],
		'color', ['#ffffff', '#ffffff'],
	];
	MENU2_STYLES['onmouseover'] = [
		'background', ['#6699cc', '#77b3ef'],
		'color', ['#ffffff', '#ffffff'],
	];
	MENU2_STYLES['onmousedown'] = [
		'background', ['#336699', '#6699cc'],
		'color', ['#ffffff', '#ffffff'],
	];
	
var MENU3_POS = new Array();
	MENU3_POS['height']     = [22, 22];
	MENU3_POS['width']      = [130, 130];
	MENU3_POS['block_top']  = [299, 23];
	MENU3_POS['block_left'] = [15, 0];
	MENU3_POS['top']        = [0, 23];
	MENU3_POS['left']       = [0,0];
	MENU3_POS['hide_delay'] = [50, 50];

var MENU3_STYLES = new Array();
	MENU3_STYLES['onmouseout'] = [
		'background', ['#336699', '#6699cc'],
		'color', ['#ffffff', '#ffffff'],
	];
	MENU3_STYLES['onmouseover'] = [
		'background', ['#6699cc', '#77b3ef'],
		'color', ['#ffffff', '#ffffff'],
	];
	MENU3_STYLES['onmousedown'] = [
		'background', ['#336699', '#6699cc'],
		'color', ['#ffffff', '#ffffff'],
	];
	
var MENU4_POS = new Array();
	MENU4_POS['height']     = [22, 22];
	MENU4_POS['width']      = [130, 130];
	MENU4_POS['block_top']  = [322, 23];
	MENU4_POS['block_left'] = [15, 0];
	MENU4_POS['top']        = [0, 23];
	MENU4_POS['left']       = [0,0];
	MENU4_POS['hide_delay'] = [50, 50];

var MENU4_STYLES = new Array();
	MENU4_STYLES['onmouseout'] = [
		'background', ['#336699', '#6699cc'],
		'color', ['#ffffff', '#ffffff'],
	];
	MENU4_STYLES['onmouseover'] = [
		'background', ['#6699cc', '#77b3ef'],
		'color', ['#ffffff', '#ffffff'],
	];
	MENU4_STYLES['onmousedown'] = [
		'background', ['#336699', '#6699cc'],
		'color', ['#ffffff', '#ffffff'],
	];
	
var MENU5_POS = new Array();
	MENU5_POS['height']     = [22, 22];
	MENU5_POS['width']      = [130, 130];
	MENU5_POS['block_top']  = [345, 23];
	MENU5_POS['block_left'] = [15, 0];
	MENU5_POS['top']        = [0, 23];
	MENU5_POS['left']       = [0,0];
	MENU5_POS['hide_delay'] = [50, 50];

var MENU5_STYLES = new Array();
	MENU5_STYLES['onmouseout'] = [
		'background', ['#336699', '#6699cc'],
		'color', ['#ffffff', '#ffffff'],
	];
	MENU5_STYLES['onmouseover'] = [
		'background', ['#6699cc', '#77b3ef'],
		'color', ['#ffffff', '#ffffff'],
	];
	MENU5_STYLES['onmousedown'] = [
		'background', ['#336699', '#6699cc'],
		'color', ['#ffffff', '#ffffff'],
	];
	
var MENU6_POS = new Array();
	MENU6_POS['height']     = [22, 22];
	MENU6_POS['width']      = [130, 130];
	MENU6_POS['block_top']  = [368, 23];
	MENU6_POS['block_left'] = [15, 0];
	MENU6_POS['top']        = [0, 23];
	MENU6_POS['left']       = [0,0];
	MENU6_POS['hide_delay'] = [50, 50];

var MENU6_STYLES = new Array();
	MENU6_STYLES['onmouseout'] = [
		'background', ['#336699', '#6699cc'],
		'color', ['#ffffff', '#ffffff'],
	];
	MENU6_STYLES['onmouseover'] = [
		'background', ['#6699cc', '#77b3ef'],
		'color', ['#ffffff', '#ffffff'],
	];
	MENU6_STYLES['onmousedown'] = [
		'background', ['#336699', '#6699cc'],
		'color', ['#ffffff', '#ffffff'],
	];

var MENU7_POS = new Array();
	MENU7_POS['height']     = [22, 22];
	MENU7_POS['width']      = [130, 130];
	MENU7_POS['block_top']  = [391, 23];
	MENU7_POS['block_left'] = [15, 0];
	MENU7_POS['top']        = [0, 23];
	MENU7_POS['left']       = [0,0];
	MENU7_POS['hide_delay'] = [50, 50];

var MENU7_STYLES = new Array();
	MENU7_STYLES['onmouseout'] = [
		'background', ['#336699', '#6699cc'],
		'color', ['#ffffff', '#ffffff'],
	];
	MENU7_STYLES['onmouseover'] = [
		'background', ['#6699cc', '#77b3ef'],
		'color', ['#ffffff', '#ffffff'],
	];
	MENU7_STYLES['onmousedown'] = [
		'background', ['#336699', '#6699cc'],
		'color', ['#ffffff', '#ffffff'],
	];
	
	var MENU8_POS = new Array();
	MENU8_POS['height']     = [22, 22];
	MENU8_POS['width']      = [130, 130];
	MENU8_POS['block_top']  = [414, 23];
	MENU8_POS['block_left'] = [15, 0];
	MENU8_POS['top']        = [0, 23];
	MENU8_POS['left']       = [0,0];
	MENU8_POS['hide_delay'] = [50, 50];

var MENU8_STYLES = new Array();
	MENU8_STYLES['onmouseout'] = [
		'background', ['#336699', '#6699cc'],
		'color', ['#ffffff', '#ffffff'],
	];
	MENU8_STYLES['onmouseover'] = [
		'background', ['#6699cc', '#77b3ef'],
		'color', ['#ffffff', '#ffffff'],
	];
	MENU8_STYLES['onmousedown'] = [
		'background', ['#336699', '#6699cc'],
		'color', ['#ffffff', '#ffffff'],
	];
	
	var MENU9_POS = new Array();
	MENU9_POS['height']     = [22, 22];
	MENU9_POS['width']      = [130, 130];
	MENU9_POS['block_top']  = [437, 23];
	MENU9_POS['block_left'] = [15, 0];
	MENU9_POS['top']        = [0, 23];
	MENU9_POS['left']       = [0,0];
	MENU9_POS['hide_delay'] = [50, 50];

var MENU9_STYLES = new Array();
	MENU9_STYLES['onmouseout'] = [
		'background', ['#336699', '#6699cc'],
		'color', ['#ffffff', '#ffffff'],
	];
	MENU9_STYLES['onmouseover'] = [
		'background', ['#6699cc', '#77b3ef'],
		'color', ['#ffffff', '#ffffff'],
	];
	MENU9_STYLES['onmousedown'] = [
		'background', ['#336699', '#6699cc'],
		'color', ['#ffffff', '#ffffff'],
	];
	
