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["menu1"] + '" class="title_lt_green_bold2">' + main_menu_res["menu1"] + '</a></td>');
document.writeln('</tr></table></td></tr><tr>');    
document.writeln('<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">'); 

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="elitegold_banking" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><td>&nbsp;</td>');
document.writeln('<td height="' + side_menu_hei["menu1-11"] + '"><a href="' + main_menu_lin["menu1-11"] + '" class="sidemenu_txt">' + main_menu_res["menu1-11"] + '</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="elite_banking" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><td>&nbsp;</td>');
document.writeln('<td height="' + side_menu_hei["menu1-1"] + '"><a href="' + main_menu_lin["menu1-1"] + '" class="sidemenu_txt">' + main_menu_res["menu1-1"] + '</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="per_banking" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><td>&nbsp;</td>');
document.writeln('<td height="' + side_menu_hei["menu1-2"] + '"><a href="' + main_menu_lin["menu1-2"] + '" class="sidemenu_txt">' + main_menu_res["menu1-2"] + '</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>');


if (name == "deposit_services" || name == "hkd_deposit_ac" || name == "overnight_deposit_ac" || name == "special_sav_plan" || name == "kid_sav_plan" || name == "fcydeposit" || name == "easy_link_ac" || name == "easy_trans_service" || name == "rmb_service" ){
	arrowfile = "img_submenu_arrow.gif";
}
else{
	arrowfile = "img_submenu_arrow_right.gif";
}
document.writeln('<tr id ="deposit_services" onmouseover="this.style.backgroundColor=\'#CCFFCC\';MM_swapImage(\'menuicon1-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["menu1-3"] + '"><a href="' + main_menu_lin["menu1-3"] + '" class="sidemenu_txt">' + main_menu_res["menu1-3"] + '</a></td>');
document.writeln('<td align="right" valign="top"><img src="' + lang_path + '/images/'+arrowfile+'" vspace="7" name="menuicon1-3"><img src="' + lang_path + 'images/spacer.gif" width="5" height="1"></td>');
document.writeln('</tr>');


if (name == "deposit_services" || name == "hkd_deposit_ac" || name == "overnight_deposit_ac" || name == "special_sav_plan" || name == "kid_sav_plan" || name == "fcydeposit" || name == "easy_link_ac" || name == "easy_trans_service" || name == "rmb_service" ){
	' 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>');
	document.writeln('<tr id="hkd_deposit_ac" 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["menu1-3-1"] + '"><a href="' + main_menu_lin["menu1-3-1"] + '" class="sidemenu_txt">' + main_menu_res["menu1-3-1"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/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="overnight_deposit_ac" 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["menu1-3-2"] + '"><a href="' + main_menu_lin["menu1-3-2"] + '" class="sidemenu_txt">' + main_menu_res["menu1-3-2"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/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="special_sav_plan" 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["menu1-3-3"] + '"><a href="' + main_menu_lin["menu1-3-3"] + '" class="sidemenu_txt">' + main_menu_res["menu1-3-3"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');
	
	' sub meun 1 - 4'
	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="kid_sav_plan" 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["menu1-3-4"] + '"><a href="' + main_menu_lin["menu1-3-4"] + '" class="sidemenu_txt">' + main_menu_res["menu1-3-4"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');
	
	' sub meun 1 - 5'
	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="fcydeposit" 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["menu1-3-5"] + '"><a href="' + main_menu_lin["menu1-3-5"] + '" class="sidemenu_txt">' + main_menu_res["menu1-3-5"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');
	
	' sub meun 1 - 6'
	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="easy_link_ac" 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["menu1-3-6"] + '"><a href="' + main_menu_lin["menu1-3-6"] + '" class="sidemenu_txt">' + main_menu_res["menu1-3-6"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');
	
	' sub meun 1 - 7'
	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="easy_trans_service" 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["menu1-3-7"] + '"><a href="' + main_menu_lin["menu1-3-7"] + '" class="sidemenu_txt">' + main_menu_res["menu1-3-7"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');
	
	' sub meun 1 - 8'
	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="rmb_service" 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["menu1-3-8"] + '"><a href="' + main_menu_lin["menu1-3-8"] + '" class="sidemenu_txt">' + main_menu_res["menu1-3-8"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');
	' end sub meun 1 '
}




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 == "mortgage_services" || name == "mor_homesweet_plan" || name == "mor_superfirst" || name == "mor_flexi_plan" || name == "mor_hibor_plan" || name == "mor_hos_plan" || name == "mor_tps" || name == "mor_comm_indus_plan" || name == "mor_emortgage" || name == "mor_flex_repayment"){
	arrowfile = "img_submenu_arrow.gif";
}
else{
	arrowfile = "img_submenu_arrow_right.gif";
}
document.writeln('<tr id ="mortgage_services" onmouseover="this.style.backgroundColor=\'#CCFFCC\';MM_swapImage(\'menuicon1-4\',\'\',\'' +lang_path + '/images/img_submenu_arrow.gif\',1)" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();MM_swapImgRestore();">');
document.writeln('<td width="10">&nbsp;</td>'); 
document.writeln('<td height="' + side_menu_hei["menu1-4"] + '"><a href="' + main_menu_lin["menu1-4"] + '" class="sidemenu_txt">' + main_menu_res["menu1-4"] + '</a></td>');
document.writeln('<td align="right" valign="top"><img src="' + lang_path + '/images/'+arrowfile+'" vspace="7" name="menuicon1-4"><img src="' + lang_path + 'images/spacer.gif" width="5" height="1"></td>');
document.writeln('</tr>');


if (name == "mortgage_services" || name == "mor_homesweet_plan" || name == "mor_superfirst" || name == "mor_flexi_plan" || name == "mor_hibor_plan" || name == "mor_hos_plan" || name == "mor_tps" || name == "mor_comm_indus_plan" || name == "mor_emortgage" || name == "mor_flex_repayment"){
	' 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="mor_homesweet_plan" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><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="10"><img src="' + lang_path + 'images/spacer.gif" width="10" height="1"></td>');
	document.writeln('<td height="' + side_menu_hei["menu1-4-1"] + '"><a href="' + main_menu_lin["menu1-4-1"] + '" class="sidemenu_txt">' + main_menu_res["menu1-4-1"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');
	
	
	' sub meun 2 - 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="mor_flexi_plan" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><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="10"><img src="' + lang_path + 'images/spacer.gif" width="10" height="1"></td>');
	document.writeln('<td height="' + side_menu_hei["menu1-4-3"] + '"><a href="' + main_menu_lin["menu1-4-3"] + '" class="sidemenu_txt">' + main_menu_res["menu1-4-3"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');
	
	' sub meun 2 - 4'
	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="mor_hibor_plan" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><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="10"><img src="' + lang_path + 'images/spacer.gif" width="10" height="1"></td>');
	document.writeln('<td height="' + side_menu_hei["menu1-4-4"] + '"><a href="' + main_menu_lin["menu1-4-4"] + '" class="sidemenu_txt">' + main_menu_res["menu1-4-4"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');
	
	' sub meun 2 - 5'
	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="mor_hos_plan" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><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="10"><img src="' + lang_path + 'images/spacer.gif" width="10" height="1"></td>');
	document.writeln('<td height="' + side_menu_hei["menu1-4-5"] + '"><a href="' + main_menu_lin["menu1-4-5"] + '" class="sidemenu_txt">' + main_menu_res["menu1-4-5"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');
	
	' sub meun 2 - 6'
	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="mor_tps" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><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="10"><img src="' + lang_path + 'images/spacer.gif" width="10" height="1"></td>');
	document.writeln('<td height="' + side_menu_hei["menu1-4-6"] + '"><a href="' + main_menu_lin["menu1-4-6"] + '" class="sidemenu_txt">' + main_menu_res["menu1-4-6"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');
	
	' sub meun 2 - 7'
	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="mor_comm_indus_plan" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><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="10"><img src="' + lang_path + 'images/spacer.gif" width="10" height="1"></td>');
	document.writeln('<td height="' + side_menu_hei["menu1-4-7"] + '"><a href="' + main_menu_lin["menu1-4-7"] + '" class="sidemenu_txt">' + main_menu_res["menu1-4-7"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');
	
	' sub meun 2 - 8'
	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="mor_emortgage" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><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="10"><img src="' + lang_path + 'images/spacer.gif" width="10" height="1"></td>');
	document.writeln('<td height="' + side_menu_hei["menu1-4-8"] + '"><a href="' + main_menu_lin["menu1-4-8"] + '" class="sidemenu_txt">' + main_menu_res["menu1-4-8"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');
	
	' sub meun 2 - 9'
	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="mor_flex_repayment" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><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="10"><img src="' + lang_path + 'images/spacer.gif" width="10" height="1"></td>');
	document.writeln('<td height="' + side_menu_hei["menu1-4-9"] + '"><a href="' + main_menu_lin["menu1-4-9"] + '" class="sidemenu_txt">' + main_menu_res["menu1-4-9"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');
	// end sub meun 2 
}

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 == "card_services" || name == "card_services_promo" || name == "gen_card_promo" || name == "unionpay_promo" || name == "card_services_types" || name == "card_services_flexi" || name == "card_services_privileges" || name == "card_services_octopus" || name == "card_services_merchant" || name == "card_services_types_platinum" || name == "card_services_types_affinity" || name == "card_services_types_cash" || name == "card_services_types_jcb" || name == "card_services_types_gold" || name == "card_services_privileges_interest" || name == "card_services_privileges_reward" || name == "card_services_privileges_product" || name == "card_services_privileges_dining"  || name == "card_newsletter_offer" || name == "unionpay_promo" || name == "card_info_notices"){
	arrowfile = "img_submenu_arrow.gif";
}
else{
	arrowfile = "img_submenu_arrow_right.gif";
}
document.writeln('<tr id ="card_services" onmouseover="this.style.backgroundColor=\'#CCFFCC\';MM_swapImage(\'menuicon1-5\',\'\',\'' +lang_path + '/images/img_submenu_arrow.gif\',1);" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();MM_swapImgRestore();">');
document.writeln('<td width="10">&nbsp;</td>'); 
document.writeln('<td height="' + side_menu_hei["menu1-5"] + '"><a href="' + main_menu_lin["menu1-5"] + '" class="sidemenu_txt">' + main_menu_res["menu1-5"] + '</a></td>');
document.writeln('<td align="right" valign="top"><img src="' + lang_path + '/images/'+arrowfile+'" vspace="7" name="menuicon1-5"><img src="' + lang_path + 'images/spacer.gif" width="5" height="1"></td>');
document.writeln('</tr>');

if (name == "card_services" || name == "card_services_promo" || name == "gen_card_promo" || name == "unionpay_promo" || name == "card_services_types" || name == "card_services_flexi" || name == "card_services_privileges" || name == "card_services_octopus" || name == "card_services_merchant" || name == "card_services_types_platinum" || name == "card_services_types_affinity" || name == "card_services_types_cash" || name == "card_services_types_jcb" || name == "card_services_types_gold" || name == "card_services_privileges_interest" || name == "card_services_privileges_reward" || name == "card_services_privileges_product" || name == "card_services_privileges_dining"  || name == "card_newsletter_offer" || name == "unionpay_promo" || name == "card_info_notices"){
	// 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="card_services_promo" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><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="10"><img src="' + lang_path + 'images/spacer.gif" width="10" height="1"></td>');
	document.writeln('<td height="' + side_menu_hei["menu1-5-1"] + '"><a href="' + main_menu_lin["menu1-5-1"] + '" class="sidemenu_txt">' + main_menu_res["menu1-5-1"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');
	
	// meun 3 - 7 
	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="gen_card_promo" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><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="10"><img src="' + lang_path + 'images/spacer.gif" width="10" height="1"></td>');
	document.writeln('<td height="' + side_menu_hei["menu1-5-7"] + '"><a href="' + main_menu_lin["menu1-5-7"] + '" class="sidemenu_txt">' + main_menu_res["menu1-5-7"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');

	// meun 3 - 8 
	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="unionpay_promo" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><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="10"><img src="' + lang_path + 'images/spacer.gif" width="10" height="1"></td>');
	document.writeln('<td height="' + side_menu_hei["menu1-5-8"] + '"><a href="' + main_menu_lin["menu1-5-8"] + '" class="sidemenu_txt">' + main_menu_res["menu1-5-8"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');
	
	// meun 3 - 2
	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 == "card_services_types" || name == "card_services_types_platinum" || name == "card_services_types_affinity" || name == "card_services_types_cash" || name == "card_services_types_jcb" || name == "card_services_types_gold"){
		arrowfile = "img_submenu_arrow.gif";
	}
	else{
		arrowfile = "img_submenu_arrow_right.gif";
	}
	document.writeln('<tr id ="card_services_types" onmouseover="this.style.backgroundColor=\'#CCFFCC\';MM_swapImage(\'menuicon1-5-2\',\'\',\'' +lang_path + '/images/img_submenu_arrow.gif\',1)" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();MM_swapImgRestore();"><td width="10">&nbsp;</td>');	
	document.writeln('<td class="sidemenu_txt">');
	document.writeln('<table width="100%" border="0" cellpadding="0" cellspacing="0">');
	document.writeln('<tr>');
	document.writeln('<td width="9"><img src="' + lang_path + 'images/spacer.gif" width="9" height="1"></td>');
	document.writeln('<td height="' + side_menu_hei["menu1-5-2"] + '"><a href="' + main_menu_lin["menu1-5-2"] + '" class="sidemenu_txt">' + main_menu_res["menu1-5-2"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	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>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');
	
	if (name == "card_services_types" || name == "card_services_types_platinum" || name == "card_services_types_affinity" || name == "card_services_types_cash" || name == "card_services_types_jcb" || name == "card_services_types_gold"){
		// meun 3 - 2 - 1
		document.writeln('<tr bgcolor="#FFFFFF" id="submeun_3_2_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="card_services_types_platinum" 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["menu1-5-2-1"] + '"><a href="' + main_menu_lin["menu1-5-2-1"] + '" class="sidemenu_txt">' + main_menu_res["menu1-5-2-1"] + '</a></td>');
		document.writeln('<\/tr><\/table><\/td><td></td><\/tr>');
		
		
		// meun 3 - 2 - 2
		document.writeln('<tr bgcolor="#FFFFFF" id="submeun_3_2_2">');
		document.writeln('<td height="1" colspan="3"><img src="' + lang_path + 'images/spacer.gif" width="1" height="1"></td></tr>');
		document.writeln('<tr id="card_services_types_affinity" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><td width="10">&nbsp;</td>');
		document.writeln('<td colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0"><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["menu1-5-2-2"] + '"><a href="' + main_menu_lin["menu1-5-2-2"] + '" class="sidemenu_txt">' + main_menu_res["menu1-5-2-2"] + '</a></td>');
		document.writeln('<\/tr><\/table><\/td><td></td><\/tr>');
		
		
		// meun 3 - 2 - 3
		document.writeln('<tr bgcolor="#FFFFFF" id="submeun_3_2_3">');
		document.writeln('<td height="1" colspan="3"><img src="' + lang_path + 'images/spacer.gif" width="1" height="1"></td></tr>');
		document.writeln('<tr id="card_services_types_cash" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();">');
		document.writeln('<td width="10">&nbsp;</td>');
		document.writeln('<td colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0"><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["menu1-5-2-3"] + '"><a href="' + main_menu_lin["menu1-5-2-3"] + '" class="sidemenu_txt">' + main_menu_res["menu1-5-2-3"] + '</a></td>');
		document.writeln('<\/tr><\/table><\/td><td></td><\/tr>');
		
		
		// meun 3 - 2 - 4
		document.writeln('<tr bgcolor="#FFFFFF" id="submeun_3_2_4">');
		document.writeln('<td height="1" colspan="3"><img src="' + lang_path + 'images/spacer.gif" width="1" height="1"></td></tr>');
		document.writeln('<tr id="card_services_types_jcb" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();">');
		document.writeln('<td width="10">&nbsp;</td>');
		document.writeln('<td colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0"><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["menu1-5-2-4"] + '"><a href="' + main_menu_lin["menu1-5-2-4"] + '" class="sidemenu_txt">' + main_menu_res["menu1-5-2-4"] + '</a></td>');
		document.writeln('<\/tr><\/table><\/td><td></td><\/tr>');
		
		
		// meun 3 - 2 - 5
		document.writeln('<tr bgcolor="#FFFFFF" id="submeun_3_2_5">');
		document.writeln('<td height="1" colspan="3"><img src="' + lang_path + 'images/spacer.gif" width="1" height="1"></td></tr>');
		document.writeln('<tr id="card_services_types_gold" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();">');
		document.writeln('<td width="10">&nbsp;</td>');
		document.writeln('<td colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0"><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["menu1-5-2-5"] + '"><a href="' + main_menu_lin["menu1-5-2-5"] + '" class="sidemenu_txt">' + main_menu_res["menu1-5-2-5"] + '</a></td>');
		document.writeln('<\/tr><\/table><\/td><td></td><\/tr>');
		
	}
		
	// meun 3 - 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="card_services_flexi" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><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="10"><img src="' + lang_path + 'images/spacer.gif" width="10" height="1"></td>');
	document.writeln('<td height="' + side_menu_hei["menu1-5-3"] + '"><a href="' + main_menu_lin["menu1-5-3"] + '" class="sidemenu_txt">' + main_menu_res["menu1-5-3"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');

	
	// meun 3 - 4
	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 == "card_services_privileges" || name == "card_services_privileges_interest" || name == "card_services_privileges_reward" || name == "card_services_privileges_product" || name == "card_services_privileges_dining"  || name == "card_newsletter_offer"){
		arrowfile = "img_submenu_arrow.gif";
	}
	else{
		arrowfile = "img_submenu_arrow_right.gif";
	}
	document.writeln('<tr id ="card_services_privileges" onmouseover="this.style.backgroundColor=\'#CCFFCC\';MM_swapImage(\'menuicon1-5-4\',\'\',\'' +lang_path + '/images/img_submenu_arrow.gif\',1)" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();MM_swapImgRestore();"><td width="10">&nbsp;</td>');
	document.writeln('<td class="sidemenu_txt">');
	document.writeln('<table width="100%" border="0" cellpadding="0" cellspacing="0">');
	document.writeln('<tr>');
	document.writeln('<td width="9"><img src="' + lang_path + 'images/spacer.gif" width="9" height="1"></td>');
	document.writeln('<td height="' + side_menu_hei["menu1-5-4"] + '"><a href="' + main_menu_lin["menu1-5-4"] + '" class="sidemenu_txt">' + main_menu_res["menu1-5-4"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td align="right" valign="top"><img src="' + lang_path + '/images/'+arrowfile+'" vspace="7" name="menuicon1-5-4"><img src="' + lang_path + 'images/spacer.gif" width="5" height="1"></td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');
	
//show submeun 3-4'
if (name == "card_services_privileges" || name == "card_services_privileges_interest" || name == "card_services_privileges_reward" || name == "card_services_privileges_product" || name == "card_services_privileges_dining"  || name == "card_newsletter_offer"){

		// meun 3 - 4 - 6
		document.writeln('<tr bgcolor="#FFFFFF" id="submeun_3_4_6">');
		document.writeln('<td height="1" colspan="3"><img src="' + lang_path + 'images/spacer.gif" width="1" height="1"></td></tr>');
		document.writeln('<tr id="card_newsletter_offer" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();">');
		document.writeln('<td width="10">&nbsp;</td>');
		document.writeln('<td colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0"><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["menu1-5-4-6"] + '"><a href="' + main_menu_lin["menu1-5-4-6"] + '" class="sidemenu_txt">' + main_menu_res["menu1-5-4-6"] + '</a></td>');
		document.writeln('<\/tr><\/table><\/td><td></td><\/tr>');
		
		
		// meun 3 - 4 - 5
		document.writeln('<tr bgcolor="#FFFFFF" id="submeun_3_4_5">');
		document.writeln('<td height="1" colspan="3"><img src="' + lang_path + 'images/spacer.gif" width="1" height="1"></td></tr>');
		document.writeln('<tr id="card_services_privileges_dining" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();">');
		document.writeln('<td width="10">&nbsp;</td>');
		document.writeln('<td colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0"><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["menu1-5-4-5"] + '"><a href="' + main_menu_lin["menu1-5-4-5"] + '" class="sidemenu_txt">' + main_menu_res["menu1-5-4-5"] + '</a></td>');
		document.writeln('<\/tr><\/table><\/td><td></td><\/tr>');
		
		// meun 3 - 4 - 1
		document.writeln('<tr bgcolor="#FFFFFF" id="submeun_3_4_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="card_services_privileges_interest" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();">');
		document.writeln('<td width="10">&nbsp;</td>');
		document.writeln('<td colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0"><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["menu1-5-4-1"] + '"><a href="' + main_menu_lin["menu1-5-4-1"] + '" class="sidemenu_txt">' + main_menu_res["menu1-5-4-1"] + '</a></td>');
		document.writeln('<\/tr><\/table><\/td><td></td><\/tr>');
		
		// meun 3 - 4 - 2
		document.writeln('<tr bgcolor="#FFFFFF" id="submeun_3_4_2">');
		document.writeln('<td height="1" colspan="3"><img src="' + lang_path + 'images/spacer.gif" width="1" height="1"></td></tr>');
		document.writeln('<tr id="card_services_privileges_reward" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();">');
		document.writeln('<td width="10">&nbsp;</td>');
		document.writeln('<td colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0"><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["menu1-5-4-2"] + '"><a href="' + main_menu_lin["menu1-5-4-2"] + '" class="sidemenu_txt">' + main_menu_res["menu1-5-4-2"] + '</a></td>');
		document.writeln('<\/tr><\/table><\/td><td></td><\/tr>');
		
		
		// meun 3 - 4 - 3
		document.writeln('<tr bgcolor="#FFFFFF" id="submeun_3_4_3">');
		document.writeln('<td height="1" colspan="3"><img src="' + lang_path + 'images/spacer.gif" width="1" height="1"></td></tr>');
		document.writeln('<tr id="card_services_privileges_product" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();">');
		document.writeln('<td width="10">&nbsp;</td>');
		document.writeln('<td colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0"><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["menu1-5-4-3"] + '"><a href="' + main_menu_lin["menu1-5-4-3"] + '" class="sidemenu_txt">' + main_menu_res["menu1-5-4-3"] + '</a></td>');
		document.writeln('<\/tr><\/table><\/td><td></td><\/tr>');
	
	}
	
	// meun 3 - 5
	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="card_services_octopus" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><td width="10">&nbsp;</td>');
	document.writeln('<td height="5" class="sidemenu_txt" colspan="2">');
	document.writeln('<table width="100%" border="0" cellpadding="0" cellspacing="0">');
	document.writeln('<tr>');
	document.writeln('<td width="8"><img src="' + lang_path + 'images/spacer.gif" width="8" height="1"></td>');
	document.writeln('<td height="' + side_menu_hei["menu1-5-5"] + '"><a href="' + main_menu_lin["menu1-5-5"] + '" class="sidemenu_txt">' + main_menu_res["menu1-5-5"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');

	// meun 3 - 9
	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="card_info_notices" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><td width="10">&nbsp;</td>');
	document.writeln('<td height="5" class="sidemenu_txt" colspan="2">');
	document.writeln('<table width="100%" border="0" cellpadding="0" cellspacing="0">');
	document.writeln('<tr>');
	document.writeln('<td width="8"><img src="' + lang_path + 'images/spacer.gif" width="8" height="1"></td>');
	document.writeln('<td height="' + side_menu_hei["menu1-5-9"] + '"><a href="' + main_menu_lin["menu1-5-9"] + '" class="sidemenu_txt">' + main_menu_res["menu1-5-9"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');
	
	
	// meun 3 - 6
	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="card_services_merchant" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><td width="10">&nbsp;</td>');
	document.writeln('<td class="sidemenu_txt">');
	document.writeln('<table width="100%" border="0" cellpadding="0" cellspacing="0">');
	document.writeln('<tr>');
	document.writeln('<td width="8"><img src="' + lang_path + 'images/spacer.gif" width="8" height="1"></td>');
	document.writeln('<td height="' + side_menu_hei["menu1-5-6"] + '"><a href="' + main_menu_lin["menu1-5-6"] + '" class="sidemenu_txt">' + main_menu_res["menu1-5-6"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/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 == "con_credit" || name == "con_credit_home" || name == "con_credit_car"){
	arrowfile = "img_submenu_arrow.gif";
}
else{
	arrowfile = "img_submenu_arrow_right.gif";
}
document.writeln('<tr id ="con_credit" onmouseover="this.style.backgroundColor=\'#CCFFCC\';MM_swapImage(\'menuicon1-6\',\'\',\'' +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["menu1-6"] + '"><a href="' + main_menu_lin["menu1-6"] + '" class="sidemenu_txt">' + main_menu_res["menu1-6"] + '</a></td>');
document.writeln('<td align="right" valign="top"><img src="' + lang_path + '/images/'+arrowfile+'" vspace="7" name="menuicon1-6"><img src="' + lang_path + 'images/spacer.gif" width="5" height="1"></td>');
document.writeln('</tr>');

if (name == "con_credit" || name == "con_credit_home" || name == "con_credit_car" || name == "overdraft"){
		

	// meun 4 - 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="con_credit_home" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><td width="10">&nbsp;</td>');
	document.writeln('<td class="sidemenu_txt">');
	document.writeln('<table width="100%" border="0" cellpadding="0" cellspacing="0">');
	document.writeln('<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["menu1-6-1"] + '"><a href="' + main_menu_lin["menu1-6-1"] + '" class="sidemenu_txt">' + main_menu_res["menu1-6-1"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');
	
	// meun 4 - 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="overdraft" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><td width="10">&nbsp;</td>');
	document.writeln('<td class="sidemenu_txt">');
	document.writeln('<table width="100%" border="0" cellpadding="0" cellspacing="0">');
	document.writeln('<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["menu1-6-3"] + '"><a href="' + main_menu_lin["menu1-6-3"] + '" class="sidemenu_txt">' + main_menu_res["menu1-6-3"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');
	
	// meun 4 - 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="con_credit_car" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><td width="10">&nbsp;</td>');
	document.writeln('<td class="sidemenu_txt">');
	document.writeln('<table width="100%" border="0" cellpadding="0" cellspacing="0">');
	document.writeln('<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["menu1-6-2"] + '"><a href="' + main_menu_lin["menu1-6-2"] + '" class="sidemenu_txt">' + main_menu_res["menu1-6-2"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');
	' end submeun 4'
}

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 == "insu_life_plan" || name == "insu_homeowner_plan" || name == "insurance_services" || name == "insu_travelon" || name == "insu_primahome"  || name == "insu_primamaid"  || name == "insu_primachina"  ){
	arrowfile = "img_submenu_arrow.gif";
}
else{
	arrowfile = "img_submenu_arrow_right.gif";
}
document.writeln('<tr id ="insurance_services" onmouseover="this.style.backgroundColor=\'#CCFFCC\';MM_swapImage(\'menuicon1-7\',\'\',\'' +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["menu1-7"] + '"><a href="' + main_menu_lin["menu1-7"] + '" class="sidemenu_txt">' + main_menu_res["menu1-7"] + '</a></td>');
document.writeln('<td align="right" valign="top"><img src="' + lang_path + '/images/'+arrowfile+'" vspace="7" name="menuicon1-7"><img src="' + lang_path + 'images/spacer.gif" width="5" height="1"></td>');
document.writeln('</tr>');

if (name == "insu_life_plan" || name == "insu_homeowner_plan" || name == "insurance_services" || name == "insu_travelon" || name == "insu_primahome"  || name == "insu_primamaid"  || name == "insu_primachina"){
		
	// meun 7 - 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="insu_primahome" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><td width="10">&nbsp;</td>');
	document.writeln('<td class="sidemenu_txt">');
	document.writeln('<table width="100%" border="0" cellpadding="0" cellspacing="0">');
	document.writeln('<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["menu1-7-2"] + '"><a href="' + main_menu_lin["menu1-7-2"] + '" class="sidemenu_txt">' + main_menu_res["menu1-7-2"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');

	// meun 7 - 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="insu_primamaid" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><td width="10">&nbsp;</td>');
	document.writeln('<td class="sidemenu_txt">');
	document.writeln('<table width="100%" border="0" cellpadding="0" cellspacing="0">');
	document.writeln('<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["menu1-7-3"] + '"><a href="' + main_menu_lin["menu1-7-3"] + '" class="sidemenu_txt">' + main_menu_res["menu1-7-3"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');

	// meun 7 - 4
	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="insu_primachina" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><td width="10">&nbsp;</td>');
	document.writeln('<td class="sidemenu_txt">');
	document.writeln('<table width="100%" border="0" cellpadding="0" cellspacing="0">');
	document.writeln('<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["menu1-7-4"] + '"><a href="' + main_menu_lin["menu1-7-4"] + '" class="sidemenu_txt">' + main_menu_res["menu1-7-4"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');

	// meun 7 - 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="insu_travelon" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><td width="10">&nbsp;</td>');
	document.writeln('<td class="sidemenu_txt">');
	document.writeln('<table width="100%" border="0" cellpadding="0" cellspacing="0">');
	document.writeln('<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["menu1-7-1"] + '"><a href="' + main_menu_lin["menu1-7-1"] + '" class="sidemenu_txt">' + main_menu_res["menu1-7-1"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');

	// meun 7 - 5
	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="insu_life_plan" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><td width="10">&nbsp;</td>');
	document.writeln('<td class="sidemenu_txt">');
	document.writeln('<table width="100%" border="0" cellpadding="0" cellspacing="0">');
	document.writeln('<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["menu1-7-5"] + '"><a href="' + main_menu_lin["menu1-7-5"] + '" class="sidemenu_txt">' + main_menu_res["menu1-7-5"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');
	
	
	// meun 7 - 6
	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="insu_homeowner_plan" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><td width="10">&nbsp;</td>');
	document.writeln('<td class="sidemenu_txt">');
	document.writeln('<table width="100%" border="0" cellpadding="0" cellspacing="0">');
	document.writeln('<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["menu1-7-6"] + '"><a href="' + main_menu_lin["menu1-7-6"] + '" class="sidemenu_txt">' + main_menu_res["menu1-7-6"] + '</a></td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table><\/td>');
	document.writeln('<td></td>');
	document.writeln('<\/tr>');
	'end sub meun5'
}

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="remittance" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><td>&nbsp;</td>');
document.writeln('<td height="' + side_menu_hei["menu1-8"] + '"><a href="' + main_menu_lin["menu1-8"] + '" class="sidemenu_txt">' + main_menu_res["menu1-8"] + '</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="menu1-9" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><td>&nbsp;</td>');
document.writeln('<td height="' + side_menu_hei["menu1-9"] + '"><a href="' + main_menu_lin["menu1-9"] + '" class="sidemenu_txt">' + main_menu_res["menu1-9"] + '</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="general_banking" onmouseover="this.style.backgroundColor=\'#CCFFCC\'" onmouseout="this.style.backgroundColor=\'#F3F4F3\';changecolor();"><td>&nbsp;</td>');
document.writeln('<td height="' + side_menu_hei["menu1-10"] + '"><a href="' + main_menu_lin["menu1-10"] + '" class="sidemenu_txt">' + main_menu_res["menu1-10"] + '</a></td>');
document.writeln('<td></td></tr>');
document.writeln('<tr bgcolor="#FFFFFF">');
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();