
var states = ['mout', 'mover', 'mdown'];
/* 		     open	over	   click */
var bgcolors_L0 = ['#FFFFFF', '#CCCCCC', '#FFFFFF'];
var bgcolors_L1 = ['#E9E9E9', '#FFFFFF', '#E9E9E9'];
var bgcolors_L2 = ['#FFFFFF', '#E9E9E9', '#DDDDDD'];
var bgcolors_L3 = ['#FFFFFF', '#E9E9E9', '#DDDDDD'];
var bgcolors_L4 = ['#E9E9E9', '#FFFFFF', '#E9E9E9'];


var MENU_ITEMS = [
	[wrap_L0('Azienda'), null, [null, null, null],
		[wrap_L1('Home page', 'd'), ['/index.php', '_self', ''], [0, 15, null]],
		[wrap_L1('Chi siamo', 'd'), ['/profilo.php', '_self', ''], [0, 17, null]],
		[wrap_L1('La ns. missione', 'd'), ['/missione.php', '_self', ''], [0, 17, null]],
		[wrap_L1('Dove siamo', 'd'), ['/dovesiamo.php', '_self', ''], [0, 17, null]]
	],
	[wrap_L0('Prodotti'), null, [null, null, null],
		[wrap_L1('Le nostre Linee', 'd'), ['/prodotti/a_linee.php', '_self', ''], [0, 15, null]],
		[wrap_L1(' - Fadal', 'd'), ['/prodotti/b_categorie_fadal.php', '_self', ''], [0, 17, null]],
		[wrap_L1(' - Kermesse', 'd'), ['/prodotti/b_categorie_kermesse.php', '_self', ''], [0, 17, null]],
		[wrap_L1(' - Eklogé', 'd'), ['/prodotti/b_categorie_ekloge.php', '_self', ''], [0, 17, null]],
		[wrap_L1(' - Lifetime', 'd'), ['/prodotti/b_categorie_lifetime.php', '_self', ''], [0, 17, null]],
		[wrap_L1(' - Eklogé Home', 'd'), ['/prodotti/b_categorie_ekloge_home.php', '_self', ''], [0, 17, null]],
		[wrap_L1(' - Linea Benessere', 'd'), ['/prodotti/c_prodotti.php?LIN=Linea Benessere&CAT=Benessere', '_self', ''], [0, 17, null]],
		[wrap_L1(' - Tabella misure', 'd'), ['/tabella_misure.php', '_self', ''], [0, 17, null]]
	],
	[wrap_L0('Ultime novitŕ'), null, [null, null, null],
		[wrap_L1('News', 'd'), ['/news.php', '_self', ''], [0, 15, null]]
	],
	[wrap_L0('Lavora con noi'), ['/info_lavoro.php', '_self', ''], [null, null, null],
	],
	[wrap_L0('Contattiamoci'), ['/contatti.php', '_self', ''], [null, null, null],
	],
	[wrap_L0('Area consulenti'), ['/areariservata/', '_self', ''], [null, null, null],
	],
];

function wrap_L0 (text, pos, icon) {
	var res = new Array;
	for (var i=0; i<states.length; i++)
		res[i] =  '<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>' +
		'<td><img src="http://www.dalmesseitalia.it/images/pixel.gif" width="3" height="16" border="0"></td>' + (icon != null ? '<td><img src="http://www.dalmesseitalia.it/images/'  + icon + '" height="16" border="0">&nbsp;</td>' : '') + '<td width="100%" align="center" valign="middle"><font size="2" face="Arial, Helvetica, sans-serif" color="white"><b><span style="font-size: 12px;">' + text + '</span></b></font></td></tr></table>';
	return res;
}

function wrap_L1 (text, pos, icon) {
	var res = new Array;
	for (var i=0; i<states.length; i++)
		res[i] =  '<table width="100%" cellpadding="0" cellspacing="1" border="0" bgcolor="#000000"><tr><td><table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="' + bgcolors_L1[i] + '"><tr>' +
		'<td><img src="http://www.dalmesseitalia.it/images/pixel.gif" width="3" height="16" border="0"></td>' + (icon != null ? '<td><img src="http://www.dalmesseitalia.it/images/'  + icon + '" height="16" border="0">&nbsp;</td>' : '') + '<td width="100%" valign="middle"><font size="2" face="Arial, Helvetica, sans-serif" class="med_arial"><b><span style="font-size: 11px;">' + text + '</span></b></font></td><td valign="middle"><img src="http://www.dalmesseitalia.it/images/' + states[i] + '_' + pos + 'arrow.gif" width="12" height="12" border="0"></td></tr></table></td></tr></table>';
	return res;
}

function wrap_L2 (text, pos, icon) {
	var res = new Array;
	for (var i=0; i<states.length; i++)
		res[i] =  '<table width="100%" cellpadding="0" cellspacing="1" border="0" bgcolor="#000000"><tr><td><table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="' + bgcolors_L2[i] + '"><tr>' +
		'<td><img src="http://www.dalmesseitalia.it/images/pixel.gif" width="3" height="16" border="0"></td>' + (icon != null ? '<td><img src="http://www.dalmesseitalia.it/images/'  + icon + '" height="16" border="0">&nbsp;</td>' : '') + '<td width="100%" valign="middle"><font size="2" face="Arial, Helvetica, sans-serif" class="med_arial"><b><span style="font-size: 10px;">' + text + '</span></b></font></td><td valign="middle"><img src="http://www.dalmesseitalia.it/images/' + states[i] + '_' + pos + 'arrow.gif" width="12" height="12" border="0"></td></tr></table></td></tr></table>';
	return res;
}

function wrap_L3 (text, pos, icon) {
	var res = new Array;
	for (var i=0; i<states.length; i++)
		res[i] =  '<table width="100%" cellpadding="0" cellspacing="1" border="0" bgcolor="#000000"><tr><td><table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="' + bgcolors_L3[i] + '"><tr>' +
		'<td><img src="http://www.dalmesseitalia.it/images/pixel.gif" width="3" height="16" border="0"></td>' + (icon != null ? '<td><img src="http://www.dalmesseitalia.it/images/'  + icon + '" height="16" border="0">&nbsp;</td>' : '') + '<td width="100%" valign="middle"><font size="2" face="Arial, Helvetica, sans-serif" class="med_arial"><b><span style="font-size: 9px;">' + text + '</span></b></font></td><td valign="middle"><img src="http://www.dalmesseitalia.it/images/' + states[i] + '_' + pos + 'arrow.gif" width="12" height="12" border="0"></td></tr></table></td></tr></table>';
	return res;
}

function wrap_L4 (text, icon) {
	var res = new Array;
	for (var i=0; i<states.length; i++)
		res[i] =  '<table width="100%" cellpadding="0" cellspacing="1" border="0" bgcolor="#000000"><tr><td><table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="' + bgcolors_L4[i] + '"><tr>' +
		'<td><img src="http://www.dalmesseitalia.it/images/pixel.gif" width="3" height="16" border="0"></td>' + (icon != null ? '<td><img src="http://www.dalmesseitalia.it/images/'  + icon + '" height="16" border="0">&nbsp;</td>' : '') + '<td width="100%" valign="middle"><font size="2" face="Arial, Helvetica, sans-serif" class="med_arial"><b><span style="font-size: 9px;">' + text + '</span></b></font></td></tr></table></td></tr></table>';
	return res;
}

