<!-- 新增部分开始 -->
<div class="topbar_bg">
	<div class="topbar">
		
      <!--{if $username}-->  
       <span class="s_l">您好，<!--{$username}-->！</span><a class="s_l" href="<!--{$cfg.url}-->member" target="_blank">[我的办公室]</a><a class="s_l" href="<!--{$cfg.url}-->login/login.php?action=logout" target="_blank">[退出登录]</a>
       
   <!--{else}--> 
    <span class="s_l">您好，欢迎来到<!--{$cfg.page.titlec}-->！</span><a class="s_l" href="<!--{$cfg.url}-->login/login.php" target="_blank" title="登录">[登录]</a><a class="s_l" href="<!--{$cfg.url}-->login/login.php" target="_blank" title="经纪人注册">[经纪人注册]</a>
       <!--{/if}--> 
	<!--	<a class="s_r" href="" target="_blank">业主论坛&nbsp;&nbsp;社区</a><span class="s_r">|</span><a class="s_r" href="" target="_blank">新闻门户&nbsp;&nbsp;地产</a><span class="s_r">|</span><a class="s_r" href="" target="_blank">找二手房&nbsp;&nbsp;租售</a> -->
	</div>
</div><div class="clear"></div>
<div class="wrapper">
	<div class="logo_grid">
		<a class="logo" href="<!--{$cfg.url}-->" title="<!--{$cfg.page.titlec}-->"></a>
		<span class="site">
			<span class="site_this"><!--{$cfg.page.city}--></span>
			<!--{if $cfg.page.citySwitch ==1}--> 
            <a id="city_tips_menu" title="切换城市">[切换城市]</a>
             <!--{/if}-->

		</span>
		<div class="search1">
        
        <!--{if $menu=='newHouse'}-->
			<div class="select_search1" id="select_menu">找新房</div>
			<form name="topSearchForm" method="GET" action="<!--{$cfg.url}-->newHouse/index.php">
			<input class="txt_search1" name="q" type="text" value="" />
			<input class="btn_search1" type="submit" value="" />
			 </form>
              <!--{elseif $menu=='sale'}-->
			<div class="select_search1" id="select_menu">二手房</div>
			<form name="topSearchForm" method="GET" action="<!--{$cfg.url}-->sale/index.php">
			<input class="txt_search1" name="q" type="text" value="<!--{$smarty.get.q}-->" />
			<input class="btn_search1" type="submit" value="" />
			 </form>

              <!--{elseif $menu=='rent'}-->
			<div class="select_search1" id="select_menu">租房</div>
			<form name="topSearchForm" method="GET" action="<!--{$cfg.url}-->rent/index.php">
			<input class="txt_search1" name="q" type="text" value="<!--{$smarty.get.q}-->" />
			<input class="btn_search1" type="submit" value="" />
			 </form>
             <!--{elseif $menu=='community'}-->
			<div class="select_search1" id="select_menu">找小区</div>
			<form name="topSearchForm" method="GET" action="<!--{$cfg.url}-->community/index.php">
			<input class="txt_search1" name="q" type="text" value="<!--{$smarty.get.q}-->" />
			<input class="btn_search1" type="submit" value="" />
			 </form>

             <!--{elseif $menu=='company'}-->
			<div class="select_search1" id="select_menu">找公司</div>
			<form name="topSearchForm" method="GET" action="<!--{$cfg.url}-->company/index.php">
			<input class="txt_search1" name="q" type="text" value="<!--{$smarty.get.q}-->" />
			<input class="btn_search1" type="submit" value="" />
			 </form>
 
             <!--{elseif $menu=='broker'}-->
			<div class="select_search1" id="select_menu">找经纪人</div>
			<form name="topSearchForm" method="GET" action="<!--{$cfg.url}-->broker/index.php">
			<input class="txt_search1" name="q" type="text" value="<!--{$smarty.get.q}-->" />
			<input class="btn_search1" type="submit" value="" />
			 </form>
           <!--{else}-->  
             	<div class="select_search1" id="select_menu">二手房</div>
			<form name="topSearchForm" method="GET" action="<!--{$cfg.url}-->sale/index.php">
			<input class="txt_search1" name="q" type="text" value="<!--{$smarty.get.q}-->" />
			<input class="btn_search1" type="submit" value="" />
			 </form>
              <!--{/if}-->  
             
			<div class="select_cons" style="display:none;" id="select_cons">
			  <a href="javascript:void();" onclick="return changeSearch(2);">找新房</a>
		      <div class="clear"></div>
		      <a href="javascript:void();" onclick="return changeSearch(3);">找二手房</a>

		      <div class="clear"></div>
		      <a href="javascript:void();" onclick="return changeSearch(4);">找租房</a>
		      <div class="clear"></div>
		      <a href="javascript:void();" onclick="return changeSearch(5);">找小区</a>
                <div class="clear"></div>
		      <a href="javascript:void();" onclick="return changeSearch(6);">找公司</a>
                 <div class="clear"></div>
		      <a href="javascript:void();" onclick="return changeSearch(7);">找经纪人</a>
		    </div>
		</div>
		<div class="hot_label">
			
            </div>

		<div class="clear"></div>
	</div>
	<div class="clear"></div>
	<div class="nav_bg">
		<ul class="nav">
			<li id="top_nav_0" <!--{if $menu=='index'}-->class="i0 this"<!--{/if}-->><a href="<!--{$cfg.url}-->" title="首页">首页</a></li>
			<li id="top_nav_3" <!--{if $menu=='sale'}-->class="i0 this"<!--{/if}-->><a href="<!--{$cfg.url_sale}-->" title="二手房">二手房</a></li>
            <li id="top_nav_4" <!--{if $menu=='rent'}-->class="i0 this"<!--{/if}-->><a href="<!--{$cfg.url_rent}-->" title="租房">租房</a></li>
            <li id="top_nav_2" <!--{if $menu=='newHouse'}-->class="i0 this"<!--{/if}-->><a href="<!--{$cfg.url_newHouse}-->" title="新房">新房</a></li>
			<li><a href="<!--{$cfg.url}-->m/map" target="_blank" title="地图找房">地图找房</a></li>

			<li id="top_nav_5" <!--{if $menu=='community'}-->class="i0 this"<!--{/if}-->><a href="<!--{$cfg.url_community}-->" title="小区房价">小区房价</a></li>
			<li id="top_nav_6" <!--{if $menu=='broker'}-->class="i0 this"<!--{/if}-->><a href="<!--{$cfg.url_broker}-->" title="经纪人">经纪人</a></li>   		<li id="top_nav_7" <!--{if $menu=='company'}-->class="i0 this"<!--{/if}-->><a href="<!--{$cfg.url_company}-->" title="中介公司">中介公司</a></li>
		</ul>

	</div>
<script type="text/javascript">
function CityTips(menu,tips){
	var menu = document.getElementById(menu);
	var con = document.getElementById(tips);
	
	function _showTips(){
		con.style.display = "block";
		}
	function _hideTips(){
		con.style.display = "none";
		}
	
	menu.onclick = _showTips;
	con.onmouseover = _showTips;
	con.onmouseout = _hideTips;
}
function changeSearch(switchNavId){
		if(switchNavId == 2){
			$('#select_menu').html('找新房');
			document.topSearchForm.action = '<!--{$cfg.url}-->newHouse/index.php';
		}else if(switchNavId == 3){
			$('#select_menu').html('二手房');
			document.topSearchForm.action = '<!--{$cfg.url}-->sale/index.php';
		}else if(switchNavId == 4){
			$('#select_menu').html('找租房');
			document.topSearchForm.action = '<!--{$cfg.url}-->rent/index.php';
		}else if(switchNavId == 5){
			$('#select_menu').html('找小区');
			document.topSearchForm.action = '<!--{$cfg.url}-->community/index.php';
		}else if(switchNavId == 6){
			$('#select_menu').html('找公司');
			document.topSearchForm.action = '<!--{$cfg.url}-->company/index.php';
		}else if(switchNavId == 7){
			$('#select_menu').html('找经纪人');
			document.topSearchForm.action = '<!--{$cfg.url}-->broker/index.php';
		}
		$('#select_cons').hide();
		return false;		 
	}
	function switchNav(){
		if(!switchNavId){
			switchNavId = 0;
		}
		$("#top_nav_"+switchNavId).addClass('this');
	}
//	CityTips("city_tips_menu","city_tips");
	CityTips("select_menu","select_cons");
	changeSearch(switchNavId);
	switchNav();
	</script>
	<div class="clear"></div>
</div>
<!-- 新增部分结束 -->