
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()-800)/2;
if (MENU_LEFT < 10 )  MENU_LEFT = 10;
/* Tigra Menu template structure */
var MENU_TPL = [
	{	'width': 160,
		'height': 24,
		'block_top': 160,
		'block_left': MENU_LEFT,
		'hide_delay': 200,
		'expd_delay': 200,
		'opacity': 100,
		'vertical': false,
		'table': [0,0,0],
		'css': {
			'table': 'TM0t0',
			'outer': 'TM0o0',
			'inner': 'TM0i0'
		}
	},
	{	'width': 120,
		'block_left': 0,
		'block_top': 24,
		'vertical': true,
		'table': [0,0,0],
		'css': {
			'table': 'TM1t0',
			'outer': ['TM1o0','TM1o1'],
			'inner': 'TM1i0'
		}
	},
	{	'width': 200,
		'block_left': 130,
		'block_top': 0,
		'vertical': false,
		'table': [0,0,0],
		'css': {
			'table': 'TM1t0',
			'outer': ['TM1o0','TM1o1'],
			'inner': 'TM1i0'
		}
	}
];
