var SF_G=new Object();
SF_G.maps=null;
var SF_Win=function(id,w,h,l,t,tit,msg){
	this.sss={
			index:10000,
			isIE:true,
			isFF:false,
			soufunWin:function (id,w,h,l,t,tit,msg)
			{
				this.index = this.index+2;
				this.id  = "xWin"+id;
				this.width  = w;
				this.height = h;
				this.left  = l;
				this.top   = t;
				this.zIndex = this.index;
				this.title  = tit;
				this.message = msg;
				this.obj   = null;
				this.bulid();
			},
			bulid:function ()
			{
				
				var str = ""
					+ "<div id=" + this.id + " "
					+ "style='"
					+ "z-index:" + this.zIndex + ";"
					+ "width:" + this.width + "px;"
					+ "height:" + this.height + "px;"
					+ "left:" + this.left + "px;"
					+ "top:" + this.top + "px;"
					+ "background-color:#FFFFEE;"
					+ "font-size:12px;"
					+ "font-family:Verdana;"
					+ "position:absolute;"
					+ "cursor:default;"
					+ "border:1px solid #666666;"
					+ "' "
					+ "class='scroll' "
					+ ">"
						+ "<div "
						+ "style='"
						+ "background-color:#FFFFEE;"
						+ "width:" + (this.width) + "px;"
						+ "height:20px;"
						+ "line-height:20px;"
						+ "color:black;"
						+ "border-bottom:1px solid #666666;"
						+ "' "
						+ ">"
							+ "<span style='width:" + (this.width-2*12-9) + "px;text-indent:5px;'> " + this.title + "</span>"
							+ "<span style='width:12px;border-width:0px;color:#878787;padding-right:12px;"+((this.isFF)?(""):("position:absolute;left:"+(this.width-15)+"px;"))+"' onclick='$(\""+this.id+"\").parentNode.removeChild($(\""+this.id+"\"));'>×</span>"
						+ "</div>"
							+ "<div style='"
							+ "height:" + ((this.isIE)?(this.height-20-4):(this.height-20)) + "px;"
							+ "background-color:white;"
							+ "line-height:20px;"
							+ "font-size:12px;"
							+ "overflow:auto;"
							+ "word-break:break-all;"
							+ "'>" + this.message + "</div>"
					+ "</div>";
					var soufun_win = document.createElement("div");
					//soufun_win.style.position="absolute";
					soufun_win.innerHTML=str;
					document.body.appendChild(soufun_win);
					return this.id;
			}
		};
		return this.sss.soufunWin(id,w,h,l,t,tit,msg);
};




var SF_Select={	
	
	initSelect:function(city,dist,purp,pric,city_s,dist_s,purp_s,pric_s){
		$(city).innerHTML=this.cStr(city_s);
		this.bindDefault(city,dist,purp,pric,city_s,dist_s,purp_s,pric_s);
	},
	initSelectOnly:function(dist_s,coma_s,purp_s,room_s,hall_s,pricm_s,pricx_s,aream_s,areax_s,key_t)
	{
	    $(key_t).value=SF_Search_Newhouse.currKeyWord;
	    this.defineSelect(dist_s,SF_Search_Newhouse.currDist);
	    this.defineSelect(coma_s,SF_Search_Newhouse.currComa);
	    this.defineSelect(purp_s,SF_Search_Newhouse.currPurp);
	    this.defineSelect(room_s,SF_Search_Newhouse.currRoom);
	    this.defineSelect(hall_s,SF_Search_Newhouse.currHall);
	    this.defineSelect(pricm_s,SF_Search_Newhouse.currPricem);
	    this.defineSelect(pricx_s,SF_Search_Newhouse.currPricex);
	    this.defineSelect(aream_s,SF_Search_Newhouse.currAream);
	    this.defineSelect(areax_s,SF_Search_Newhouse.currAreax);
	    
	},
	cStr:function(city_s){
		var _c= SFDB.getCitys();
		_str='<select style="width:70px" class="input_height" id='+city_s+' name="strCity"><option>';
		_str+=_c.join("</option><option>");
		_str+="</option></select>";
		return _str;
	},
	dStr:function(c,dist_s){
		var _c= SFDB.getDisByCity(c);
		_str='<select style="width:80px"  class="input_height" id='+dist_s+' name="strDistrict"><option>选择区县</option><option>';
		_str+=_c.join("</option><option>");
		_str+="</option></select>";
		return _str;
	},
	puStr:function(c,purp_s){
		var _c= SFDB.getCityConfig(c).purp;
		_str='<select class="input2 input_height" id='+purp_s+' name="strPurpose"><option>选择类型</option><option>';
		_str+=_c.join("</option><option>");
		_str+="</option></select>";
		return _str;
	},
	prStr:function(c,pric_s){
		var _c= SFDB.getCityConfig(c).pric;
		_str='<select class="input2 input_height" id='+pric_s+' name="strPrice"><option>选择价格</option><option>';
		_str+=_c.join("</option><option>");
		_str+="</option></select>";
		return _str;
	},
	bindDefault:function(city,dist,purp,pric,city_s,dist_s,purp_s,pric_s){
		var base=this;		
		this.defineSelect(city_s,this.currCity);
		var _c=$(city_s).options[$(city_s).selectedIndex].text;
		$(dist).innerHTML=this.dStr(_c,dist_s);this.defineSelect(dist_s,SF_Search_Newhouse.currDist);
		$(purp).innerHTML=this.puStr(_c,purp_s);this.defineSelect(purp_s,SF_Search_Newhouse.currPurp);
		$(pric).innerHTML=this.prStr(_c,pric_s);this.defineSelect(pric_s,SF_Search_Newhouse.currPric);
		$(city_s).onchange=function(){
			var _cc=this.options[this.selectedIndex].value;
			$(dist).innerHTML=base.dStr(_cc,dist_s);base.defineSelect(dist_s);
			$(purp).innerHTML=base.puStr(_cc,purp_s);base.defineSelect(purp_s);
			$(pric).innerHTML=base.prStr(_cc,pric_s);base.defineSelect(pric_s);
			SF_Suggest.currCity=this.options[this.selectedIndex].value;
		};
	},
	defineSelect:function(str,defaultvalue){	
		if(defaultvalue)
		{
		//var oOption = document.createElement("OPTION");
			var selectindex=0; 
			if($(str).options.length<2)
			{
			    var oOption = document.createElement("OPTION");
			    $(str).options.add(oOption);
			    oOption.text = defaultvalue;
                oOption.value = defaultvalue;
                selectindex=1;
			}
			else
			{
			    for(var i=0;i< $(str).options.length;i++)
			    {
				    if($(str).options[i].text.indexOf("选择")<0&&$(str).options[i].text.indexOf("全部")<0)
				    {
				    //	$(str).options[i].value=$(str).options[i].text;
    					
					    if(defaultvalue==$(str).options[i].value)
					        selectindex=i;
				    }
    				
			    }
			}
			$(str).options[selectindex].selected=true;

		}
	}
	
};

var Cookies = {};
/**//**
 * 设置Cookies
 */
Cookies.set = function(name, value){
     var argv = arguments;
     var argc = arguments.length;
     var expires = (argc > 2) ? argv[2] : null;
     var path = (argc > 3) ? argv[3] : '/';
     var domain = (argc > 4) ? argv[4] : null;
     var secure = (argc > 5) ? argv[5] : false;
     document.cookie = name + "=" + escape (value) +
       ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
       ((path == null) ? "" : ("; path=" + path)) +
       ((domain == null) ? "" : ("; domain=" + domain)) +
       ((secure == true) ? "; secure" : "");
};
/**//**
 * 读取Cookies
 */
Cookies.get = function(name){
    var arg = name + "=";
    var alen = arg.length;
    var clen = document.cookie.length;
    var i = 0;
    var j = 0;
    while(i < clen){
        j = i + alen;
        if (document.cookie.substring(i, j) == arg)
            return Cookies.getCookieVal(j);
        i = document.cookie.indexOf(" ", i) + 1;
        if(i == 0)
            break;
    }
    return null;
};
/**//**
 * 清除Cookies
 */
Cookies.clear = function(name) {
  if(Cookies.get(name)){
    var expdate = new Date(); 
    expdate.setTime(expdate.getTime() - (86400 * 1000 * 1)); 
    Cookies.set(name, "", expdate); 
  }
};

Cookies.getCookieVal = function(offset){
   var endstr = document.cookie.indexOf(";", offset);
   if(endstr == -1){
       endstr = document.cookie.length;
   }
   return unescape(document.cookie.substring(offset, endstr));
};
var SF_Suggest={
	currCity:"北京",
	currID:"sf_suggest",temp_str:"",lastitem:null,currIndex:-1,currInput:"",
	$$:function(node){
			return $(this.currID).getElementsByTagName(node);
	},
	ajax_keyword:function (){
			var xmlhttp;
			var base=SF_Suggest;
			try{
				xmlhttp=new XMLHttpRequest();
				}
			catch(e){
				xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
				}
			xmlhttp.onreadystatechange=function(){
			if (xmlhttp.readyState==4){
				if (xmlhttp.status==200){
				    var data=xmlhttp.responseText;
				    if(data.length <= 0) {
                        return;
                    }
                    if($(base.currID))
					{
					    var inhtml=base.doData(data);
					    $("sf_suggest").innerHTML="";
					    $("sf_suggest").innerHTML=inhtml;
					}
					base.bindLI(base.$$("LI"));
					base.currIndex=-1;
					}
				}
			}
			xmlhttp.open("get", "/apt/apt/apt_info/AjaxProxy.aspx?atype=4&q="+escape($(base.currInput).value)+"&"+new Date(), true);
			xmlhttp.setRequestHeader('Content-type','text/html; charset=gb2312');
			xmlhttp.send(null);
	},
	keyupdeal:function (e){
			var base=SF_Suggest;
			var keyc;
			if(window.event)e=window.event;
			if(window.event){
				keyc=e.keyCode;
				}
			else if(e.which){
				keyc=e.which;
				}
			if(keyc==13){$(base.currID).innerHTML="";return;}
			if(keyc!=40 && keyc!=38){
				base.ajax_keyword();
				temp_str=$(base.currID).value;
			}
			
	},
	doData:function  (str) {
			var _arr=str.split(",");
			if(_arr=="")return "";
			var _out=["<ul class=suggest>"];
			for(var i in _arr)
			{
				_out.push("<li id=_sg"+i+">"+_arr[i]+"</li>");
			}
			_out.push("</ul>");
			return _out.join("");
	},
	set_style:function (num){
			if(this.lastitem)
			{
				this.lastitem.className="";
			}
			//$("aa").innerText=num;
			if(!this.$$("li")[num])return;
			this.$$("li")[num].className="select";
				this.lastitem=this.$$("li")[num];
	},
	bindLI:function bindLI (l) {
		var base=this;
			for(var i in l)
			{
				l[i].onmouseover=function(){
					base.currIndex=parseInt(this.id.replace("_sg",""));
					base.set_style(base.currIndex);
				};
				l[i].onmouseout=function(){
				
				};
				l[i].onclick=function(){
					$(base.currInput).value=this.innerHTML;
					base.closeS();
					return;
				};
			}
	},
	keydowndeal:function (e){
			if(window.event)e=window.event;
			var keyc;
			var base=SF_Suggest;
			if(window.event){
				keyc=e.keyCode;
				}
			else if(e.which){
				keyc=e.which;
				}
			if(keyc==40 || keyc==38){
			if(keyc==40){
				if(base.currIndex<base.$$("li").length){
					base.currIndex++;
					if(base.currIndex>=base.$$("li").length){
						base.currIndex=0;
					}
				}
				if(base.currIndex>=base.$$("li").length){
						base.currIndex=0;
					}
			}
			if(keyc==38){
				if(base.currIndex>0){
					base.currIndex--;

				}
				else{
					base.currIndex=base.$$("li").length-1;
				}
			}
			base.set_style(base.currIndex);
		
			if(base.$$("li")[base.currIndex])
			$(base.currInput).value=base.$$("li")[base.currIndex].innerHTML;
			}


	},
	initThis:function(id){

		with($(id))
		{
			onkeyup=this.keyupdeal;
			onkeydown=this.keydowndeal;
			onclick=this.keyupdeal;
		}
	    this.currInput=id;
		var preview = document.createElement("DIV");
		preview.setAttribute("id","sf_suggest");
		preview.setAttribute("name","sf_suggest");
		//preview.style.display="none";
        preview.style.textAlign="left";
		preview.innerHTML="dadas";
		this.insertAfter(preview,$(id))
	},
	closeS:function(){
	if($(this.currID))
	{
		$(this.currID).innerHTML="";
		//$(this.currID).style.display="none";
	}
	},
	closeD:function(div_id){
	if($(div_id))
	{
		//$(div_id).innerHTML="";
		$(div_id).style.display="none";
	}
	},
	insertAfter:function (newElement,targetElement) {
	  var parent = targetElement.parentNode;
	  if (parent.lastChild == targetElement) {
		parent.appendChild(newElement);
	  } else {
		parent.insertBefore(newElement,targetElement.nextSibling);
	  }
	}


};
//(function(){window.onload=function(){SF_Suggest.initThis("input_keyw");}})();
/////////20081.2新房搜索添加
var SF_Search_Newhouse ={
	currCity:"北京",
	currDist:"",
	currComa:"",
	currPric:"",
	currKeyWord:"",
	currSubw:"",
	currPurp:"",
	currSort:"",
	currRoun:"",
	currPage:1,
	currRecordCount:0,
	currTimeUsed:0,
	currField:"title",
	currDomain:"soufun.com",
	currUrlJson:null,
	currMapCount:0,
	currMapData:"",
	currTempMapData:"",
	//新增豪宅变量
	currPricem:0,
	currPricex:0,
	currAream:0,
	currAreax:0,
	currRoom:0,
	currHall:0,
	stopBubble:function (e) {
	   if ( e && e.stopPropagation )
	   e.stopPropagation();
	   else
	   window.event.cancelBubble = true;
	},
	cutArray:function(arr){
		while(arr.join(" ").length>parseInt(document.body.clientWidth/20))
		{
			arr.pop();
		}
		return arr;
	}, 
	trimArray:function(arr) {
		var newArr=[];
		while( arr.length != 0 )
		{
			newArr.push(arr[0]);
			eval("arr = arr.toString().replace(/,"+arr[0]+"(?=[,])/g,'').split(',')");
			arr.shift();
		}
		return newArr;
	},
	bulidABCCondition:function(num,str){
		if(str=="重庆"||str=="CBD")
		{
		num=2;
		}
		return num;
	},
	buildABC:function(_array){
		if(!_array)return "";
		var charray=new Array();
		for(var i=0;i<26;i++)
		{
			charray[i]="";
		}
		for(var j=0;j<_array.length;j++)
		{
			var _n=SFDB.getFirstChr(_array[j]).charCodeAt(0)-97;
			_n=parseInt(_n);
			_n=this.bulidABCCondition(_n,_array[j]);
			if(charray[_n]!="")
			{
				charray[_n]+=' <a href="#">'+_array[j]+'</a>';
			}
			else
			{
				charray[_n]+='<br/><b style="width:25px;text-align:right;">'+String.fromCharCode(_n+65)+'</b> <a href="#">'+_array[j]+'</a>';	
			}
		}
		return charray.join("").substring(5,charray.join("").length);
	},
	cityMore:function(){//更多城市
		var _c=SFDB.getCitys();
		return this.buildABC(_c);
	},
	dist:function(defaultdist){//区县
		var _d=SFDB.getDisByCity(this.currCity);
		var _temp='<a href="#">';
		
		//if(this.cutArray(_d)=="海淀")
		//{alert(this.cutArray(_d));}
		//{_temp+='<font color="#000000">'this.cutArray(_d).join('</font></a> <a href="#">');}
		//else
		//{_temp+=this.cutArray(_d).join('</a> <a href="#">');}
		_temp+=this.cutArray(_d).join('</a> <a href="#" class="link_01">');
		_temp+='</a>';		
		_temp=_temp.replace("<a href=\"#\">"+defaultdist+"</a>","<font color=#000000>"+defaultdist+"</font>").replace("<a href=\"#\" class=\"link_01\">"+defaultdist+"</a>","<font color=#000000>"+defaultdist+"</font>");
		//alert(_temp);
		return _temp.toString();
		
	},
	distMore:function(){//更多区县
		var _d=SFDB.getDisByCity(arguments[0]||this.currCity);
		return this.buildABC(_d);
	},
	coma:function(defaultcoma){//商圈列表	
		var _a=[];
		if(this.currDist==""||this.currDist=="全部区县"||this.currDist=="选择区县"||this.currDist=="所有"||this.currDist=="区县")
		{
			_a=SFDB.getAreaAll();
		}
		else
		{
			_a=SFDB.getAreaByDist(this.currDist);
		}
		if("北京上海广州深圳".indexOf(this.currCity)>-1)
		{
			
			if(this.currPurp=="写字楼")
			{
				if(SFDB.Xzl[this.currCity])
				{
				
					if(this.currDist!="所有"&&this.currDist!="区县"&&this.currDist!="全部区县"&&this.currDist!=""&&this.currDist!="选择区县")
					{
						if(SFDB.Xzl[this.currCity][this.currDist])
						_a=SFDB.Xzl[this.currCity][this.currDist].split(",");
					}
					else 
					{
						_a=[];
						
						for(var ii in SFDB.Xzl[this.currCity])
						{
							_a=_a.concat(SFDB.Xzl[this.currCity][ii].split(","));
						
						}
				
					}
					
				}
				
			}
			else if(this.currPurp=="商铺")
			{
				if(SFDB.Sp[this.currCity])
				{
					if(this.currDist!="所有"&&this.currDist!="区县"&&this.currDist!="全部区县"&&this.currDist!=""&&this.currDist!="选择区县")
					{
						if(SFDB.Sp[this.currCity][this.currDist])
						_a=SFDB.Sp[this.currCity][this.currDist].split(",");
					}
					else
					{
						_a=[];
						
						for(var ii in SFDB.Sp[this.currCity])
						{
							_a=_a.concat(SFDB.Sp[this.currCity][ii].split(","));
						}
					}
					
				}
				
			}
		}
		var _temp='<a href="#" class="link_01">';
		if(!!_a)
		_temp+=this.cutArray(_a).join('</a> <a href="#" class="link_01">');
		_temp+='</a>';
		_temp=_temp.replace("<a href=\"#\" class=\"link_01\">"+defaultcoma+"</a>","<font color=#000000>"+defaultcoma+"</font>").replace("<a href=\"#\">"+defaultcoma+"</a>","<font color=#000000>"+defaultcoma+"</font>");		
		return _temp.toString();
	},
	comaMore:function(){//更多商圈列表
		SFDB.getDisByCity(this.currCity);
		var _a=this.currDist!="所有"&&this.currDist!="区县"&&this.currDist!="全部区县"&&this.currDist!=""&&this.currDist!="选择区县"?SFDB.getAreaByDist(this.currDist):SFDB.getAreaAll();
		return this.buildABC(this.trimArray(_a));
	},
	comaAll:function(){//所有商圈列表
		var _a=SFDB.getAreaAll();
		var _temp='<a href="#">';
		_temp+=_a!=null?this.cutArray(_a).join('</a> <a href="#" class="link_01">'):"";
		_temp+='</a>';
		return _temp.toString();
	},
	comaAllMore:function(){//更多所有商圈列表
		var _a=SFDB.getAreaAll();
		if(!_a)return;
		return this.buildABC(this.trimArray(_a));
	},
	purp:function(defaultpurp){//物业类型HTML
		var _purp = SFDB.getCityConfig(this.currCity).purp;
		var _temp='<a href="#">';
		_temp+=_purp.join('</a> <a href="#" class="link_01">');
		_temp+='</a>';
		_temp=_temp.replace("<a href=\"#\" class=\"link_01\">"+defaultpurp+"</a>","<font color=#000000>"+defaultpurp+"</font>").replace("<a href=\"#\">"+defaultpurp+"</a>","<font color=#000000>"+defaultpurp+"</font>");
		return _temp.toString();
	},
	roun:function(){//环线HTML
		var _roun = SFDB.getCityConfig(this.currCity).roun;
		if(!_roun)return "";
		var _temp='<a href="#">全部环线</a>  <a href="#" class="link_01">';
		_temp+=_roun.join('</a> <a href="#" class="link_01">');
		_temp+='</a>';
		return _temp.toString();
	},
	subw:function(){//轨道HTML
		var _subw = SFDB.getCityConfig(this.currCity).subw;
		if(!_subw)return "";
		var _temp='<a href="#">';
		_temp+=_subw.join('</a> <a href="#" class="link_01">');
		_temp+='</a>';
		return _temp.toString();
	},
	pric:function(defaultpric){//价格HTML
		var _pric = SFDB.getCityConfig(this.currCity).pric;
		var _temp='<a href="#">';
		_temp+=_pric.join('</a> <a href="#" class="link_01">');
		_temp+='</a>';
		_temp=_temp.replace("<a href=\"#\" class=\"link_01\">"+defaultpric+"</a>","<font color=#000000>"+defaultpric+"</font>").replace("<a href=\"#\">"+defaultpric+"</a>","<font color=#000000>"+defaultpric+"</font>");
		return _temp.toString();
	},
	getSimg:function(url)
	{
		  with(url)
		 {
			url=replace(substring(lastIndexOf("."),length),"_s"+substring(lastIndexOf("."),length));
		 }
		 return url;
	},
	
	getMapInfoFromSF:function(){
		var xml=arguments[0];
		var _mapdataArray=new Array();
		for(var i=0;i<xml.length;i++){
			_mapdataArray[i]=new Object();
			_mapdataArray[i].newcode=xml[i].childNodes[0].firstChild.nodeValue;
			_mapdataArray[i].pric=$son(xml[i].childNodes[12])?(parseInt(xml[i].childNodes[12].firstChild.nodeValue)!="0"?parseInt(xml[i].childNodes[12].firstChild.nodeValue)+"/m2":"价格待定"):"价格待定";
			_mapdataArray[i].name=$son(xml[i].childNodes[3])?xml[i].childNodes[3].firstChild.nodeValue:"不详";
			_mapdataArray[i].url=$son(xml[i].childNodes[1])?xml[i].childNodes[1].firstChild.nodeValue:"#";
			_mapdataArray[i].purp=$son(xml[i].childNodes[9])?xml[i].childNodes[9].firstChild.nodeValue:"不详";
			_mapdataArray[i].img=$son(xml[i].childNodes[11])?this.getSimg(xml[i].childNodes[11].firstChild.nodeValue):"http://tws.soufun.com/imgN/tigong.gif";
			_mapdataArray[i].tel=$son(xml[i].childNodes[5])?xml[i].childNodes[5].firstChild.nodeValue:"";
		}
		return _mapdataArray;
	},
	
	openWin:function(c){
		var _win=null;
		var e= window.event;
		switch(c)
		{
			case "city":
				if(!$("xWin1"))
				{
					//alert(window.screen.availWidth)
					_win=new SF_Win("1",400,300,(e.clientX+400)>document.body.clientWidth?document.body.clientWidth-410:e.clientX,e.clientY+document.body.scrollTop,"城市选择","<div id=\"citymore\" class=\"ChangeCity\" style=\"z-index:99999\">"+this.cityMore()+"<iframe frameborder=\"0\" scrolling=\"no\" src=\"\" style=\"background-color:#f7f7f7;height:400px;position:absolute; visibility:inherit; top:0px; left:0px; z-index:-1; filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0);'\"></iframe></div>");
					this.bindCityEvent();
				}
				break;
			case "dist":
				if(!$("xWin2"))
				_win=new SF_Win("2",300,300,(e.clientX+300)>document.body.clientWidth?document.body.clientWidth-310:e.clientX,e.clientY+document.body.scrollTop,"区县选择","<div id=\"distmore\" class=\"ChangeCity\">"+this.distMore()+"<iframe frameborder=\"0\" scrolling=\"no\" src=\"\" style=\"width:200px;height:275px;position:absolute; visibility:inherit; top:0px; left:0px; z-index:-1; filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';\"></iframe></div>");
				this.bindDistMoreEvent();
				break;
			case "coma":
				if(!$("xWin3"))
				_win=new SF_Win("3",450,300,(e.clientX+450)>document.body.clientWidth?document.body.clientWidth-460:e.clientX,e.clientY+document.body.scrollTop,"商圈选择","<div id=\"comamore\" class=\"ChangeCity \">"+this.comaMore()+"<iframe frameborder=\"0\" scrolling=\"no\" src=\"\" style=\"width:440px;height:250px;position:absolute; visibility:inherit; top:0px; left:0px; z-index:-1; filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';\"></iframe></div>");
				this.bindComaMoreEvent();
				break;
			case "pric":
				if(!$("xWin4"))
				_win=new SF_Win("4",700,55,(e.clientX+700)>document.body.clientWidth?document.body.clientWidth-710:e.clientX,e.clientY+document.body.scrollTop,"价格选择","<div id=\"pricmore\" class=\"ChangeCity\">"+this.pric()+"<iframe frameborder=\"0\" scrolling=\"no\" src=\"\" style=\"width:500px;height:30px;position:absolute; visibility:inherit; top:0px; left:0px; z-index:-1; filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';\"></iframe></div>");
				this.bindPricMoreEvent();
				break;
			case "purp":
				if(!$("xWin5"))
				_win=new SF_Win("5",700,55,(e.clientX+700)>document.body.clientWidth?document.body.clientWidth-710:e.clientX,e.clientY+document.body.scrollTop,"物业类型选择","<div id=\"purpmore\" class=\"ChangeCity\">"+this.purp()+"<iframe frameborder=\"0\" scrolling=\"no\" src=\"\" style=\"height:30px;position:absolute; visibility:inherit; top:0px; left:0px; z-index:-1; filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';\"></iframe></div>");
				this.bindPurpMoreEvent();
				break;
			case "roun":
				if(!$("xWin6")&&this.roun())
				_win=new SF_Win("6",500,55,(e.clientX+500)>document.body.clientWidth?document.body.clientWidth-510:e.clientX,e.clientY+document.body.scrollTop,"环线轨道选择","<div id=\"rounmore\" class=\"ChangeCity\">"+this.roun()+"<iframe frameborder=\"0\" scrolling=\"no\" src=\"\" style=\"height:30px;position:absolute; visibility:inherit; top:0px; left:0px; z-index:-1; filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';\"></iframe></div>");
				this.bindRounMoreEvent();
				break;
		}
		return _win;
	},
	getCityCenter:function (curCity){
		var mapcenter="JPRLRVUSNMLHFH,LXJWOUOPSQVLLJL";
		if(curCity=="鞍山"){mapcenter="JQOLOMPMNHULHFH,MPJOPRUPJHOLLJL";}//鞍山市
		if(curCity=="保定"){mapcenter="JPQLSSTNRLVDLNH,LWJVVVVPMHODHJD";}//保定市
		if(curCity=="北京"){mapcenter="JPRLRVUSNMLHFH,LXJWOUOPSQVLLJL";}//北京市
		if(curCity=="常州"){mapcenter="JPULXTRSJNMLDJD,LPJUUVUPSQSHHJD";}//常州市
		if(curCity=="长春"){mapcenter="JQQLRORQSKDHJH,MRJVWSVPLDLFL";}//长春市
		if(curCity=="长沙"){mapcenter="JPOLOMWMNOMHHJH,KWJPOURPQQUDDJH";}//长沙市
		if(curCity=="潮州"){mapcenter="JPRLUQPJJMVHHFH,KRJTVNQJOQVHHJH";}//潮州市
		if(curCity=="成都"){mapcenter="JOPLOSSRLOULLFL,LOJTTUOLJHODHNH";}//成都市
		if(curCity=="承德"){mapcenter="JPSLXPROOLVLLJH,MOJWXRRPPHOLHNL";}//承德市
		if(curCity=="大连"){mapcenter="JQMLUQQSJONHHNH,LWJWQNTMMHNHDND";}//大连市
		if(curCity=="大庆"){mapcenter="JQPLWUOSKJHDND,MUJTPSPOMHPDHFL";}//大庆市
		if(curCity=="丹东"){mapcenter="JQPLRUPJRLMHHFD,MOJORNOPJHOLLJL";}//丹东市
		if(curCity=="东莞"){mapcenter="JPOLVRWMNHUHHJH,KRJNRURMQQSLHNH";}//东莞市
		if(curCity=="鄂州"){mapcenter="JPPLXMQPQPVDLFL,LOJQWVUSOHNDLNL";}//鄂州市
		if(curCity=="佛山"){mapcenter="JPOLPNNOMPMDHJL,KRJNQMUSNQVLLJL";}//佛山市
		if(curCity=="福州"){mapcenter="JPULRMTNJQNDHFL,KUJNVSOJNHNLDNL";}//福州市
		if(curCity=="抚顺"){mapcenter="JQOLXORMPHVHHND,MPJVUTUQKHQDLND";}//抚顺市
		if(curCity=="广州"){mapcenter="JPOLROPMLKNHHJL,KRJORQOJNDLJD";}//广州市
		if(curCity=="哈尔滨"){mapcenter="JQRLURPKRONLHNH,MTJUUNPQMHNHLJH";}//哈尔滨市
		if(curCity=="海口"){mapcenter="JPLLRONKSOUHHNL,KOJNROQJLQSHHNL";}//海口市
		if(curCity=="邯郸"){mapcenter="JPPLSUWLJHNHDJH,LUJSXVRLJQTDLNH";}//邯郸市
		if(curCity=="杭州"){mapcenter="JQLLPTPSQKMHDNL,LOJPVPWQOQVLHJH";}//杭州市
		if(curCity=="黄石"){mapcenter="JPQLORQRKNVHDJL,LOJPPOQOMQUHLJL";}//黄石市

		if(curCity=="惠州"){mapcenter="JPPLRVWPKKMHHFD,KRJNXPVJMQUHHNH";}//惠州市
		if(curCity=="吉林"){mapcenter="JQRLTTOMNLNHLFL,MRJVSRVMQHPLHJH";}//吉林市
		if(curCity=="济南"){mapcenter="JPSLOONOSPNHHJH,LUJTTVQONHQDLND";}//济南市
		if(curCity=="嘉兴"){mapcenter="JQLLVRVONINHHFH,LOJUTPWKSQUDHNH";}//嘉兴市
		if(curCity=="佳木斯"){mapcenter="JRLLRSWOQQVLLFH,MUJVOTRORHPDLFH";}//佳木斯市
		if(curCity=="江门"){mapcenter="JPOLOVOJJHNLLFD,KQJSWTPKDHJH";}//江门市
		if(curCity=="锦州"){mapcenter="JQMLPQUPRPNLDFD,MPJOQSNSLHOHDNL";}//锦州市
		if(curCity=="开封"){mapcenter="JPPLRQNLKOMDHJL,LSJUWVQKJHNLHJL";}//开封市
		if(curCity=="昆明"){mapcenter="JONLVMQLSQUHHJL,KTJNSVVSLQSHLJH";}//
		if(curCity=="连云港"){mapcenter="JPULPTPRMINHHFL,LSJSXRVSMQUDHNL";}//连云港市
		if(curCity=="洛阳"){mapcenter="JPNLSMNOLNVDHJL,LSJTTSTRJQTHLJH";}//洛阳市
		if(curCity=="绵阳"){mapcenter="JOPLVTRLPMHDND,LPJRTRVQOQTLHND";}//绵阳市
		if(curCity=="南京"){mapcenter="JPTLVVWNQHMLLNH,LQJNVRURJHQDLFH";}//南京市
		if(curCity=="宁波"){mapcenter="JQMLTQQSSLNLLNL,KXJVUUQMOHNHDJL";}//宁波市
		if(curCity=="平顶山"){mapcenter="JPOLRMQOOJMLDFH,LRJUQTQSKHNLDNL";}//平顶山市
		if(curCity=="齐齐哈尔"){mapcenter="JQOLXPUKPOVHDND,MVJQSNSRPQTHHJL";}//齐齐哈尔市
		if(curCity=="秦皇岛"){mapcenter="JPULTUWOPNMHHND,LXJWSTVSNHNLHJH";}//秦皇岛市
		if(curCity=="青岛"){mapcenter="JQLLRRTRNHUHDJL,LUJNWPWSKQSLHNL";}//青岛市
		if(curCity=="泉州"){mapcenter="JPTLTUROKMNHLJH,KSJWQVRSSQSHDJL";}//泉州市
		if(curCity=="三亚"){mapcenter="JOULTNQPKLVLHJL,JWJPRRSKQHQDLJL";}//三亚市
		if(curCity=="汕头"){mapcenter="JPRLVOQQMKUDLNL,KRJQUMOJMLHFD";}//汕头市
		if(curCity=="乌鲁木齐"){mapcenter="osdphlrfigil,kodrhmqgekml";}//乌鲁木齐市
		if(curCity=="广州"){mapcenter="fjqekjmjmqFKOE,gllhkllgoJKKE";}
		if(curCity=="上海"){mapcenter="fkoelopplrJOGE,hjlijlnlnNOOI";}
		if(curCity=="022"){mapcenter="fjuejmmjsJOOE,hrlhhkslnJKGE";}
		if(curCity=="绍兴"){mapcenter="JQLLTVPSSINDLNL,LOJNOPSSJQTHHJD";}//绍兴市
		if(curCity=="深圳"){mapcenter="JPPLORSOQJVHHNL,KQJSSOONRQULHJH";}//深圳市
		if(curCity=="沈阳"){mapcenter="JQOLSPRJNHVHDJL,MPJVORTQNHNHHNH";}//沈阳市
		if(curCity=="石家庄"){mapcenter="JPPLSTTNSJUDDJH,LWJNSUPQJHQHLNH";}//石家庄市
		if(curCity=="四平"){mapcenter="JQPLRVUSPHMLHFD,MRJOVOSKJHQLDNH";}//四平市
		if(curCity=="苏州"){mapcenter="JQLLUPVPRQVLHJL,LPJQQMSNRHNLLJD";}//苏州市
		if(curCity=="泰安"){mapcenter="JPSLPPOSQPUHHNH,LUJOXPTQLQUHHJL";}//泰安市
		if(curCity=="泰州"){mapcenter="JPULXONRNOMDDFH,LQJRUNTPKQTLLNL";}//泰州市
		if(curCity=="唐山"){mapcenter="JPTLPSUMLQUHDNL,LXJTRRPRDLFD";}//唐山市
		if(curCity=="天津"){mapcenter="JPSLQRPMRHNLLJH,LXJOOPVOMHQHHFL";}//天津市
		if(curCity=="威海"){mapcenter="JQNLPOPJSPLHND,LVJSOQPSMHPDHFD";}//威海市
		if(curCity=="潍坊"){mapcenter="JPULPNOKPKUDHNL,LUJUPOQMKHNLDNH";}//潍坊市
		if(curCity=="温州"){mapcenter="JQLLUPUOKOMLLND,KWJNQTNKRQULDJD";}//温州市
		if(curCity=="无锡"){mapcenter="JQLLRRVSSHMHLJL,LPJSUNOLSQUHDJH";}//无锡市
		if(curCity=="武汉"){mapcenter="JPPLQUONPDHNL,LOJSVUOMSQVLHNL";}//武汉市
		if(curCity=="厦门"){mapcenter="JPTLPMOSNJLLNH,KSJRVVPQNQSDDNL";}//厦门市
		if(curCity=="湘潭"){mapcenter="JPNLXMTPMHMLHJL,KVJVUNORJHPLHND";}//湘潭市
		if(curCity=="烟台"){mapcenter="JQMLRVPMNMVLLFH,LVJSRTVSMQVHLJH";}//烟台市
		if(curCity=="0433"){mapcenter="JQULSVUPOLUDHJH,MQJVXQOOLHNHLJH";}//延边朝鲜族自治州
		if(curCity=="扬州"){mapcenter="JPULSNPRPMMHDJL,LQJRPVRQNHOHHNH";}//扬州市
		if(curCity=="营口"){mapcenter="JQNLQOPPPNNHLNH,MOJTUMPQOQSHLNL";}//营口市
		if(curCity=="玉溪"){mapcenter="JONLTPSSLNNHDJL,KSJQSTOOPHQLHJL";}//玉溪市
		if(curCity=="岳阳"){mapcenter="JPOLPMVKSNVHHFH,KXJQUSQKPHHNH";}//岳阳市
		if(curCity=="湛江"){mapcenter="JPLLSONOQKMLDJH,KPJOXUVOSHODHFL";}//湛江市
		if(curCity=="镇江"){mapcenter="JPULSQPNLQLHNH,LQJPPNNNOHHNH";}//镇江市
		if(curCity=="郑州"){mapcenter="JPOLUSQJNHNLLFD,LSJUUNVPSHNLHJL";}//郑州市
		if(curCity=="舟山"){mapcenter="JQNLPMTKKHMLHNL,LOJNQMPSJHOLHFH";}//舟山市
		if(curCity=="0756"){mapcenter="fjqempnnsuJOOM,gklinhrkmJGOE";}
		if(curCity=="资阳"){mapcenter="JOPLURNPQPMLHJH,LOJOQUSPMQULLFH";}//资阳市
		if(curCity=="徐州"){mapcenter="JPSLPTQSOKMHLFD,LSJPTUSQSHOLDFH";}//徐州市
		if(curCity=="许昌"){mapcenter="JPOLWPRKJNLDJH,LSJNQONROHPDLJH";}//许昌市
		if(curCity=="中山"){mapcenter="JPOLRTOONKMHHFH,KQJSQQWSSHPHHFD";}//中山市
		if(curCity=="重庆"){mapcenter="JORLTQVNLNHHNL,KXJSTQWKQHPLDNL";}//重庆市
		if(curCity=="安庆"){mapcenter="QINIITIQRNNHKJ,SHEPKVIILNHOF";}//安庆市
		if(curCity=="安阳"){mapcenter="QIKILSOITPFDKN,SNELJPKIQJHOF";}//安阳市
		if(curCity=="宝鸡"){mapcenter="QHNIJRQQSKNLOJ,SLENOXQILNLON";}//宝鸡市
		if(curCity=="牡丹江"){mapcenter="QJPIOQOLRKNLOJ,TLEPQVLKQJLKJ";}//牡丹江市
		if(curCity=="泸州"){mapcenter="QHLIMTJNQKJHKF,RPESQTIJPFDON";}//泸州市
		if(curCity=="宜昌"){mapcenter="QIHIKXMQPPNHOF,SHERIPJPLNDOF";}//宜昌市
		if(curCity=="张家界"){mapcenter="QIGIMVORTJLKF,RQELJXOPRFLKN";}//张家界市
		if(curCity=="株洲"){mapcenter="QIJIJSRMOONHKF,ROESMOOMOJLGF";}//株洲市
		if(curCity=="茂名"){mapcenter="QIGIRQMPLQJLGJ,RIEQOQPLPNHOF";}//茂名市
		if(curCity=="芜湖"){mapcenter="QIOILVNPORJHOJ,SIENKVKPQNLON";}//芜湖市
		if(curCity=="乐山"){mapcenter="QHJIPSOLRLNLON,RQEPQUOJONLKN";}//乐山市
		if(curCity=="廊坊"){mapcenter="QIMIPOOLNMJHGJ,SQEPLOQMONHGJ";}//廊坊市
		if(curCity=="荆州"){mapcenter="QIIIKSNLQLFLGJ,SHENKTKKLJDGN";}//荆州市
		if(curCity=="金华"){mapcenter="QJGIIVKMMOFHOJ,RQENIQILTNHOJ";}//金华市
		if(curCity=="揭阳"){mapcenter="QIMILURPSMFDOJ,RKEPKVNOLFLGF";}//揭阳市
		if(curCity=="淄博"){mapcenter="QIOIITIIRNLOJ,SNESIULLOFLGF";}//淄博市
		if(curCity=="重庆"){mapcenter="QHMINSQMMOJLKJ,RQEPNSRJRJHKJ";}//重庆市
		if(curCity=="北海"){mapcenter="QHPIJQKRRNJLKJ,RIEOPWPPPJHGJ";}//北海市
		if(curCity=="张家口"){mapcenter="QIKIQWRQPJJHON,THESKUKJPNLKF";}//张家口市
		if(curCity=="盘锦"){mapcenter="QJIIIVJIPFLGN,TIELJWQISJHOJ";}//盘锦市
		if(curCity=="德州"){mapcenter="QIMILONLLPJHON,SOEOMVOIMJHGN";}//德州市
		if(curCity=="十堰"){mapcenter="QIGIPWKIKNJHOJ,SJEQNTLIQNDON";}//十堰市
		if(curCity=="荆门"){mapcenter="QIIIJXOJRQJHKN,SIEKKVPMLJDOJ";}//荆门市
		if(curCity=="巢湖"){mapcenter="QINIQULRPLNHGN,SIEQIQPNONLKN";}//巢湖市
		if(curCity=="南通"){mapcenter="QJGIQVIMNMNHOF,SJEKJPOKNJDKJ";}//南通市
		if(curCity=="0743"){mapcenter="QHPIOOIOMLNHOF,ROETMVKJSJHKN";}//湘西土家族苗族自治州
		if(curCity=="常德"){mapcenter="QIHIPOKORKNLKJ,RQEKLUOLQNHOF";}//常德市
		if(curCity=="南昌"){mapcenter="QILIQXPLQNJLOF,RPEQPWPNRNLGJ";}//南昌市
		if(curCity=="景德镇"){mapcenter="QINIKPMQTQNLKF,RQEMRRRQQFHKN";}//景德镇市
		if(curCity=="内江"){mapcenter="QHLIIUKRLQNLKJ,RQEPQQNJLKN";}//内江市
		if(curCity=="自贡"){mapcenter="QHKIPVIKOLJDOJ,RQENNRLQLJHON";}//自贡市
		if(curCity=="莆田"){mapcenter="QIPIIONQOKNLON,RMEOLTONTNDGJ";}//莆田市
		if(curCity=="梅州"){mapcenter="QIMIJPPNMKFDKN,RLEMRRQIPNLKF";}//梅州市
		if(curCity=="漳州"){mapcenter="QINIOUNRSPJHOJ,RLEPJQLNJLOF";}//漳州市
		if(curCity=="南宁"){mapcenter="QHOILPPISJNHKJ,RJESIUKOOJHKN";}//南宁市
		if(curCity=="防城港"){mapcenter="QHOILTIRMJJLKF,RIEQKRMKSJHGN";}//防城港市
		if(curCity=="本溪"){mapcenter="QJJIPWNOKMFHKJ,TIEMRWLRSNDKF";}//本溪市
		if(curCity=="合肥"){mapcenter="QINIKXNPPNNHOF,SIESOXLMPJHKF";}//合肥市
		if(curCity=="呼和浩特"){mapcenter="QIHIOUOOPJLKJ,THESIWKOMJLKN";}//呼和浩特市
		if(curCity=="黄山"){mapcenter="QIOILONMMLJHON,RQERJQOINJHOJ";}//黄山市
		if(curCity=="焦作"){mapcenter="QIJIKTRRRJJDGJ,SMEMITPMPFHOJ";}//焦作市
		if(curCity=="池州"){mapcenter="QINIMXLIQOJHKJ,SHEQORLKLFLON";}//池州市
		if(curCity=="九江"){mapcenter="QILIRXILTNNLKJ,RQERJTNOQJLOJ";}//九江市
		if(curCity=="柳州"){mapcenter="QHPIMPKOKQJHOJ,RLENIUPNOFHON";}//柳州市
		if(curCity=="马鞍山"){mapcenter="QIOINOKINLNHOJ,SIEQRQRRRNDKJ";}//马鞍山市
		if(curCity=="韶关"){mapcenter="QIJINXOQORFDKJ,RLERRTINMJDKF";}//韶关市
		if(curCity=="台州"){mapcenter="QJHIMTNRKMNHKJ,RPEQPOPRRNHGN";}//台州市
		if(curCity=="咸阳"){mapcenter="QHOIPORQSJLGN,SLENKUPQPJLOJ";}//咸阳市
		if(curCity=="盐城"){mapcenter="QJGIJRRKLKNLKJ,SKENPXLQNLKJ";}//盐城市
		if(curCity=="肇庆"){mapcenter="QIIIMVNPMKFLOF,RKEKPRLQJHKJ";}//肇庆市
		if(curCity=="蚌埠"){mapcenter="QINIMOJPOOJHKF,SJETLOKLQJLOJ";}//蚌埠市
		if(curCity=="包头"){mapcenter="QHPIQVJKSMNHGN,THEQOPONJLON";}//包头市
		if(curCity=="东营"){mapcenter="QIOIOVMPMPNLKF,SOEOLQJMSFHOF";}//东营市
		if(curCity=="贵阳"){mapcenter="QHMIPOQOLPJLOF,RNEPOVRNPFDOJ";}//贵阳市
		if(curCity=="桂林"){mapcenter="QIGIKWMQQPNHON,RMEMQQOPNJDGN";}//桂林市
		if(curCity=="衡阳"){mapcenter="QIIIOPKKMPJDON,RNESRUKNJHOF";}//衡阳市
		if(curCity=="湖州"){mapcenter="QJGIIXORMPNDKJ,SHESPONRRJLOJ";}//湖州市
		if(curCity=="葫芦岛"){mapcenter="QJGIQTOKLKJLON,THERMWJJLNLOJ";}//葫芦岛市
		if(curCity=="辽阳"){mapcenter="QJJIJVRJNRNLKJ,TIEMPVPPSNLOF";}//辽阳市
		if(curCity=="眉山"){mapcenter="QHJIQQOJQMNLKJ,SHEKLWQNPJDKN";}//眉山市
		if(curCity=="宁德"){mapcenter="QIPINROORLJLON,RNEQNRQPPNHOF";}//宁德市
		if(curCity=="汕尾"){mapcenter="QILILVJITNFLON,RJERQSJRMNHKJ";}//汕尾市
		if(curCity=="西安"){mapcenter="QHOIRTMMKJNDGJ,SLEMOSRJPNLOJ";}//西安市
		if(curCity=="襄樊"){mapcenter="QIIIJRNKQNHOJ,SJEKOQIJTNHGN";}//襄樊市
		if(curCity=="新乡"){mapcenter="QIJIQWRQTJHGJ,SMENIPNMTNHON";}//新乡市
		if(curCity=="阳江"){mapcenter="QIHIRWLOMNJHOJ,RIESPPRNLNLOJ";}//阳江市
		if(curCity=="宜宾"){mapcenter="QHKIOQQOTOFLKJ,RPERNXKKQJDKN";}//宜宾市
		if(curCity=="太原"){mapcenter="QIIINRJMSKNLKN,SOESNTJKMNHON";}//太原市
		if(curCity=="延安"){mapcenter="QHPIMXONNHGJ,SNEPRRLKFDOJ";}//延安市
		if(curCity=="兰州"){mapcenter="lemlvhtkonJMJO,nkhnsivfolJENK";}//兰州
		if(curCity=="银川"){mapcenter="fipfmlnqrjilndo,hqhlqimkqmljlk";}//银川
		if(curCity=="西宁"){mapcenter="gffjsontknJGFE,ilcrnjqnjqFKNM";}//西宁
		if(curCity=="铁岭"){mapcenter="QMLMXQOMNLOGNM,TMGQXTUKOPOONI";}//铁岭
		if(curCity=="阜新"){mapcenter="kinlmlwkqhnJJLL,nhkwnksmppNJHH";}//阜新
		if(curCity=="朝阳"){mapcenter="HPMFTLYPVVPJLIK,KOKMWNRNXTJHMK";}//朝阳
		if(curCity=="临沂"){mapcenter="gloiomplevJJLN,ipekqnprfrJFLF";}//临沂
		if(curCity=="宿州"){mapcenter="ihrjppijnumMOJM,kjjrjmolpIOJM";}//宿州 
		if(curCity=="宿迁"){mapcenter="JPTLQVSKJKVHLJL,LRJWTTOMMPHHJL";}//宿迁
		if(curCity=="淮安"){mapcenter="khvlhoomllqNJLL,mjksgnospiNJLL";}// 淮安
		if(curCity=="衢州"){mapcenter="QLQMXRRKOOUKKNM,mjksgnospiNJLL";}// 衢州
		if(curCity=="滁州"){mapcenter="khuljltrsmkNNHL,mikqgpuqunNNHD";}// 滁州
		if(curCity=="六安"){mapcenter="QLOMUMPQOMSKKFM,SLGVUKSMQPOKNE";}// 六安
		if(curCity=="淮南"){mapcenter="IOTELNQSQRULLIL,KPKMPRNRRRDDIL";}// 淮南
		if(curCity=="铜陵"){mapcenter="HIWJRJPROSKKKMD,JHNUKMYUVOKKEL";}// 铜陵
		if(curCity=="池州"){mapcenter="QINIMXLIQOJHKJ,SHEQORLKLFLON";}// 池州
		if(curCity=="阜阳"){mapcenter="HIUJRMTUWONKGMD,JJNUJJSSNLKOMH";}// 阜阳
		if(curCity=="宁德"){mapcenter="fjwemlsomtJOKI,golmmiqFOGM";}//宁德
		if(curCity=="龙岩"){mapcenter="ihmkfpltsguLNDH,jldmosjlwoHJLH";}//龙岩
		if(curCity=="南平"){mapcenter="IKXFIPMVNLKHLON,JPNNKOMPNHLDGN";}//南平
		if(curCity=="三明"){mapcenter="HIWJRJPROSKKKMD,JHNUKMYUVOKKEL";}//三明
		if(curCity=="菏泽"){mapcenter="khrlkotrmqJJHL,mlkpkotlqJNDD";}//菏泽
		if(curCity=="聊城"){mapcenter="QMUMRRPQMOUKNOO,SRNSMSQLJOJGO";}//聊城
		if(curCity=="日照"){mapcenter="morhivqqokqGNDH,osgnfqkwpnGJHL";}//日照
		if(curCity=="枣庄"){mapcenter="ILPGTUGVQVLKOMM,KOGQRUMUQOGOII";}//枣庄 
		if(curCity=="清远"){mapcenter="MJKGLQNNMWTNKHL,NLFPMNOMOOFOHH";}//清远
		if(curCity=="云浮"){mapcenter="NHOHHLOOXJKMFGK,OIKSJQMHULIFKO";}//云浮
		if(curCity=="日喀则"){mapcenter="uphqujqltkNIKK,oqhktfrprnJIKK";}//日喀则
		if(curCity=="西宁"){mapcenter="ihferjnwpkJIIF,knclsmgthlFMMN";}//西宁
		if(curCity=="拉萨"){mapcenter="TPEMKKPQVRDMJI,MXERNONSXQHIFM";}//拉萨市
		if(curCity=="丽水"){mapcenter="ihtjriqojwpKLNH,joipmpqtnwKHFH";}//丽水
		if(curCity=="莱芜"){mapcenter="KOQNNPUUWNSKKOE,MTHQQRXMQUOGKI";}//莱芜市
		if(curCity=="济宁"){mapcenter="HOQHLXTQPSTHIGN,JSINGQQNOSHEOF";}//济宁市
		if(curCity=="滨州"){mapcenter="jfvlglnskrmNLJN,lllqnmnokpJLJJ";}//滨州市
		if(curCity=="河源"){mapcenter="ihihmuphoqMODM,jjcqjrqfjmEGDM";}//河源市
		return mapcenter;
	},
	closeWin:function(id){
		$(id).parentNode.removeChild($(id));
	},
	bindCityEvent:function(){//城市事件绑定
		var base=this;
		var _a=$("citymore").getElementsByTagName("a");
		for(var i=0;i<_a.length;i++)
		{
			_a[i].onclick=function(){
				//alert(this.innerText);
				$("hidden_city").value=this.innerText;
				$("hidden_district").value="";
				$("hidden_comarea").value="";
				$("hidden_round").value="";
				$("hidden_purpose").value="";
				$("hidden_price").value="";
				$("form_newhouse").submit();
			};
		}
	},
	bindDistEvent:function(){//区县事件绑定
		var _a=$("div_list_dist").getElementsByTagName("a");
		var base=this;
		for(var i=0;i<_a.length;i++)
		{
			_a[i].onclick=function(){
				
				$("hidden_district").value=this.innerText;
				$("hidden_comarea").value="";
				$("form_newhouse").submit();

			};
		}
		//全部
		var _b=$("div_list_dist").getElementsByTagName("strong")[0];
		_b.onclick=function(){
			$("hidden_district").value=this.innerText;
			$("hidden_comarea").value="";
			$("form_newhouse").submit();

		};
		
	},
	bindDistMoreEvent:function(){//更多区县事件绑定
		var _b=$("distmore").getElementsByTagName("a");
		var base=this;
		for(var i=0;i<_b.length;i++)
		{
			_b[i].onclick=function(){
				$("hidden_district").value=this.innerText;
				$("hidden_comarea").value="";			   
				$("form_newhouse").submit();
			};
		}
		
	},
	bindComaEvent:function(){//商圈事件绑定
		var _a=$("div_list_coma").getElementsByTagName("a");
		var base=this;
		for(var i=0;i<_a.length;i++)
		{
			_a[i].onclick=function(){
				$("hidden_comarea").value=this.innerText;
				
				$("form_newhouse").submit();
			};
		}
		var _b=$("div_list_coma").getElementsByTagName("strong")[0];
		_b.onclick=function(){
			$("hidden_comarea").value=this.innerText;
				$("form_newhouse").submit();

		};
	},
	bindComaMoreEvent:function(){//更多商圈事件绑定
		var _b=$("comamore").getElementsByTagName("a");
		var base=this;
		for(var i=0;i<_b.length;i++)
		{
			_b[i].onclick=function(){
				$("comarea").value=this.innerText;
				//$("form1").submit();
				changecomaurl(this.innerText);
			};
		}
		
	},
	bindPricEvent:function(){//价格事件绑定
		var _a=$("div_list_pric").getElementsByTagName("a");
		var base=this;
		for(var i=0;i<_a.length;i++)
		{
			_a[i].onclick=function(){
				$("hidden_price").value=this.innerText;
				$("form_newhouse").submit();

			};
		}
		var _b=$("div_list_pric").getElementsByTagName("strong")[0];
		_b.onclick=function(){
			$("hidden_price").value=this.innerText;
				$("form_newhouse").submit();

		};
	},
	bindPricMoreEvent:function(){//更多价格事件绑定
		var _b=$("pricmore").getElementsByTagName("a");
		var base=this;
		for(var i=0;i<_b.length;i++)
		{
			_b[i].onclick=function(){
			$("hidden_price").value=this.innerText;
				$("form_newhouse").submit();
			};
		}
		
	},
	bindPurpEvent:function(){//物业类型事件绑定
		var no=$("div_list_purp");
		var base=this;
		var _a=no.getElementsByTagName("a");
		for(var i=0;i<_a.length;i++)
		{
			_a[i].onclick=function(){
				$("hidden_purpose").value=this.innerText;
				$("form_newhouse").submit();

			};
		}
		var _b=no.getElementsByTagName("strong")[0];
		_b.onclick=function(){
			$("hidden_purpose").value=this.innerText;
				$("form_newhouse").submit();


		};
	},
	bindPurpMoreEvent:function(){//物业类型事件绑定
		var _b=$("purpmore").getElementsByTagName("a");
		var base=this;
		for(var i=0;i<_b.length;i++)
		{
			_b[i].onclick=function(){
			$("hidden_purpose").value=this.innerText;
				$("form_newhouse").submit();

			};
		}
		
	},
	bindRounMoreEvent:function(){//更多环线事件绑定
		if(!$("rounmore"))return;
		var _b=$("rounmore").getElementsByTagName("a");
		var base=this;
		for(var i=0;i<_b.length;i++)
		{
			_b[i].onclick=function(){
				$("hidden_round").value=this.innerText;
				$("form_newhouse").submit();

			};
		}
		
	}

};
