//获取文件名
var fname=location.pathname;
fname=fname.substr(fname.lastIndexOf('/')+1);
if (fname=="") {
	fname="index.htm"
};
var cfname;
cfname=fname.replace(".","_c."); 

function left(mainStr,lngLen) { 
	if (lngLen>0) {return mainStr.substring(0,lngLen)} 
else{return null} 
} 

fname=left(fname,4);
function turnon(this_s){
	this_s.style.background='url(images/menubg.jpg)';
	this_s.style.cursor='hand';
//	this_s.style.borderLeft="1px solid #999999";
//	this_s.style.borderRight="1px solid #999999";
}
 
function turnoff(this_s){
	this_s.style.background='';
	this_s.style.cursor='hand';
	document.getElementById(fname).style.backgroundImage="url(images/menubg.jpg)";
//	this_s.style.borderLeft="0px solid #999999";
//	this_s.style.borderRight="0px solid #999999";
}


document.write('<table border="0" id="table7" cellspacing="0" height="55" cellpadding="0" width="786">');
document.write('<tr>');
document.write('	<td id="inde" width="60" align="center"  onmouseover="turnon(this)" onmouseout="turnoff(this)" style="cursor:hand" onclick="window.location=\'index.htm\'">');
document.write('	<span style="font-size: 11px">Home</span></td>');
document.write('	<td id="kara" width="132" align="center" onmouseover="turnon(this)" onmouseout="turnoff(this)"  onclick="window.location=\'karaoke.htm\'">');
document.write('	<span style="font-size: 11px">Rainbow Karaoke</span></td>');
document.write('	<td id="spor" width="104" align="center" onmouseover="turnon(this)" onmouseout="turnoff(this)" onclick="window.location=\'sports.htm\'">');
document.write('	<span style="font-size: 11px">VS Sports Bar</span></td>');
document.write('	<td id="four" width="137" align="center" onmouseover="turnon(this)" onmouseout="turnoff(this)" onclick="window.location=\'fourseas.htm\'">');
document.write('	<span style="font-size: 11px">Rainbow Restaurant</span></td>');
document.write('	<td id="memb" width="65" align="center" onmouseover="turnon(this)" onmouseout="turnoff(this)" onclick="window.location=\'membership.htm\'">');
document.write('	<span style="font-size: 11px">Membership</span></td>');
document.write('	<td id="news" width="45" align="center" onmouseover="turnon(this)" onmouseout="turnoff(this)" onclick="window.location=\'news.htm\'">');
document.write('	<span style="font-size: 11px">Price</span></td>');
document.write('	<td id="cont" width="80" align="center" onmouseover="turnon(this)" onmouseout="turnoff(this)" onclick="window.location=\'contact.htm\'">');
document.write('	<span style="font-size: 11px">Contact Us</span></td>');
document.write('	<td id="join" width="70" align="center" onmouseover="turnon(this)" onmouseout="turnoff(this)" onclick="window.location=\'joinus.htm\'">');
document.write('	<span style="font-size: 11px"><font color="#FFFF00">');
document.write('	<b>Join Us</b></font> </span></td>');
document.write('	<td width="4"></td>');
document.write('	<td width="90" align="center" valign="middle">');
//document.write('	<img border="0" src="images/spacer.gif" width="1" height="1"><br>');
//document.write('	<div style="cursor:hand" onclick="window.location=\''+cfname+ '\'">');
//document.write('	<img border="0" src="images/chinese.gif" width="82" height="23"></div>');
document.write('<TABLE WIDTH=147 BORDER=0 CELLPADDING=0 CELLSPACING=0><TR>');
document.write('		<TD><div style="cursor:hand" onclick="window.open(\'http://www.facebook.com/pages/Rainbow-Plaza/190882054276531\')"><IMG SRC="images/link_1.gif" WIDTH=30 HEIGHT=32 ALT=""></div></TD>');
document.write('		<TD><IMG SRC="images/spacer.gif" WIDTH=7 HEIGHT=32 ALT=""></TD>');
document.write('		<TD><div style="cursor:hand" onclick="window.open(\'http://weibo.com/1984184035\')"><IMG SRC="images/link_3.gif" WIDTH=37 HEIGHT=32 ALT=""></div></TD>');
document.write('		<TD><IMG SRC="images/spacer.gif" WIDTH=4 HEIGHT=32 ALT=""></TD>');
document.write('		<TD><div style="cursor:hand" onclick="window.open(\'http://www.kaixin001.com/home/?uid=100222745\')"><IMG SRC="images/link_5.gif" WIDTH=29 HEIGHT=32 ALT=""></div></TD>');
document.write('		<TD><IMG SRC="images/spacer.gif" WIDTH=10 HEIGHT=32 ALT=""></TD>');
document.write('		<TD><div style="cursor:hand" onclick="window.location=\''+cfname+ '\'"><IMG SRC="images/link_7.gif" WIDTH=30 HEIGHT=32 ALT=""></div></TD>');
document.write('</TR></TABLE>');

document.write('</td></tr>');
document.write('</table>');

document.getElementById(fname).style.backgroundImage="url(images/menubg.jpg)";
