// JavaScript Document

//公示公告滑动层
function g(o) { return document.getElementById(o); }
function gsgg_huadong(i) {
for (j = 1; j <= 4; j++) {
g("gsgg_nr" + j).className = "off_show"
g("gsgg_dh" + j).className = "gsgg_hd2"
}
g("gsgg_nr" + i).className = "on_show"
g("gsgg_dh" + i).className = "gsgg_hd1"
}

//土地信息+规划公示滑动层
function k(a) { return document.getElementById(a); }
function tdgh_huadong(d) {
for (s = 1; s <= 2; s++) {
k("tdgh_nr" + s).className = "off_show1"
k("tdgh_dh" + s).className = "tdgh_li3"//导航不滑动时的样式
}
k("tdgh_nr" + d).className = "on_show1"
k("tdgh_dh" + d).className = "tdgh_li1"//导航滑动表现的样式
}

//二手房查询+租房查询滑动层
function l(q) { return document.getElementById(q); }
function eszfcx_huadong(w) {
for (e = 1; e <= 2; e++) {
l("eszfcx_nr" + e).className = "off_show1"
l("eszfcx_dh" + e).className = "tdgh_li3"//导航不滑动时的样式
}
l("eszfcx_nr" + w).className = "on_show1"
l("eszfcx_dh" + w).className = "tdgh_li1"//导航滑动表现的样式
}

//二手房信息滑动层
function z(x) { return document.getElementById(x); }
function esfzf_esxx_huadong(c) {
for (v = 1; v <= 3; v++) {
l("esfzf_esxx_nr" + v).className = "off_show1"
l("esfzf_esxx_dh" + v).className = "esfzf_esxx_dh_li2"//导航不滑动时的样式
}
l("esfzf_esxx_nr" + c).className = "on_show1"
l("esfzf_esxx_dh" + c).className = "esfzf_esxx_dh_li1"//导航滑动表现的样式
}

//出租房信息滑动层
function b(n) { return document.getElementById(n); }
function esfzf_czcx_huadong(m) {
for (f = 1; f <= 3; f++) {
b("esfzf_czcx_nr" + f).className = "off_show1"
b("esfzf_czcx_dh" + f).className = "esfzf_esxx_dh_li2"//导航不滑动时的样式
}
b("esfzf_czcx_nr" + m).className = "on_show1"
b("esfzf_czcx_dh" + m).className = "esfzf_esxx_dh_li1"//导航滑动表现的样式
}

//论坛排行滑动层
function h(j) { return document.getElementById(j); }
function yzlt_ltph_huadong(k) {   
for (lh = 1; lh <= 3; lh++) {
h("yzlt_ltph_nr" + lh).className = "off_show1"
h("yzlt_ltph_dh" + lh).className = "yzlt_ddh_ltph_dh_li2"//导航不滑动时的样式
}
h("yzlt_ltph_nr" + k).className = "on_show1"
h("yzlt_ltph_dh" + k).className = "yzlt_ddh_ltph_dh_li1"//导航滑动表现的样式
}

//热帖排行滑动层
function m(p) { return document.getElementById(p); }
function yzlt_rtph_huadong(u) {   
for (po = 1; po <= 3; po++) {
m("yzlt_rtph_nr" + po).className = "off_show1"
m("yzlt_rtph_dh" + po).className = "yzlt_ddh_ltph_dh_li2"//导航不滑动时的样式
}
m("yzlt_rtph_nr" + u).className = "on_show1"
m("yzlt_rtph_dh" + u).className = "yzlt_ddh_ltph_dh_li1"//导航滑动表现的样式
}


//幻灯片JS代码
			var CurrentHotScreen = 0 ;
			function setHotQueryList(screen){
				var Vmotion = "forward" ;
				var MaxScreen = 4 ;
				if (screen >= MaxScreen) {
					screen = 0 ;
					Vmotion = "reverse" ;
				}
				cleanallstyle();
				document.getElementById("focus_"+screen).className = "up" ;
			  
			  if(null!=hot_query_td.filters){
				hot_query_td.filters[0].apply();
				hot_query_td.filters[0].motion = Vmotion;
			  }
			  for (i=0;i<MaxScreen;i++) {
				document.getElementById("switch_"+i).style.display = "none" ;
			  }
			  document.getElementById("switch_"+screen).style.display = "block" ;
			  if(null!=hot_query_td.filters){
				hot_query_td.filters[0].play();
			  }
				CurrentHotScreen = screen ;
			}
			function refreshHotQuery(){
				refreshHotQueryTimer = null;
				setHotQueryList(CurrentHotScreen+1);
				refreshHotQueryTimer = setTimeout('refreshHotQuery();', 5000);
			}

