var states = ['mout', 'mover', 'mdown'];
//var bgcolors = ['#4682B4', '#6699cc', '#99ccff'];
var bgcolors = ['#ffffff', '#6699cc', '#99ccff'];

var MENU_ITEMS = [

	[wrap_parent('Home', null , null), "index.php", [null, null, null]
	],

	[wrap_parent('Who we are', null , null), null, [100, null, null],
			[wrap_child('About Us'), 'aboutus.php', null],
			[wrap_child('Your Contact Person'), 'contact_persons.php', null],
	],

	[wrap_parent('Opportunities' , null), null, [100, null, null],
			[wrap_child('Be our agent'), 'agents.php', null],
			[wrap_child('Job opportunities'), 'opportunities.php', null],
			[wrap_child('Events'), 'z.php', null]
	],

	[wrap_parent('Products' , null ,null), null, [100, null, null],
			[wrap_child('Packing (BurgSeal)', null), 'packing.php', null],
			[wrap_child('Static Seals', null), 'static.php', null],
			[wrap_child('Fabric Expantion Joints (BurgFlex)', null ), 'z.php', null],
			[wrap_child('Filters', null), 'filters.php', null],
			[wrap_child('Insualting Material', null ), 'insulate.php', null],
			[wrap_child('BurgCast', null ), 'burgcast.php', null],
			[wrap_child('BurgFlon', null ), 'burgflon.php', null],
			[wrap_child('Tools', null ), 'tools.php', null]
	],

	[wrap_parent('Contact Us', null ,null), 'contactus.php', [100, null, null]
	],

	[wrap_parent('Alimex import & export', null , null), null, [100, null, 253]
	],


];

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" bgcolor="#DBEAF5" width="100%"><tr><td><table cellpadding="3" cellspacing="1" border="0" width="100%">' +
		'<tr><td width="100%" bgcolor="' + bgcolors[i] + '" style="padding: 3px;"><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td><img src="img/pixel.gif" width="3" height="16" border="0"></td>' + (icon != null ? '<td><img src="img/'  + icon + '" height="16" border="0">&nbsp;</td>' : '') + '<td width="100%" valign="middle"><font face="tahoma, verdana, arial" color="black"><span style="font-size: 13px;">' + text + '</span></font></td><td valign="middle"></td></tr></table></td></tr></table></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" bgcolor="#DBEAF5" width="100%"><tr><td><table cellpadding="3" cellspacing="1" border="0" width="100%">' +
		'<tr><td width="100%" bgcolor="' + bgcolors[i] + '" style="padding: 3px;"><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td><img src="img/pixel.gif" width="3" height="16" border="0"></td>' + (icon != null ? '<td><img src="img/'  + icon + '" height="16" border="0">&nbsp;</td>' : '') + '<td width="100%" valign="middle"><font face="tahoma, verdana, arial" color="black"><span style="font-size: 13px;">' + text + '</span></font></td></tr></table></td></tr></table></td></tr></table>';
	return res;
}
