function createSubMenu(sid){
	var tblsub, sub2menu;
	var spacing, padding;
	
	spacing = "2";
	padding = "3";
	
	switch(sid)
	{
		case "tipsmenu":{
			tblsub = "<table id='" + sid + "' cellspacing='" + spacing + "' cellpadding='" + padding + "' border='0' style='position:absolute;width:115px;height:16px;visibility:hidden;z-index:99;' class='tbldyn'>";
			tblsub = tblsub + "<tr>";
			tblsub = tblsub + "<td valign='middle' align='left' class='dyncell'>";
			tblsub = tblsub + "<img src='images/minitransparent.gif' border='0' height='1' width='18'>";
			tblsub = tblsub + "<a href='tips3.aspx'><span>Do's & Don'ts</span></a>";
			tblsub = tblsub + "</td>";
			tblsub = tblsub + "</tr>";
			tblsub = tblsub + "<tr>";
			tblsub = tblsub + "<td valign='middle' align='left' class='dyncell'>";
			tblsub = tblsub + "<img src='images/minitransparent.gif' border='0' height='1' width='15'>";
			tblsub = tblsub + "<a href='tips2.aspx'><span>Warning Signs</span></a>";
			tblsub = tblsub + "</td>";
			tblsub = tblsub + "</tr>";
			tblsub = tblsub + "<tr>";
			tblsub = tblsub + "<td valign='middle' align='left' class='dyncell'>";
			tblsub = tblsub + "<img src='images/minitransparent.gif' border='0' height='1' width='20'>";
			tblsub = tblsub + "<a href='tips1.aspx'><span>Free Check</span></a>";
			tblsub = tblsub + "</td>";
			tblsub = tblsub + "</tr>";
			tblsub = tblsub + "</table>";
			break;
		}
	}
	//alert(tblsub);
	return tblsub;
}

function fixMenu(show){
	var tbl, submenu, mainmenu;
	var padding;
	padding = "0";
	switch(show)
	{
		case "MainMenu":{
			mainmenu = "tblnav";
			tbl = "<table id='" + mainmenu + "' cellspacing='0' cellpadding='0' border='0' style='width:79px;z-index:99;height:30px'>";
			tbl = tbl + "<tr>";
			tbl = tbl + "<td align='left'>";
			tbl = tbl + "<a href='home.aspx' onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image1','','images/nav_home_mover.jpg',1)\"><img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>"
			tbl = tbl + "<img src='images/nav_home_mout.jpg' border='0' id='Image1' name='Image1' alt='khangs automatic car servicing'>";
			tbl = tbl + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'></a>";
			tbl = tbl + "</td>";
			tbl = tbl + "</tr>";
			tbl = tbl + "</table>";
			break;
		}
		case "MainMenu2":{
			mainmenu = "tblnav2";
			tbl = "<table id='" + mainmenu + "' cellspacing='0' cellpadding='0' border='0' style='width:96px;z-index:99;height:30px'>";
			tbl = tbl + "<tr>";
			tbl = tbl + "<td align='left'>";
			tbl = tbl + "<a href='KA_aboutus.aspx' onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image2','','images/nav_aboutus_mover.jpg',1)\"><img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>"
			tbl = tbl + "<img src='images/nav_aboutus_mout.jpg' border='0' id='Image2' name='Image2' alt='about khangs automatic'>";
			tbl = tbl + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'></a>";
			tbl = tbl + "</td>";
			tbl = tbl + "</tr>";
			tbl = tbl + "</table>";
			break;
		}
		case "MainMenu3":{
			mainmenu = "tblnav3";
			tbl = "<table id='" + mainmenu + "' cellspacing='0' cellpadding='0' border='0' style='width:92px;z-index:99;height:30px'>";
			tbl = tbl + "<tr>";
			tbl = tbl + "<td align='left'>";
			tbl = tbl + "<a href='KA_services.aspx' onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image3','','images/nav_services_mover.jpg',1)\"><img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>"
			tbl = tbl + "<img src='images/nav_services_mout.jpg' border='0' id='Image3' name='Image3' alt='our car services provided'>";
			tbl = tbl + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'></a>";
			tbl = tbl + "</td>";
			tbl = tbl + "</tr>";
			tbl = tbl + "</table>";
			break;
		}
		case "MainMenu4":{
			submenu = "tipsmenu";
			mainmenu = "tblnav4";
			tbl = "<table id='" + mainmenu + "' cellspacing='0' cellpadding='0' border='0' style='width:110px;z-index:99;height:30px'>";
			tbl = tbl + "<tr>";
			tbl = tbl + "<td align='left' onmouseover=\"DynShowMenu('" + submenu + "')\" onmouseout=\"DynHideMenu('" + submenu + "')\">";
			tbl = tbl + "<a href='#' onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image4','','images/nav_tips_mover.jpg',1)\"><img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>"
			tbl = tbl + "<img src='images/nav_tips_mout.jpg' border='0' id='Image4' name='Image4' alt='our engineers car tips'>";
			tbl = tbl + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'></a>";
			tbl = tbl + "<br>"; //This line will make the submenu appear below the main one
			tbl = tbl + createSubMenu(submenu);
			tbl = tbl + "</td>";
			tbl = tbl + "</tr>";
			tbl = tbl + "</table>";
			break;
		}
		case "MainMenu5":{
			mainmenu = "tblnav5";
			tbl = "<table id='" + mainmenu + "' cellspacing='0' cellpadding='0' border='0' style='width:74px;z-index:99;height:38px'>";
			tbl = tbl + "<tr>";
			tbl = tbl + "<td align='left'>";
			tbl = tbl + "<a href='KA_enquiry.aspx' onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image5','','images/nav_faq_mover.jpg',1)\"><img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>"
			tbl = tbl + "<img src='images/nav_faq_mout.jpg' border='0' id='Image5' name='Image5' alt='car faqs'>";
			tbl = tbl + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'></a>";
			tbl = tbl + "</td>";
			tbl = tbl + "</tr>";
			tbl = tbl + "</table>";
			break;
		}
		case "MainMenu6":{
			mainmenu = "tblnav6";
			tbl = "<table id='" + mainmenu + "' cellspacing='0' cellpadding='0' border='0' style='width:92px;z-index:99;height:30px'>";
			tbl = tbl + "<tr>";
			tbl = tbl + "<td align='left'>";
			tbl = tbl + "<a href='KA_contactus.aspx' onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image6','','images/nav_contactus_mover.jpg',1)\"><img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>"
			tbl = tbl + "<img src='images/nav_contactus_mout.jpg' border='0' id='Image6' name='Image6' alt='our contact for cars servicing'>";
			tbl = tbl + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'></a>";
			tbl = tbl + "</td>";
			tbl = tbl + "</tr>";
			tbl = tbl + "</table>";
			break;
		}
		case "MainMenu7":{
			mainmenu = "tblnav7";
			tbl = "<table id='" + mainmenu + "' cellspacing='0' cellpadding='0' border='0' style='width:92px;z-index:99;height:30px'>";
			tbl = tbl + "<tr>";
			tbl = tbl + "<td align='left'>";
			tbl = tbl + "<a href='KA_yourenquiry.aspx' onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image7','','images/nav_enquiry_mover.jpg',1)\"><img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>"
			tbl = tbl + "<img src='images/nav_enquiry_mout.jpg' border='0' id='Image7' name='Image7' alt='car service enquiry'>";
			tbl = tbl + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'></a>";
			tbl = tbl + "</td>";
			tbl = tbl + "</tr>";
			tbl = tbl + "</table>";
			break;
		}
	}
	dt.write(tbl);
	//alert(tbl);
}