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

// var myJavacsriptValue = "<?php $lang = clean($lang, 1);?>"
// alert ("Lang is: " + myJavacsriptValue);
var MENU_ITEMS = [
	// level 0 item 0
	[wrap_parent('News'), null, [2, 65, 60, 20],
			// level 1 item 0
			[wrap_child('News 2009'), '../i_web/news.php?lang=e', [0, 16, 140, 20]],	
			[wrap_child('Hockey news'), '../i_web/rss_news.php?lang=e', [0, 20, 140, 20]]	
	],
	[wrap_parent('Products'), null, [54, 0, 80, 20],
			// level 1 item 0
			[wrap_child('Player'), '../i_web/player.php?lang=e', [0, 20, 140, 20]],
			[wrap_child('Goalie'), '../i_web/goalie.php?lang=e', [0, 20, 140, 20]],
			[wrap_child('Figure skating'), '../i_web/artistic.php?lang=e', [0, 20, 140, 20]],	
			[wrap_child('Inline hockey'), '../i_web/skater.php?lang=e', [0, 20, 140, 20]],
			[wrap_child('Floorball'), '../i_web/unihockey.php?lang=e', [0, 20, 140, 20]]
	],
	[wrap_parent('Services'), null, [74, 0, 80, 20],
			// level 1 item 0
			[wrap_child('Delivery'), '../i_web/delivery.php?lang=e', [0, 20, 140, 20]],
			[wrap_child('Payment'), '../i_web/payment.php?lang=e', [0, 20, 140, 20]],
			[wrap_child('Customer support'), '../i_web/after.php?lang=e', [0, 20, 140, 20]],
			[wrap_child('Warranty'), '../i_web/warranty.php?lang=e', [0, 20, 140, 20]],						
			[wrap_child('Return material'), '../i_web/rma.php?lang=e', [0, 20, 140, 20]],
			[wrap_child('Measures'), '../i_web/numbers.php?lang=e', [0, 20, 140, 20]]
	
	],
	[wrap_parent('Specials'), null, [74, 0, 80, 20],
			// level 1 item 0
			[wrap_child('Team sales'), '../i_web/teamsales.php?lang=e', [0, 20, 140, 20]],
			[wrap_child('Custom Pro'), '../i_web/custompro.php?lang=e', [0, 20, 140, 20]],
			[wrap_child('Used & Guaranteed'), '../i_web/used.php?lang=e', [0, 20, 140, 20]],
			[wrap_child('Brands'), '../i_web/manufacturers.php?lang=e', [0, 20, 140, 20]]
	],
	[wrap_parent('Users'), null, [74, 0, 80, 20],
			// level 1 item 0
			[wrap_child('Login'), '../i_web/login.php?lang=e', [0, 20, 140, 20]],
			[wrap_child('New customer'), '../i_web/registration.php?lang=e', [0, 20, 140, 20]],
			[wrap_child('Your Cart'), '../i_web/cart.php?lang=e', [0, 20, 140, 20]],
			[wrap_child('Your Profile'), '../i_web/profile.php?lang=e', [0, 20, 140, 20]],
			[wrap_child('Password recover'), '../i_web/recover.php?lang=e', [0, 20, 140, 20]],
			[wrap_child('Logout'), '../i_web/logout.php?lang=e', [0, 20, 140, 20]]
	],
	[wrap_parent('Ice Action'), null, [54, 0, 80, 20],
			// level 1 item 0
			[wrap_child('The idea'), '../i_web/comp.php?lang=e', [0, 20, 140, 20]],
			[wrap_child('The site'), '../i_web/site.php?lang=e', [0, 20, 140, 20]],
			[wrap_child('Customers in action'), '../i_web/customers.php?lang=e', [0, 20, 140, 20]],
			[wrap_child('Customers on map'), '../i_web/customers_map.php?lang=e', [0, 20, 140, 20]],
			[wrap_child('Who uses Graf'), '../i_web/graf_people.php?lang=e', [0, 20, 140, 20]],
			[wrap_child('Links'), '../i_web/links.php?lang=e', [0, 20, 140, 20]],		
	],
	[wrap_parent('Help'), null, [84, 0, 38, 20],
			// level 1 item 0
			[wrap_child('Help Point'), '../i_web/help.php?lang=e', [0, 20, 140, 20]],
			[wrap_child('Search'), '../i_web/search.php?lang=e', [0, 20, 140, 20]],
			[wrap_child('Site Map'), '../i_web/sitemap.php?lang=e', [0, 20, 140, 20]],
			[wrap_child('Contact'), '../i_web/contact.php?lang=e', [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;
}
