/*
  --- menu level scope settins structure --- 
  note that this structure has changed its format since previous version.
  Now this structure has the same layout as Tigra Menu GOLD.
  Format description can be found in product documentation.
*/

// Détermine la hauteur de la fenêtre
function windowHeight() {
	var myHeight = 0;
	
	if (typeof(window.innerHeight ) == 'number' ) {
		//Non-IE
		myHeight = window.innerHeight;
	} else if (document.documentElement
			&& (document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myHeight = document.documentElement.clientHeight;
	} else if (document.body && (document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myHeight = document.body.clientHeight;
	}
	
	return myHeight;
}

// Détermine la largeur de la fenêtre
function windowWidth() {
	var myWidth = 0;
	
	if (typeof (window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
	} else if (document.documentElement
			&& ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
	} else if (document.body
			&& ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
	}
	
	return myWidth;
}

// On calcule le décalage entre la gauche de la fenêtre et la gauche du bandeau
offset_left = ((windowWidth() - 990) / 2);
if (offset_left < 0) {
	offset_left = 0;
}
offset_left += 90;

var MENU_POS = [{
	// items sizes
	'height': 23,
	'width': 110,
	// 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': 90,
	'block_left': offset_left,
	// offsets between items of the same level
	'top': 0,
	'left': 112,
	// time in milliseconds before menu is hidden after cursor has gone out
	// of any items
	'hide_delay': 200,
	'expd_delay': 200,
	'css' : {
		'outer' : ['m0l0oout', 'm0l0oover'],
		'inner' : ['m0l0iout', 'm0l0iover']
	}
},{ // sub-items
	// size
	'height': 27,
	//'width': 160,
	'width': 195,
	// position
	'block_top': 24,
	'block_left': -10,
	// offset
	'top': 28,
	'left': 0,
	// css style
	'css' : {
		'outer' : ['m0l1oout', 'm0l1oover'],
		'inner' : ['m0l1iout', 'm0l1iover']
	}
},{
	// sub sub items
	'block_top': 0,
	'block_left': 172
}
]
