
var states = ['mout', 'mover', 'mdown'];
var bgcolors = ['#10213B', '#810100', '#810100'];
var cbgcolors = ['#485B78', '#810100', '#810100'];


var MENU_ITEMS = [
	[wrap_parent('Home', 'd'), "index.php?p=home.html", [null, null, 77]
	],
	[wrap_parent('About Us', 'd'), null, [null, null, 77],
		[wrap_child('&nbsp;Who is Bitel', 'r', null), 'index.php?p=aboutus.html', [null, null, 103]],
		[wrap_child('&nbsp;Why Choose Bitel', 'r', null), 'index.php?p=whybitel.html', [null, null, 103]],
		[wrap_child('&nbsp;Markets Served', 'r', null), 'index.php?p=marketsserved.html', [null, null, 103]],
		[wrap_child('&nbsp;Processors and<br>&nbsp;Certifications', 'r', null), 'index.php?p=proccert.html', [null, null, 103]],
	],
	[wrap_parent('Contact Us', 'd'), null, [null, null, 77],
			[wrap_child('&nbsp;Send Us an Email', null), 'mailto: sales@bitelusa.com', null],
			[wrap_child('&nbsp;Contact Sales', null), 'mailto: sales@bitelusa.com', null],
			[wrap_child('&nbsp;Address<br>&nbsp;and Contact<br>&nbsp;Information', null), 'index.php?p=contact.html', null]
	],
	[wrap_parent('Products', 'd'), null, [null, null, 77],
		[wrap_child('&nbsp;Overview', 'r', null), 'index.php?p=products.html', [null, null, 103]],
		[wrap_child('&nbsp;Flex&#8482; 3100', 'r', null), null, [null, null, 103],
			[wrap_child('&nbsp;HTML', 'r', null), 'index.php?p=ic3100.html', [null, null, 103]],
			[wrap_child('&nbsp;PDF', 'r', null), 'ic3100.pdf', [null, null, 103]],
		],
		[wrap_child('&nbsp;Flex&#8482; 5000<br>&nbsp;Wireless', 'r', null), null, [null, null, 103],
			[wrap_child('&nbsp;HTML', 'r', null), 'index.php?p=ic5000wireless.html', [null, null, 103]],
			[wrap_child('&nbsp;PDF', 'r', null), 'ic5000wireless.pdf', [null, null, 103]],
		],
	],
	[wrap_parent('Support', 'd'), null, [null, null, 77],
		[wrap_child('&nbsp;Authorized Dealers and Distributors', 'r', null), 'index.php?p=adealers.html', [null, null, 103]],
		[wrap_child('&nbsp;Service and<br>&nbsp;Support', 'r', null), 'index.php?p=support.html', [null, null, 103]],
	],
	[wrap_parent('News', 'd'), "index.php?p=news.php", [null, null, 77]],
	[wrap_parent('Site Map', 'd'), "index.php?p=sitemap.html", [null, null, 77]],
];

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="#E4E3E1" width="100%"><tr><td><table cellpadding="3" cellspacing="1" border="0" width="100%">' +
		'<tr><td width="100%" bgcolor="' + bgcolors[i] + '" style="padding: 1px;"><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 width="100%" valign="middle" class="standard"><font color="#FFFFFF">' + text + '</font></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] =  '<div  style="Alpha(style=0,opacity=88);"><table cellpadding="0" cellspacing="0" border="0" bgcolor="#E4E3E1" width="100%"><tr><td><table cellpadding="3" cellspacing="1" border="0" width="100%">' +
		'<tr><td width="100%" bgcolor="' + cbgcolors[i] + '" style="padding: 1px;"><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 width="100%" valign="middle" class="standard"><font color="#FFFFFF">' + text + '</font></td></tr></table></td></tr></table></td></tr></table></div>';
	return res;
}
