var xmtt = "//imgwcs2.soufunimg.com/viewimage/house/2020_06/29/48bfd300-d271-4dd5-a571-45dfe3a48776/282x188.jpg";
var xmmc = "北京·东湾";
var newcode = "1010127157";
var xmjj = "68500元/㎡";
var yhxx = "查看详情";
var xmbq1 = "八通线";
var xmbq1url = "http://newhouse.fang.com/house/s/b413-b7rail/";
var xmbq2 = "双卫";
var xmbq2url = "http://newhouse.fang.com/house/s/tongzhou/b1housetag-c419/";
var xmbq3 = "南北通透";
var videotag = 1;
var xmbq3url = "http://newhouse.fang.com/house/s/tongzhou/b1housetag-c417/";
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_32180892"));
if ($("#ad_eyes_32180892 .iconlive").length == 0) {
$(" ").prependTo($("#ad_eyes_32180892"));
var aelement = $("#ad_eyes_32180892 a");
for(i = 0; i < aelement.length; i++) {
$("#ad_eyes_32180892 a")[i].href = $("#ad_eyes_32180892 a")[i].href + '?sort=video'
}
}
}
}
}
});
}
})();