var states = ['mout', 'mover', 'mdown'];

var MENU_ITEMS = [
	// level 0 item 0
	[wrap_parent('Novità'), null, [2, 65, 60, 20],
			// level 1 item 0
			[wrap_child('Novità 2009'), '../i_web/news.php?lang=i', [0, 16, 140, 20]],
			[wrap_child('Hockey news'), '../i_web/rss_news.php?lang=i', [0, 20, 140, 20]]			
	],
	[wrap_parent('Prodotti'), null, [54, 0, 80, 14],
			// level 1 item 0
			[wrap_child('Giocatore'), '../i_web/player.php?lang=i', [0, 20, 140, 20]],
			[wrap_child('Portiere'), '../i_web/goalie.php?lang=i', [0, 20, 140, 20]],
			[wrap_child('Artistica'), '../i_web/artistic.php?lang=i', [0, 20, 140, 20]],
			[wrap_child('Inline hockey'), '../i_web/skater.php?lang=i', [0, 20, 140, 20]],
     			[wrap_child('Unihockey'), '../i_web/unihockey.php?lang=i', [0, 20, 140, 20]],
	],
	[wrap_parent('Servizi'), null, [74, 0, 80, 20],
			// level 1 item 0
			[wrap_child('Consegna'), '../i_web/delivery.php?lang=i', [0, 20, 140, 20]],
   	        	[wrap_child('Pagamento'), '../i_web/payment.php?lang=i', [0, 20, 140, 20]],
			[wrap_child('Dopo Vendita'), '../i_web/after.php?lang=i', [0, 20, 140, 20]],
			[wrap_child('Garanzia'), '../i_web/warranty.php?lang=i', [0, 20, 140, 20]],						
			[wrap_child('Ritorno materiale'), '../i_web/rma.php?lang=i', [0, 20, 140, 20]],
			[wrap_child('Misure'), '../i_web/numbers.php?lang=i', [0, 20, 140, 20]]	
	],
	[wrap_parent('Specials'), null, [74, 0, 80, 20],
			// level 1 item 0
			[wrap_child('Offerte per squadre'), '../i_web/teamsales.php?lang=i', [0, 20, 140, 20]],
			[wrap_child('Custom Pro'), '../i_web/custompro.php?lang=i', [0, 20, 140, 20]],
			[wrap_child('Usato & garantito'), '../i_web/used.php?lang=i', [0, 20, 140, 20]],
			[wrap_child('Marche'), '../i_web/manufacturers.php?lang=i', [0, 20, 140, 20]]
	],
	[wrap_parent('Utenti'), null, [74, 0, 80, 20],
			// level 1 item 0
			[wrap_child('Login'), '../i_web/login.php?lang=i', [0, 20, 140, 20]],
			[wrap_child('Nuovo utente'), '../i_web/registration.php?lang=i', [0, 20, 140, 20]],
			[wrap_child('Carrello'), '../i_web/cart.php?lang=i', [0, 20, 140, 20]],
			[wrap_child('Il vostro Profilo'), '../i_web/profile.php?lang=i', [0, 20, 140, 20]],
			[wrap_child('Recupera password'), '../i_web/recover.php?lang=i', [0, 20, 140, 20]],
			[wrap_child('Logout'), '../i_web/logout.php?lang=i', [0, 20, 140, 20]]
	],
	[wrap_parent('Ice Action'), null, [54, 0, 80, 20],
			// level 1 item 0
			[wrap_child('L idea'), '../i_web/comp.php?lang=i', [0, 20, 140, 20]],
			[wrap_child('Il sito'), '../i_web/site.php?lang=i', [0, 20, 140, 20]],
			[wrap_child('Clienti in azione'), '../i_web/customers.php?lang=i', [0, 20, 140, 20]],
			[wrap_child('Clienti nel mondo'), '../i_web/customers_map.php?lang=i', [0, 20, 140, 20]],
			[wrap_child('Chi usa Graf'), '../i_web/graf_people.php?lang=i', [0, 20, 140, 20]],
			[wrap_child('Links'), '../i_web/links.php?lang=i', [0, 20, 140, 20]]		
	],

	[wrap_parent('Aiuto'), null, [84, 0, 38, 20],
			// level 1 item 0
			[wrap_child('Help Point'), '../i_web/help.php?lang=i', [0, 20, 140, 20]],
			[wrap_child('Ricerca'), '../i_web/search.php?lang=i', [0, 20, 140, 20]],
			[wrap_child('Site Map'), '../i_web/sitemap.php?lang=i', [0, 20, 140, 20]],
			[wrap_child('Contatto'), '../i_web/contact.php?lang=i', [0, 20, 140, 20]]
	],
	
];

function wrap_parent (text, pos, icon) {
	var res = new Array;
	for (var i=0; i<states.length; i++)
		res[i] =  '<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td><img src="../i_js/pixel.gif" width="3" height="16" border="0"></td>' + (icon != null ? '<td><img src="../i_js/'  + icon + '" height="16" border="0">&nbsp;</td>' : '') + '<td width="100%" valign="middle">|<span style="font-size: 11px;font-weight: bold;">' + text + '</span></td><td</td></tr></table>';
	return res;
}
function wrap_child (text, icon) {
	var res = new Array;
	for (var i=0; i<states.length; i++)
		res[i] =  '<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td><img src="../i_js/pixel.gif" width="3" height="20" border="0"></td>' + (icon != null ? '<td><img src="../i_js/'  + icon + '" height="16" border="0">&nbsp;</td>' : '') + '<td width="100%" valign="middle">&nbsp;<span style="font-size: 11px;">' + text + '</span></td><td</td></tr></table>';
	return res;
}
