function mtdCreateLeftIndex(){
	var html="";
	var langPath = (window.location.href.indexOf('/html/') > 0 ) ? '/html/':'/zh-hk/';
	
	// preload images
	MM_preloadImages('images/menu_01_o.gif', langPath + 'images/menu_02_o.gif', langPath + 'images/menu_03_o.gif', langPath + 'images/menu_04_o.gif', langPath + 'images/menu_05_o.gif', langPath + 'images/menu_06_o.gif', langPath + 'images/menu_07_o.gif', langPath + 'images/menu_08_o.gif', langPath + 'images/menu_09_o.gif');
	
	html +="<table width=100% height=46 border=0 cellpadding=0 cellspacing=0>";
	html +="<tr align=left valign=top>";
	html +="<td width=70><img src=" + langPath + "images/menu_left.gif width=70 height=46></td>";
	
	if (mstrPageCode == "DEFAULT"){
		html +="<td background=" + langPath + "images/menu_bg.gif>";
		html += "<a href="+ langPath +"home.php onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('Image3','', '" + langPath + "images/menu_01_o.gif',1)><img src=" + langPath + "images/menu_01.gif name=Image3 border=0></a>";
		html +="<img src=" + langPath + "images/spacer.gif width=25 height=46>";
		html +="<a href="+ langPath +"/news.php onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('Image5','', '" + langPath + "images/menu_02_o.gif',1)><img src=" + langPath + "images/menu_02.gif name=Image5 border=0></a>";
		html +="<img src=" + langPath + "images/spacer.gif width=25 height=46>";
		html +="<a href="+ langPath +"album.php onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('Image7','', '" + langPath + "images/menu_03_o.gif',1)><img src=" + langPath + "images/menu_03.gif name=Image7 border=0></a>";
		html +="<img src=" + langPath + "images/spacer.gif width=25 height=46>";
	 // html +="<a href=audio.php onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('Image9','', '" + langPath + "images/menu_04_o.gif',1)><img src=" + langPath + "images/menu_04.gif name=Image9 width=41 height=46 border=0></a>";
	 // html +="<img src=" + langPath + "images/spacer.gif width=25 height=46>";
		html +="<a href="+ langPath +"video.php onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('Image11','', '" + langPath + "images/menu_05_o.gif',1)><img src=" + langPath + "images/menu_05.gif name=Image11 border=0></a>";
		html +="<img src=" + langPath + "images/spacer.gif width=25 height=46>";
		html +="<a href="+ langPath +"gallery.php onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('Image13','', '" + langPath + "images/menu_07_o.gif',1)><img src=" + langPath + "images/menu_07.gif name=Image13 border=0></a>";
		html +="<img src=" + langPath + "images/spacer.gif width=25 height=46>";
		html +="<a href="+ langPath +"company.php onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('Image15','', '" + langPath + "images/menu_08_o.gif',1)><img src=" + langPath + "images/menu_08.gif name=Image15 border=0></a>";
		html +="<img src=" + langPath + "images/spacer.gif width=25 height=46>";
		html +="<a href="+ langPath +"contactUs.php onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('Image17','', '" + langPath + "images/menu_09_o.gif',1)><img src=" + langPath + "images/menu_09.gif name=Image17 border=0></a>";
		
		//Forum
		//html +="<img src=" + langPath + "images/spacer.gif width=25 height=46>";
		//html +='<a href="/forum/bbs/index.php" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage(\'Image18\',\'\',\'images/menu_10_o.gif\',1);"><img src="images/menu_10.gif" id="Image18" name="Image18" border="0"></a>';
		
		// Member Area
		//html += '<img src="'+ langPath + 'images/spacer.gif" width="25" height="46" />';
		//html +='<a href="' + langPath + 'mem_welfare.php" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage(\'Image19\',\'\',\'images/menu_11_o.gif\',1);"><img src="images/menu_11.gif" id="Image19" name="Image19" border="0"></a>';
		
		// Love-Da-Chart
		html +="<img src=" + langPath + "images/spacer.gif width=25 height=46>";
		html +='<a href="' + langPath + 'chart.php" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage(\'Image20\',\'\',\'images/menu_12_o.gif\',1);"><img src="images/menu_12.gif" id="Image20" name="Image20" border="0"></a>';
		html +="<img src=" + langPath + "images/spacer.gif width=15 height=46></td>";
	
	}else{
		
		html +="<td background=" + langPath + "images/menu_bg.gif>";
		if (mstrPageCode == "HOME"){		
			html +="<img src=" + langPath + "images/menu_01_o.gif name=Image3 height=46 border=0>";
		    html +="<img src=" + langPath + "images/spacer.gif width=25 height=46>";
		}else{
		    html +="<a href="+ langPath +"home.php onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('Image3','','" + langPath + "images/menu_01_o.gif',1)><img src=" + langPath + "images/menu_01.gif name=Image3 border=0></a>";
		    html +="<img src=" + langPath + "images/spacer.gif width=25 height=46>";
		}
		if (mstrPageCode == "NEWS"){				
			html +="<img src=" + langPath + "images/menu_02_o.gif name=Image5 border=0>";
		    html +="<img src=" + langPath + "images/spacer.gif width=25 height=46>";
		}else{
		    html +="<a href="+ langPath +"news.php onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('Image5','','" + langPath + "images/menu_02_o.gif',1)><img src=" + langPath + "images/menu_02.gif name=Image5 border=0></a>";
		    html +="<img src=" + langPath + "images/spacer.gif width=25 height=46>";
		}
		if (mstrPageCode == "ALBUM"){				
			html +="<img src=" + langPath + "images/menu_03_o.gif name=Image7 border=0>";
		    html +="<img src=" + langPath + "images/spacer.gif width=25 height=46>";
		}else{
		    html +="<a href="+ langPath +"album.php onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('Image7','','" + langPath + "images/menu_03_o.gif',1)><img src=" + langPath + "images/menu_03.gif name=Image7 border=0></a>";
		    html +="<img src=" + langPath + "images/spacer.gif width=25 height=46>";
		}
		// if (mstrPageCode == "AUDIO"){				
		//	html +="<img src=" + langPath + "images/menu_04_o.gif name=Image9 width=41 height=46 border=0>";
		//  html +="<img src=" + langPath + "images/spacer.gif width=25 height=46>";
		// }else{
		//  html +="<a href=audio.php onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('Image9','','" + langPath + "images/menu_04_o.gif',1)><img src=" + langPath + "images/menu_04.gif name=Image9 width=41 height=46 border=0></a>";
		//  html +="<img src=" + langPath + "images/spacer.gif width=25 height=46>";
		//}
		if (mstrPageCode == "VIDEO"){				
			html +="<img src=" + langPath + "images/menu_05_o.gif name=Image11 border=0>";
		    html +="<img src=" + langPath + "images/spacer.gif width=25 height=46>";
		}else{
		    html +="<a href="+ langPath +"video.php onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('Image11','','" + langPath + "images/menu_05_o.gif',1)><img src=" + langPath + "images/menu_05.gif name=Image11 border=0></a>";
		    html +="<img src=" + langPath + "images/spacer.gif width=25 height=46>";
		}
		if (mstrPageCode == "PHOTO"){				
			html +="<img src=" + langPath + "images/menu_07_o.gif name=Image13 border=0>";
		    html +="<img src=" + langPath + "images/spacer.gif width=25 height=46>";
		}else{
		    html +="<a href="+ langPath +"gallery.php onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('Image13','','" + langPath +"images/menu_07_o.gif',1)><img src=" + langPath + "images/menu_07.gif name=Image13 border=0></a>";
		    html +="<img src=" + langPath + "images/spacer.gif width=25 height=46>";
		}
		if (mstrPageCode == "COMPANY"){				
			html +="<img src=" + langPath + "images/menu_08_o.gif name=Image15 border=0>";
		}else{
			html +="<a href="+ langPath +"company.php onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('Image15','','" + langPath + "images/menu_08_o.gif',1)><img src=" + langPath + "images/menu_08.gif name=Image15 border=0></a>";
		}
		html +="<img src=" + langPath + "images/spacer.gif width=25 height=46>";
			
		if (mstrPageCode == "CONTACTUS"){				
		   html +="<img src=" + langPath + "images/menu_09_o.gif name=Image17 width=71 height=46 border=0>";
		}else{
			html +="<a href="+ langPath +"contactUs.php onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('Image17','','" + langPath +"images/menu_09_o.gif',1)><img src=" + langPath + "images/menu_09.gif name=Image17 border=0></a>";
		}
		html +="<img src=" + langPath + "images/spacer.gif width=25 height=46>";   
		
		// Forum
		//if (mstrPageCode == "FORUM"){				
		//   html +="<img src=" + langPath + "images/menu_10_o.gif name=Image18 border=0>";
		//}else{
		//	html +='<a href="/forum/bbs/index.php" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage(\'Image18\',\'\',\'' + langPath + 'images/menu_10_o.gif\',1);"><img src="' + langPath + 'images/menu_10.gif" name="Image18" border="0"></a>';
		//}
		//html +="<img src=" + langPath + "images/spacer.gif width=25 height=46>";

		// Member Welfare
		//if (mstrPageCode == "MEMBER_WELFARE"){
		//	html += '<img src="' + langPath + 'images/menu_11_o.gif" id="Image19" name="Image19" border="0">';
		//} else {
		//	html +='<a href="' + langPath +'mem_welfare.php" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage(\'Image19\',\'\',\'' + langPath + 'images/menu_11_o.gif\',1);"><img src="' + langPath + 'images/menu_11.gif" id="Image19" name="Image19" border="0"></a>';
		//}
		//html +="<img src=" + langPath + "images/spacer.gif width=15 height=46>";
		
		// Love-da-chart
		if (mstrPageCode == "CHART"){
			html += '<img src="' + langPath + 'images/menu_12_o.gif" id="Image20" name="Image20" border="0">';
		}else{
			html +='<a href="' + langPath +'chart.php" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage(\'Image20\',\'\',\'' + langPath + 'images/menu_12_o.gif\',1);"><img src="' + langPath + 'images/menu_12.gif" id="Image20" name="Image20" border="0"></a>';
		}
		html +="<img src=" + langPath + "images/spacer.gif width=15 height=46></td>";
	}
	
	
	var orgLink = window.location.href;
	var zhLink = '';
	var enLink = '';
	if ( orgLink.indexOf('zh-hk') > 0){
		zhLink = orgLink;
		enLink = orgLink.replace('zh-hk', 'html');
	}else{
		zhLink = orgLink.replace('html', 'zh-hk');
		enLink = orgLink;
	}
	/*
	if ( orgLink.indexOf('/home.php') > 0 ){
		html += '<td width="206" valign="middle" background="/html/images/menu_bg.gif"><object width="206" height="22"><param name="movie" value="/html/swf/music_player.swf"><param name="wmode" value="transparent"><embed src="/html/swf/music_player.swf" type="application/x-shockwave-flash" wmode="transparent" width="206" height="22"></embed></object></td>';
	}
	*/
	if ( zhLink != enLink ){
		html += '<td width="80" valign="middle" align="right" background="/html/images/menu_bg.gif" nowrap="nowrap"><a href="' + zhLink + '" class="langLinkZH">中文</a> <font color="#713b23">|</font> <a href="' + enLink + '" class="langLinkEN">ENG</a> </td>';
	}
	
	html += '<td width="70"><img src="/html/images/menu_right.gif" width=70 height=46></td></tr></table>';
	
	document.write(html);
}

mtdCreateLeftIndex();

