var xmtt = "//imgwcs2.soufunimg.com/viewimage/house/2021_11/05/1578592f-1627-4793-aa98-da9166a6d926/282x188.jpg";
var xmmc = "龙湖云璟";
var newcode = "1010185857";
var xmjj = "价格待定";
var yhxx = "查看详情";
var xmbq1 = "8号线";
var xmbq1url = "http://newhouse.fang.com/house/s/b47-b7rail/";
var xmbq2 = "五至六环";
var xmbq2url = "http://newhouse.fang.com/house/s/changping/b1housetag-c462/";
var xmbq3 = "板塔结合";
var videotag = 0;
var xmbq3url = "http://newhouse.fang.com/house/s/changping/b1housetag-c481/";
var isXiaoguoPic = true;
var adtag = "0";
(function(){
var str='';
str+='
';
if(adtag == '1'||adtag==1){
str+='';
}
if(isXiaoguoPic=='true'||isXiaoguoPic==true){
str+='

';
}else{
str+='
';
}
if(videotag == 1||videotag == '1'){
str+=" ";
}
str+='
';
str+='';
str+='';
str+='';
if(xmbq1){
str+='
'+xmbq1+'';
}
if(xmbq2){
str+='
'+xmbq2+'';
}
if (xmbq3){
str+='
'+xmbq3+'';
}
str+='
';
document.write(str);
document.write("
");
getstatus()
function getstatus(){
$.ajax({
url:"https://openadapi.fang.com/adtrains/liveTrains.do?newcode="+newcode,
timeout:5000,
success:function(data){
var obj = JSON.parse(data);
if(obj){
var livestatus = obj.data ;
var livestatusStr = '';
if(livestatus == 0){ return;}else{
$("").prependTo($("#ad_eyes_32180895"));
if ($("#ad_eyes_32180895 .iconlive").length == 0) {
$(" ").prependTo($("#ad_eyes_32180895"));
var aelement = $("#ad_eyes_32180895 a");
for(i = 0; i < aelement.length; i++) {
$("#ad_eyes_32180895 a")[i].href = $("#ad_eyes_32180895 a")[i].href + '?sort=video'
}
}
}
}
}
});
}
})();