<script type="text/javascript">
<!--
var timeout         = 5;
var closetimer		= 0;
var ddmenuitem      = 0;

// open hidden layer
function mopen(id)
{	
	// cancel close timer
	mcancelclosetime();

	// close old layer
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';

	// get new layer and show it
	ddmenuitem = document.getElementById(id);
	ddmenuitem.style.visibility = 'visible';

}
// close showed layer
function mclose()
{
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}

// go close timer
function mclosetime()
{
	closetimer = window.setTimeout(mclose, timeout);
}

// cancel close timer
function mcancelclosetime()
{
	if(closetimer)
	{
		window.clearTimeout(closetimer);
		closetimer = null;
	}
}

// close layer when click-out
document.onclick = mclose; 
// -->
</script>


<table width="460" border="0" cellspacing="0" cellpadding="0">
      <tr>
	  
	  
        <td align="right" valign="middle"   ><ul id="sddm">
	<li >
	<%if request.cookies("thdc")("username")="" then%>
	<a href="login.asp" >登录</a>
	<%else%>
	    <%set rsa=server.CreateObject("adodb.recordset")
		  rsa.open "select * from member where username='"&request.cookies("thdc")("username")&"' order by id desc ",conn,1,1%>
		  
		  
	<a href="member.asp"  onmouseover="mopen('m1')" onmouseout="mclosetime()">您好，<%=request.cookies("thdc")("username")%></a>
	
	<div id="m1" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
			<a href="member.asp">会员进入</a>
			<%if rsa("leixing")=1 then%>
				<a href="jjren.asp?id=<%=rsa("id")%>">经济人店铺</a>
				<%end if%>
				
		<a href="out.asp">退&nbsp;&nbsp;出</a>
	</div>
	<%end if%>
	</li>
	<li><a href="reg.asp"   target="_blank">注册</a></li>
	<li><a href="#" onmouseover="mopen('m2')" onmouseout="mclosetime()">卖房</a>
		<div id="m2" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
		<a href="addhouse.asp">二手房</a>
		<a href="xzlsale.asp">写字楼</a>
		<a href="shopssale.asp">商&nbsp;&nbsp;铺</a>		</div>
	</li>
	<li><a href="ershoufang.asp" >买房</a>
	
	</li>
	<li><a href="#" onmouseover="mopen('m4')" onmouseout="mclosetime()">出租</a>
		<div id="m4" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
		<a href="memberRental.asp" target="_blank">房屋出租</a>
		<a href="shopsRental.asp">商铺出租</a>
		<a href="addxzl.asp">写字楼出租</a>		</div>
	</li>
	<li><a href="zufang.asp"  target="_blank">租房</a>	</li>
	
		<li><a href="#" onmouseover="mopen('m6')" onmouseout="mclosetime()">网络经纪人</a>
		<div id="m6" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
		<a href="morejjr.asp?quyu=蒸湘区">蒸湘区</a>
		<a href="morejjr.asp?quyu=雁峰区">雁峰区</a>
		<a href="morejjr.asp?quyu=珠晖区" >珠晖区</a>
		<a href="morejjr.asp?quyu=石鼓区" >石鼓区</a>
		<a href="morejjr.asp?quyu=白沙洲" >白沙洲</a>
		<a href="morejjr.asp?quyu=华新开发区" >华新开发区</a>	
		<a href="morejjr.asp?quyu=立新开发区" >立新开发区</a>
		</div>
	</li>
</ul>
<div style="clear:both"></div></td>
      </tr>
    </table>