
function f_filterResults(n_win, n_docel, n_body) {
	var n_result = n_win ? n_win : 0;
	if (n_docel && (!n_result || (n_result > n_docel)))
		n_result = n_docel;
	return n_body && (!n_result || (n_result > n_body)) ? n_body : n_result;
}
function f_clientWidth() {
	return f_filterResults (
		window.innerWidth ? window.innerWidth : 0,
		document.documentElement ? document.documentElement.clientWidth : 0,
		document.body ? document.body.clientWidth : 0
	);
}
MENU_LEFT = (f_clientWidth()-770)/2  + 35;
if (MENU_LEFT < 10 )  MENU_LEFT = 10;

var MENU_POS = [
{
	// item sizes
	'height': 28,
	'width': 180,
	// Block outing table parameters:
	// [cellpadding, cellspacing, border]
	'table'      : [0, 0, 0],
	// if Block Orientation is vertical
	'vertical'   : false,
	// transition effects for the block
	// [<index on expand>, <duration on expand>, <index on collapse>, <duration on collapse>]
	'transition' : [12, 0.3],
	// Time Delay in milliseconds before subling block expands
	// after mouse pointer overs an item
	'expd_delay' : 300,
	// 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
	'block_top': 390,
	'block_left': MENU_LEFT,
	// offsets between items of the same level
	'top': 28,
	'left': 0,
	'css' : {
		'outer': ['m0l0oout', 'm0l0oover'],
		'inner': ['m0l0iout', 'm0l0iover']
	}
},
{
	'vertical'   :true,
	'height': 25,
	'width': 200,
	'block_top': 30,
	'block_left': 0,
	'top': 55,
	'left': 10,
	'css': {
		'outer' : ['m0l1oout', 'm0l1oover'],
		'inner' : ['m0l1iout', 'm0l1iover']
	}
},
{
	'block_top':0,
	'block_left': 205,
	'css': {
		'outer': ['m0l2oout', 'm0l2oover'],
		'inner': ['m0l1iout', 'm0l2iover']
	}
}
]
