﻿
var url = window.location.pathname.toLowerCase();
//alert(url);
//if(url=="/Newweb/index.aspx").indexOf
if(window.location=="http://www.jtzhiye.com/")
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
//document.getElementById("searchCS").style.display="none";
//document.getElementById("es").className="top3_3";
//document.getElementById("span_es").className="f3";
}
if(url.indexOf("index.aspx")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
//document.getElementById("searchCS").style.display="none";
//document.getElementById("es").className="top3_3";
//document.getElementById("span_es").className="f3";
}
if(url.indexOf("reg.aspx")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
//document.getElementById("searchCS").style.display="none";
//document.getElementById("es").className="top3_3";
//document.getElementById("span_es").className="f3";
}
if(url.indexOf("login.aspx")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
//document.getElementById("searchCS").style.display="none";
//document.getElementById("es").className="top3_3";
//document.getElementById("span_es").className="f3";
}
if(url.indexOf("sale.aspx")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
//document.getElementById("searchCS").style.display="none";
//document.getElementById("es").className="top3_3";
//document.getElementById("span_es").className="f3";
}
if(url.indexOf("zu.aspx")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
//document.getElementById("searchCS").style.display="none";
//document.getElementById("es").className="top3_3";
//document.getElementById("span_es").className="f3";
}
if(url.indexOf("liucheng/index.htm")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
}
if(url.indexOf("liucheng/01_02.htm")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
}
if(url.indexOf("liucheng/02_01.htm")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
}
if(url.indexOf("liucheng/02_02.htm")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
}
if(url.indexOf("liucheng/02_03.htm")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
}
if(url.indexOf("liucheng/03_01.htm")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
}
if(url.indexOf("liucheng/03_02.htm")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
}
if(url.indexOf("liucheng/03_03.htm")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
}
if(url.indexOf("liucheng/03_04.htm")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
}
if(url.indexOf("liucheng/04_01.htm")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
}
if(url.indexOf("liucheng/04_02.htm")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
}
if(url.indexOf("liucheng/05_01.htm")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
}
if(url.indexOf("liucheng/05_02.htm")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
}
if(url.indexOf("liucheng/06_01.htm")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
}
if(url.indexOf("liucheng/06_02.htm")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
}
if(url.indexOf("liucheng/07_01.htm")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
}
if(url.indexOf("liucheng/07_02.htm")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
}
if(url.indexOf("liucheng/08_01.htm")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
}
if(url.indexOf("liucheng/08_02.htm")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
}
if(url.indexOf("liucheng/09_01.htm")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
}

if(url.indexOf("gou.aspx")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
//document.getElementById("searchCS").style.display="none";
//document.getElementById("es").className="top3_3";
//document.getElementById("span_es").className="f3";
}
if(url.indexOf("qz.aspx")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
//document.getElementById("searchCS").style.display="none";
//document.getElementById("es").className="top3_3";
//document.getElementById("span_es").className="f3";
}
if(url.indexOf("housedetail.aspx")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
//document.getElementById("es").className="top3_3";
//document.getElementById("span_es").className="f3";
document.getElementById("searchCS").style.display="block";
}
if(url.indexOf("so.aspx")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
//document.getElementById("es").className="top3_3";
//document.getElementById("span_es").className="f3";
document.getElementById("searchCS").style.display="block";
}
if(url.indexOf("es.aspx")!=-1)
{
document.getElementById("es").className="top3_2_";
document.getElementById("span_es").className="f4";
document.getElementById("index").className="top3_3";
document.getElementById("span_index").className="f3";
//document.getElementById("xw").className="top3_2";
//document.getElementById("span_xw").className="f3";
document.getElementById("searchCS").style.display="block";
}

if(url.indexOf("broker.aspx")!=-1)
{
document.getElementById("broker").className="top3_2_";
document.getElementById("span_broker").className="f4";
document.getElementById("index").className="top3_3";
document.getElementById("span_index").className="f3";
document.getElementById("sobroker").style.display="block";
}

if(url.indexOf("brokerdetail.aspx")!=-1)
{
document.getElementById("broker").className="top3_2_";
document.getElementById("span_broker").className="f4";
document.getElementById("index").className="top3_3";
document.getElementById("span_index").className="f3";
document.getElementById("sobroker").style.display="block";
}

if(url.indexOf("wenda.aspx")!=-1)
{
document.getElementById("wenda").className="top3_2_";
document.getElementById("span_wenda").className="f4";
document.getElementById("index").className="top3_3";
document.getElementById("span_index").className="f3";
document.getElementById("sowenda").style.display="block";
}
if(url.indexOf("hire.aspx")!=-1)
{
document.getElementById("hire").className="top3_2_";
document.getElementById("span_hire").className="f4";
document.getElementById("index").className="top3_3";
document.getElementById("span_index").className="f3";
document.getElementById("searchCZ").style.display="block";
}
if(url.indexOf("map.aspx")!=-1)
{
document.getElementById("map").className="top3_2_";
document.getElementById("span_map").className="f4";
document.getElementById("index").className="top3_3";
document.getElementById("span_index").className="f3";
}
if(url.indexOf("newhouse.aspx")!=-1)
{
document.getElementById("newhouse").className="top3_2_";
document.getElementById("span_newhouse").className="f4";
document.getElementById("index").className="top3_3";
document.getElementById("span_index").className="f3";
}
if(url.indexOf("shop.aspx")!=-1)
{
document.getElementById("shop").className="top3_2_";
document.getElementById("span_shop").className="f4";
document.getElementById("index").className="top3_3";
document.getElementById("span_index").className="f3";
document.getElementById("soShop").style.display="block";
}
if(url.indexOf("shopdetail.aspx")!=-1)
{
document.getElementById("shop").className="top3_2_";
document.getElementById("span_shop").className="f4";
document.getElementById("index").className="top3_3";
document.getElementById("span_index").className="f3";
document.getElementById("soShop").style.display="block";
}
if(url.indexOf("compare.aspx")!=-1)
{
document.getElementById("index").className="top3_2_";
document.getElementById("span_index").className="f4";
//document.getElementById("es").className="top3_3";
//document.getElementById("span_es").className="f3";
document.getElementById("searchCS").style.display="block";
}
if(url.indexOf("xw.aspx")!=-1)
{
document.getElementById("xw").className="top3_2_";
document.getElementById("span_xw").className="f4";
document.getElementById("index").className="top3_2";
document.getElementById("span_index").className="f3";
//document.getElementById("es").className="top3_3";
//document.getElementById("span_es").className="f3";
//document.getElementById("searchCS").style.display="none";
document.getElementById("xwBanner").style.display="block";
}
if(url.indexOf("xwlist.aspx")!=-1)
{
document.getElementById("xw").className="top3_2_";
document.getElementById("span_xw").className="f4";
document.getElementById("index").className="top3_2";
document.getElementById("span_index").className="f3";
//document.getElementById("es").className="top3_3";
//document.getElementById("span_es").className="f3";
//document.getElementById("searchCS").style.display="none";
document.getElementById("xwBanner").style.display="block";
}
if(url.indexOf("html")!=-1)
{
document.getElementById("xw").className="top3_2_";
document.getElementById("span_xw").className="f4";
document.getElementById("index").className="top3_2";
document.getElementById("span_index").className="f3";
//document.getElementById("es").className="top3_3";
//document.getElementById("span_es").className="f3";
//document.getElementById("searchCS").style.display="none";
document.getElementById("xwBanner").style.display="block";
}

