document.writeln('<table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0">');
document.writeln('<tr><td><table width="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"><tr>');
document.writeln('<td width="10">&nbsp;</td>');
document.writeln('<td height="33"><a href="' + main_menu_lin["menu3"] + '" class="title_lt_green_bold2">' + main_menu_res["menu3"] + '</a></td>');
document.writeln('</tr></table></td></tr><tr>');      
document.writeln('<td valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">');

if (name == "inves_securities" || name == "inves_ipo"  || name == "monthly"  || name == "quote" || name == "inves_ipo_centre" ){
	arrowfile = "img_submenu_arrow.gif";
}
else{
	arrowfile = "img_submenu_arrow_right.gif";
}
document.writeln('<tr id ="inves_securities" onmouseover="this.style.backgroundColor=\'#CCFFCC\';MM_swapImage(\'menuicon3-1\',\'\',\'' +lang_path + '/images/img_submenu_arrow.gif\',1)" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();MM_swapImgRestore();">');
document.writeln('<td><img src="' + lang_path + '/images/spacer.gif" width="10" height="1"></td>');
document.writeln('<td height="' + side_menu_hei["menu3-1"] + '"><a href="' + main_menu_lin["menu3-1"] + '" class="sidemenu_txt">' + main_menu_res["menu3-1"] + '</a></td>');
document.writeln('<td align="right" valign="top"><img src="' + lang_path + '/images/'+arrowfile+'" vspace="7" name="menuicon3-1"><img src="' + lang_path + '/images/spacer.gif" width="5" height="1"></td>');
document.writeln('</tr>');

if (name == "inves_securities" || name == "inves_ipo"  || name == "monthly"  || name == "quote" || name == "inves_ipo_centre"  )
{
	' sub meun 1 -1'
	document.writeln('<tr bgcolor="#FFFFFF"><td height="1" colspan="3"><img src="' + lang_path + '/images/spacer.gif" width="1" height="1"></td></tr>');
	/* ADDED 27 NOV 2007 */
	if (name == "inves_ipo_centre" || name == "inves_ipo"){
		arrowfile = "img_submenu_arrow.gif";
	}
	else{
		arrowfile = "img_submenu_arrow_right.gif";
	}
	/* --- END --- */
	document.writeln('<tr id="inves_ipo" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><td width="10">&nbsp;</td>');
	document.writeln('<td><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>');
	document.writeln('<td width="10"><img src="' + lang_path + '/images/spacer.gif" width="10" height="1"></td>');
	document.writeln('<td height="' + side_menu_hei["menu3-1-1"] + '"><a href="' + main_menu_lin["menu3-1-1"] + '" class="sidemenu_txt">' + main_menu_res["menu3-1-1"] + '</a></td>');
	document.writeln('<\/tr><\/table><\/td>');
/* ADDED 27 NOV 2007 */
	document.writeln('<td align="right" valign="top"><img src="' + lang_path + '/images/'+arrowfile+'" vspace="7" name="menuicon1-5-2"><img src="' + lang_path + '/images/spacer.gif" width="5" height="1"></td>');
/* --- END --- */
	document.writeln('<td></td>');
	document.writeln('<\/tr>');

	if (name == "inves_ipo_centre" || name == "inves_ipo"){
		// meun 1 - 1 - 1
		document.writeln('<tr bgcolor="#FFFFFF" id="submeun_1_1_1">');
		document.writeln('<td height="1" colspan="3"><img src="' + lang_path + '/images/spacer.gif" width="1" height="1"></td></tr>');
		document.writeln('<tr id="inves_ipo_centre" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();">');
		document.writeln('<td width="10">&nbsp;</td>');
		document.writeln('<td colspan="2">');
		document.writeln('<table width="100%" border="0" cellpadding="0" cellspacing="0">');
		document.writeln('<tr>');
		document.writeln('<td width="20"><img src="' + lang_path + '/images/spacer.gif" width="20" height="1"></td>');
		document.writeln('<td height="' + side_menu_hei["menu3-1-1-1"] + '"><a href="' + main_menu_lin["menu3-1-1-1"] + '" class="sidemenu_txt">' + main_menu_res["menu3-1-1-1"] + '</a></td>');
		document.writeln('<\/tr><\/table><\/td><td></td><\/tr>');
	}

	
	' sub meun 1 -2'
	document.writeln('<tr bgcolor="#FFFFFF"><td height="1" colspan="3"><img src="' + lang_path + '/images/spacer.gif" width="1" height="1"></td></tr>');
	document.writeln('<tr id="monthly" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><td width="10">&nbsp;</td>');
	document.writeln('<td><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>');
	document.writeln('<td width="10"><img src="' + lang_path + '/images/spacer.gif" width="10" height="1"></td>');
	document.writeln('<td height="' + side_menu_hei["menu3-1-2"] + '"><a href="' + main_menu_lin["menu3-1-2"] + '" class="sidemenu_txt">' + main_menu_res["menu3-1-2"] + '</a></td>');
	document.writeln('<\/tr><\/table><\/td><td></td><\/tr>');
	
	' sub meun 1 -3'
	document.writeln('<tr bgcolor="#FFFFFF"><td height="1" colspan="3"><img src="' + lang_path + '/images/spacer.gif" width="1" height="1"></td></tr>');
	document.writeln('<tr id="quote" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><td width="10">&nbsp;</td>');
	document.writeln('<td><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>');
	document.writeln('<td width="10"><img src="' + lang_path + '/images/spacer.gif" width="10" height="1"></td>');
	document.writeln('<td height="' + side_menu_hei["menu3-1-3"] + '"><a href="' + main_menu_lin["menu3-1-3"] + '" class="sidemenu_txt">' + main_menu_res["menu3-1-3"] + '</a></td>');
	document.writeln('<\/tr><\/table><\/td><td></td><\/tr>');
}


document.writeln('<tr bgcolor="#FFFFFF"><td height="1" colspan="3"><img src="' + lang_path + '/images/spacer.gif" width="1" height="1"></td></tr>');
if (name == "menu3-2" || name == "inves_equity"  || name == "inves_currency"){
	arrowfile = "img_submenu_arrow.gif";
}
else{
	arrowfile = "img_submenu_arrow_right.gif";
}
document.writeln('<tr id ="menu3-2" onmouseover="this.style.backgroundColor=\'#CCFFCC\';MM_swapImage(\'menuicon3-2\',\'\',\'' +lang_path + '/images/img_submenu_arrow.gif\',1)" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();MM_swapImgRestore();">');
document.writeln('<td>&nbsp;</td>');
document.writeln('<td height="' + side_menu_hei["menu3-2"] + '"><a href="' + main_menu_lin["menu3-2"] + '" class="sidemenu_txt">' + main_menu_res["menu3-2"] + '</a></td>');
document.writeln('<td align="right" valign="top"><img src="' + lang_path + '/images/'+arrowfile+'" vspace="7" name="menuicon3-2"><img src="' + lang_path + '/images/spacer.gif" width="5" height="1"></td>');
document.writeln('</tr>');

if (name == "menu3-2" || name == "inves_equity"  || name == "inves_currency")
{
	' sub meun 2 -1'
	document.writeln('<tr bgcolor="#FFFFFF"><td height="1" colspan="3"><img src="' + lang_path + '/images/spacer.gif" width="1" height="1"></td></tr>');
	document.writeln('<tr id="inves_equity" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><td width="10">&nbsp;</td>');
	document.writeln('<td><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>');
	document.writeln('<td width="10"><img src="' + lang_path + '/images/spacer.gif" width="10" height="1"></td>');
	document.writeln('<td height="' + side_menu_hei["menu3-2-1"] + '"><a href="' + main_menu_lin["menu3-2-1"] + '" class="sidemenu_txt">' + main_menu_res["menu3-2-1"] + '</a></td>');
	document.writeln('<\/tr><\/table><\/td><td></td><\/tr>');
	
	' sub meun 2 -2'
	document.writeln('<tr bgcolor="#FFFFFF"><td height="1" colspan="3"><img src="' + lang_path + '/images/spacer.gif" width="1" height="1"></td></tr>');
	document.writeln('<tr id="inves_currency" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><td width="10">&nbsp;</td>');
	document.writeln('<td><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>');
	document.writeln('<td width="10"><img src="' + lang_path + '/images/spacer.gif" width="10" height="1"></td>');
	document.writeln('<td height="' + side_menu_hei["menu3-2-2"] + '"><a href="' + main_menu_lin["menu3-2-2"] + '" class="sidemenu_txt">' + main_menu_res["menu3-2-2"] + '</a></td>');
	document.writeln('<\/tr><\/table><\/td><td></td><\/tr>');
	
}


document.writeln('<tr bgcolor="#FFFFFF"><td height="1" colspan="3"><img src="' + lang_path + '/images/spacer.gif" width="1" height="1"></td></tr>');
if (name == "inves_unit" || name == "monthly_inves"){
	arrowfile = "img_submenu_arrow.gif";
}
else{
	arrowfile = "img_submenu_arrow_right.gif";
}
document.writeln('<tr id ="inves_unit" onmouseover="this.style.backgroundColor=\'#CCFFCC\';MM_swapImage(\'menuicon3-3\',\'\',\'' +lang_path + '/images/img_submenu_arrow.gif\',1)" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();MM_swapImgRestore();">');
document.writeln('<td>&nbsp;</td>');
document.writeln('<td height="' + side_menu_hei["menu3-3"] + '"><a href="' + main_menu_lin["menu3-3"] + '" class="sidemenu_txt">' + main_menu_res["menu3-3"] + '</a></td>');
document.writeln('<td align="right" valign="top"><img src="' + lang_path + '/images/'+arrowfile+'" vspace="7" name="menuicon3-3"><img src="' + lang_path + '/images/spacer.gif" width="5" height="1"></td>');
document.writeln('</tr>');



if (name == "inves_unit" || name == "monthly_inves")
{
	' sub meun 3 -1'
	document.writeln('<tr bgcolor="#FFFFFF"><td height="1" colspan="3"><img src="' + lang_path + '/images/spacer.gif" width="1" height="1"></td></tr>');
	document.writeln('<tr id="monthly_inves" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><td width="10">&nbsp;</td>');
	document.writeln('<td><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>');
	document.writeln('<td width="10"><img src="' + lang_path + '/images/spacer.gif" width="10" height="1"></td>');
	document.writeln('<td height="' + side_menu_hei["menu3-3-1"] + '"><a href="' + main_menu_lin["menu3-3-1"] + '" class="sidemenu_txt">' + main_menu_res["menu3-3-1"] + '</a></td>');
	document.writeln('<\/tr><\/table><\/td><td></td><\/tr>');
		
}

document.writeln('<tr bgcolor="#FFFFFF"><td height="1" colspan="3"><img src="' + lang_path + '/images/spacer.gif" width="1" height="1"></td></tr>');
document.writeln('<tr id="inves_foreign" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><td>&nbsp;</td>');
document.writeln('<td height="' + side_menu_hei["menu3-4"] + '"><a href="' + main_menu_lin["menu3-4"] + '" class="sidemenu_txt">' + main_menu_res["menu3-4"] + '</a></td>');
document.writeln('<td></td></tr>');


document.writeln('<tr bgcolor="#FFFFFF"><td height="1" colspan="3"><img src="' + lang_path + '/images/spacer.gif" width="1" height="1"></td></tr>');
document.writeln('<tr id="inves_gold" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><td>&nbsp;</td>');
document.writeln('<td height="' + side_menu_hei["menu3-5"] + '"><a href="' + main_menu_lin["menu3-5"] + '" class="sidemenu_txt">' + main_menu_res["menu3-5"] + '</a></td>');
document.writeln('<td></td></tr>');

document.writeln('<tr bgcolor="#FFFFFF" class="bg_sidemenu_bg_col">');
document.writeln('<td height="1" colspan="3"><img src="' + lang_path + '/images/spacer.gif" width="1" height="1"></td>');
document.writeln('</tr></table></td></tr></table>');



changecolor();
