function SetLeft(type,name){
var color;
document.write('<table width="170" border="0">');
document.write('<tr><td>');
//document.write('<table width="170" border="0" cellspacing="0" cellpadding="0" height="28">');
//document.write('<tr valign="bottom" align="center"> ');
//document.write('<td align="center"><b>股指期货仿真交易</b></td>');
//document.write('</tr>');
//document.write('</table>');
document.write('<table width="165" border="0" cellspacing="0" cellpadding="0"');
document.write('<tr>');
document.write('<td width="0"></td>');
document.write('<td valign="top" align="left">');
document.write('<table border=0 cellpadding=0 cellspacing=0 width="160"> ');
document.write('<tr><td></td></tr>');
document.write('</table>');
if(name.length!=0)
{
	document.write('<table width="165" border="0" cellspacing="0" cellpadding="0">');
	document.write('<tr><td align=center><font color=red size=3>');
	document.write(name+'，您好');
	document.write('</font></td></tr>');
	document.write('</table>');
}
document.write('<table class="flyoutMenu" width="170" border="1" cellspacing="0" cellpadispnewsing="2" cellpadding="2" bordercolordark="#FFFFFF" bordercolorlight="#0F3246">');
//document.write('<tr>');
//document.write('<td class="flyoutLink" handle="" width="90%" height="20">　<span id=menuitem ');
//color="#EAEAEA";
//if(type=="jj") color="#ff0000";
//document.write('style="FONT-FAMILY: webdings; FONT-SIZE: 18px; LINE-HEIGHT: 18px; color='+color+'">4</span><a href="/gz/default.htm"><font class=menuitem>仿真交易大赛介绍</font></a></td>');
//document.write('</tr>');
//document.write('<tr>');
//document.write('<td class="flyoutLink" handle="" width="90%" height="20">　<span id=menuitem ');
//color="#EAEAEA";
//if(type=="jx") color="#ff0000";
//document.write('style="FONT-FAMILY: webdings; FONT-SIZE: 18px; LINE-HEIGHT: 18px; color='+color+'">4</span><a href="/gz/jx.htm"><font class=menuitem>奖项设置</font></a></td>');
//document.write('</tr>');
//document.write('<tr>');
//document.write('<td class="flyoutLink" handle="" width="90%" height="20" colSpan=2>　<span id=menuitem ');
//color="#EAEAEA";
//if(type=="lc") color="#ff0000";
//document.write('style="FONT-FAMILY: webdings; FONT-SIZE: 18px; LINE-HEIGHT: 18px; color='+color+'">4</span><a href="/gz/lc.htm"><font class=menuitem>参赛流程</font></a></td>');
//document.write('</tr>');
//document.write('<tr>');
//document.write('<td class="flyoutLink" handle="" width="90%" height="20" colSpan=2>　<span id=menuitem ');
//color="#EAEAEA";
//if(type=="bm") color="#ff0000";
//document.write('style="FONT-FAMILY: webdings; FONT-SIZE: 18px; LINE-HEIGHT: 18px; color='+color+'">4</span><a href="/gz/bm.htm"><font class=menuitem>大赛报名</font></a></td>');
//document.write('</tr>');
//document.write('<tr>');
//document.write('<td class="flyoutLink" handle="" width="90%" height="20" colSpan=2>　<span id=menuitem ');
//color="#EAEAEA";
//if(type=="cx") color="#ff0000";
//document.write('style="FONT-FAMILY: webdings; FONT-SIZE: 18px; LINE-HEIGHT: 18px; color='+color+'">4</span><a href="/gz/chaxun.htm"><font class=menuitem>报名查询</font></a></td>');
//document.write('</tr>');
//document.write('<tr>');
//document.write('<td class="flyoutLink" handle="" width="90%" height="20" colSpan=2>　<span id=menuitem ');
//color="#EAEAEA";
//if(type=="pm") color="#ff0000";
//document.write('style="FONT-FAMILY: webdings; FONT-SIZE: 18px; LINE-HEIGHT: 18px; color='+color+'">4</span><a href="/gz/pm.aspx"><font class=menuitem>大赛排名</font></a></td>');
//document.write('</tr>');
//document.write('<tr>');
//document.write('<td class="flyoutLink" handle="" width="90%" height="20" colSpan=2>　<span id=menuitem ');
//color="#EAEAEA";
//if(type=="gg") color="#ff0000";
//document.write('style="FONT-FAMILY: webdings; FONT-SIZE: 18px; LINE-HEIGHT: 18px; color='+color+'">4</span><a href="/gz/gg.htm"><font class=menuitem>大赛公告</font></a></td>');
//document.write('</tr>');
document.write('<tr>');
document.write('<td class="flyoutLink" handle="" width="90%" height="20">　<span id=menuitem ');
color="#EAEAEA";
if(type=="rp") color="#ff0000";
document.write('style="FONT-FAMILY: webdings; FONT-SIZE: 18px; LINE-HEIGHT: 18px; color='+color+'">4</span><a href="/News/News6.asp?Class=6&CodeID=0&ClassID=38"><font class=menuitem>股指期货日评</font></a></td>');
document.write('</tr>');

document.write('<tr>');
document.write('<td class="flyoutLink" handle="" width="90%" height="20">　<span id=menuitem ');
color="#EAEAEA";
if(type=="software") color="#ff0000";
document.write('style="FONT-FAMILY: webdings; FONT-SIZE: 18px; LINE-HEIGHT: 18px; color='+color+'">4</span><a href="/gz/software.htm"><font class=menuitem>交易软件下载</font></a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td class="flyoutLink" handle="" width="90%" height="20">　<span id=menuitem ');
color="#EAEAEA";
if(type=="kh") color="#ff0000";
document.write('style="FONT-FAMILY: webdings; FONT-SIZE: 18px; LINE-HEIGHT: 18px; color='+color+'">4</span><a href="/gz/kh.htm"><font class=menuitem>开户流程</font></a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td class="flyoutLink" handle="" width="90%" height="20">　<span id=menuitem ');
color="#EAEAEA";
if(type=="if") color="#ff0000";
document.write('style="FONT-FAMILY: webdings; FONT-SIZE: 18px; LINE-HEIGHT: 18px; color='+color+'">4</span><a href="/gz/if.htm"><font class=menuitem>仿真交易合约文本</font></a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td class="flyoutLink" handle="" width="90%" height="20">　<span id=menuitem ');
color="#EAEAEA";
if(type=="hs300") color="#ff0000";
document.write('style="FONT-FAMILY: webdings; FONT-SIZE: 18px; LINE-HEIGHT: 18px; color='+color+'">4</span><a href="/gz/hs300.htm"><font class=menuitem>沪深300指数介绍</font></a></td>');
document.write('</tr>');

document.write('<tr>');
document.write('<td class="flyoutLink" handle="" width="90%" height="20" colSpan=2>　<span id=menuitem ');
color="#EAEAEA";
if(type=="zjsgz") color="#ff0000";
document.write('style="FONT-FAMILY: webdings; FONT-SIZE: 18px; LINE-HEIGHT: 18px; color='+color+'">4</span><a href="/gz/zjsgz.htm"><font class=menuitem>股指期货法律法规</font></a></td>');
document.write('</tr>');

document.write('<tr>');
document.write('<td class="flyoutLink" handle="" width="90%" height="20" colSpan=2>　<span id=menuitem ');
color="#EAEAEA";
if(type=="fxts") color="#ff0000";
document.write('style="FONT-FAMILY: webdings; FONT-SIZE: 18px; LINE-HEIGHT: 18px; color='+color+'">4</span><a href="/gz/fxts.htm"><font class=menuitem>风险提示</font></a></td>');
document.write('</tr>');

//document.write('<tr>');
//document.write('<td class="flyoutLink" handle="" width="90%" height="20">　<span id=menuitem ');
//color="#EAEAEA";
//if(type=="intro") color="#ff0000";
//document.write('style="FONT-FAMILY: webdings; FONT-SIZE: 18px; LINE-HEIGHT: 18px; color='+color+'">4</span><a href="/gz/intro.htm"><font class=menuitem>功能界面说明</font></a></td>');
//document.write('</tr>');
document.write('<tr>');
document.write('<td align="left" height="20">');
document.write('&nbsp;<a href="/bbs"><font class=menuitem><img src=/images/bbs.gif border=0> 进入期货论坛</font></a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td align="left" height="20">');
document.write('&nbsp;<a href="javascript:top.redirect(4021);"><img src=/images/chat.gif border=0><font class=menuitem> 进入聊天室</font></a></td>');
document.write('</tr>');

document.write('</table>');
document.write('</td>');
document.write('</tr>');
document.write('</table>');
document.write('</td></tr>');
document.write('<tr><td>');
document.write('<table width="98%" border="0" cellspacing="0" cellpadding="1" align="center">');
document.write('<tr><td align="right">股指期货咨询开户联系电话</td></tr>');
document.write('<tr><td align="right">李中斌:0755-83004242</td></tr>');
document.write('<tr><td align="right">徐邵京:0755-82895237</td></tr>');
document.write('<tr><td align="right">宦 &nbsp;澄:0755-83506953</td></tr>');
document.write('<tr><td align="right">安国兴:0755-83004986</td></tr>');
document.write('</table>');
document.write('</td></tr>');
document.write('</table>');
}
function redirect(port)
{
	var focusok=false;
	if (navigator.appName=="Netscape")
		focusok=true;
	vers=navigator.appVersion;
	if (navigator.appName == "Microsoft Internet Explorer")
	{
		pos=vers.lastIndexOf('.');
		vers=vers.substring(pos-1,vers.length);
	}
	proper_version=parseFloat(vers);
	if(proper_version>=5)
		focusok=true;
	var chat=window.open("/bbs/chatnew/mainframe1.asp","chat","top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=790,height=530");
	if(focusok)
	chat.focus();
}