var menu = new Array(

	["Home|/index.html|single|download_exp",
	[]],
	["Products|/products/products.html|single|expand",
	[
		"Reinsure-Life|/products/comproduct.html",
		"Reinsure-Mobile|/products/mobileproduct.html",
                "Reinsure-Online|/products/onlineproduct.html"
	]],
	["Company|/company/company.html|single|download_exp",
	[]],
	["Support|/support/support.html|single|expand",
	[
		"Updates|/support/updates.html",
		"Technical Support|/support/tech_support.html"
	]],
	["Download Now|/download/download.html|download|download_exp",
	[]],
	["Purchase Now|/purchase/purchase.html|purchase|purchase_exp",
	[]]
);
function print_menu(path) {
	path_parts = path.toLowerCase().split("/");
	document.write("<ul>");
	for (i = 0; i < menu.length; i++) {
		menu_item = menu[i];
		link_data = menu_item[0].split("|");
		document.write("<li><a href=\""+link_data[1]+"\" class=\""+link_data[((link_data[0].toLowerCase() == path_parts[0]) ? 3 : 2)]+"\">"+link_data[0]+"</a>");
		if (menu_item[1].length && (path_parts[0] == link_data[0].toLowerCase()))
		{
			document.write("<ul>");
			for (j = 0; j < menu_item[1].length; j++) 
			{
				link_data = menu_item[1][j].split("|");
				document.write("<li><a href=\""+link_data[1]+"\""+((path_parts[1] == link_data[0].toLowerCase()) ? " class=\"current\"" : "")+">"+link_data[0]+"</a></li>")
			}
			document.write("</ul>");
		}
		document.write("</li>");
	}
	document.write("</ul>");
}

