var xmtt = "//imgwcs2.soufunimg.com/viewimage/house/2021_11/27/db797849-37ac-4ba0-b64d-9ad55a88131c/282x188.jpg";
var xmmc = "国誉·万和城";
var newcode = "1010130281";
var xmjj = "82000元/㎡";
var yhxx = "查看详情";
var xmbq1 = "14号线西段";
var xmbq1url = "http://newhouse.fang.com/house/s/b499-b7rail/";
var xmbq2 = "四至五环";
var xmbq2url = "http://newhouse.fang.com/house/s/fengtai/b1housetag-c466/";
var xmbq3 = "板楼";
var videotag = 1;
var xmbq3url = "http://newhouse.fang.com/house/s/fengtai/b1housetag-c479/";
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_32199787"));
if ($("#ad_eyes_32199787 .iconlive").length == 0) {
$(" ").prependTo($("#ad_eyes_32199787"));
var aelement = $("#ad_eyes_32199787 a");
for(i = 0; i < aelement.length; i++) {
$("#ad_eyes_32199787 a")[i].href = $("#ad_eyes_32199787 a")[i].href + '?sort=video'
}
}
}
}
}
});
}
})();