function postMessageFunc(e,a){var i=e.contentWindow;try{i.postMessage?i.postMessage(a,"*"):"function"==typeof i.navigator.mediav_message_handler&&i.navigator.mediav_message_handler(a)}catch(t){}}var mediav=window.mediav||{},t=function(){var e={lossy:!1,lossless:!1,alpha:!1,animation:!1},a=!1,i=0,t=function(t){var n={lossless:"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",animation:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA",lossy:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA=="};try{for(var d in n)!function(a){var d=new Image;d.onload=function(){e[a]=d.width>0&&d.height>0,0===--i&&t&&t(!0)},d.onerror=function(e){i=0,t&&t(!1)},d.src="data:image/webp;base64,"+n[a],i++}(d)}catch(o){console.warn(o)}a=!0};return function(a,i){var n=window.webp_support;if(n){var d=n.lossy&&n.lossless&&n.alpha&&n.animation;"function"==typeof a&&a(d,i)}else t(function(t){var n=!1;t&&(n=e.lossy&&e.lossless&&e.alpha&&e.animation,window.webp_support=n),"function"==typeof a&&a(n,i)})}}();if(t(),mediav.browser=mediav.browser||{},mediav.version="1.2.11",function(){var e=navigator.userAgent;/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(e)&&!/chrome/i.test(e)&&(mediav.browser.safari=+(RegExp.$1||RegExp.$2))}(),"Microsoft Internet Explorer"==navigator.appName){var ua=navigator.userAgent,rv,re=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");null!=re.exec(ua)&&(rv=parseFloat(RegExp.$1)),mediav.browser.ie=rv}/opera\/(\d+\.\d)/i.test(navigator.userAgent)&&(mediav.browser.opera=+RegExp.$1),mediav.url=mediav.url||{},mediav.lang=mediav.lang||{},mediav.lang.isArray=function(e){return"[object Array]"==Object.prototype.toString.call(e)},mediav.url.queryToJson=function(e){for(var a,i,t,n,d=e.substr(e.lastIndexOf("?")+1),o=d.split("&"),r=o.length,m={},c=0;c=0;a--)t=e.charCodeAt(a),i=(i<<6&268435455)+t+(t<<14),t=266338304&i,i=0!=t?i^t>>21:i;return i}mediav.getUID=function(){var a=mediav._uid;return a||(mediav._fuid=1,a=""+(new Date-0)+e(window.location.href)+Math.random()+Math.random()+Math.random()+Math.random(),a=a.replace(/\./g,"").substring(0,32),mediav._uid=a,a)};try{window.parent!=window&&(window.parent.mediav&&window.parent.mediav._uid?mediav._uid=window.parent.mediav._uid:window.parent.mediav?window.parent.mediav._uid=mediav.getUID():window.parent.mediav={_uid:mediav.getUID()})}catch(n){}try{if(window.parent!=window&&document.domain.indexOf("msn.com.cn")>=0){var a=e(document.referrer);if(document.cookie.indexOf(a)>=0){var i=new RegExp("(^| )"+a+"=([^;]*)(;|$)"),t=i.exec(document.cookie);mediav._uid=t[2]}else document.cookie=a+"="+mediav.getUID();setTimeout(function(){document.cookie=a+"=;expires="+(new Date).toGMTString()},1e4)}}catch(n){}}(),mediav.getImpid=function(){if(mv_impid)return mv_impid;var e=[],a=new Date;return e.push(Math.floor(991*Math.random())+1),e.push(mediav.getFixed(a.getMilliseconds(),3)),e.push(999),e.push(mediav.getFixed(a.getSeconds())),e.push(mediav.getFixed(a.getMinutes())),e.push(mediav.getFixed(a.getHours())),e.push(mediav.getFixed(a.getDate())),e.push(mediav.getFixed(a.getMonth()+1)),mv_impid=e.join("")},mediav.ad||(mediav.ad={}),mediav.otherBannerIds||(mediav.otherBannerIds=[]),mediav.otherCreativeIds||(mediav.otherCreativeIds=[]),mediav.ad.wraps=mediav.ad.wraps||{},mediav.ad.status=mediav.ad.status||{},mediav.ad.pubs=mediav.ad.pubs||{},mediav.initInnerConfig=function(){mediav.configs={ad:{logo:!0,repeat:!1,db:"mediav",asyn:!1,unique:!0},"default":{overtime:12},other:{keyword:"",queryword:"",adtest:!1,ref:!0}}},function(){function e(e,a){var i=e.split("_"),t=i[1],n=i[2];n?mediav.configs[t][n]=a:mediav.configs.other[t]=a}function a(){t(window),mediav.ad.clearGlobalVar()}function i(e){t(e)}function t(a){for(var i=n.length;i;i--){var t=n[i-1],d=a[t];null!=d&&e(t,d)}}var n=["mediav_ad_ref","mediav_ad_wrap","mediav_ad_pub","mediav_ad_width","mediav_ad_height","mediav_ad_logo","mediav_ad_repeat","mediav_ad_async","mediav_ad_host","mediav_ad_tck","mediav_ad_db","mediav_ad_mainurl","mediav_default_material","mediav_default_clickurl","mediav_default_turl","mediav_default_overtime","mediav_keyword","mediav_queryword","mediav_adtest","mediav_ad_listenurl","mediav_ad_unique","mediav_addition","mediav_ad_adviva","mediav_ad_resBackup","mediav_ad_protocolSafe","mediav_ad_onfail","mediav_ad_onsuccess","meidav_ad_gntype"];mediav.ad.clearGlobalVar=function(){for(var e=n.length;e;e--){var a=n[e-1];window[a]!=undefined&&null!=window[a]&&(window[a]=null)}},mediav.ad.initConfig=function(e){if(e?i(e):window.mediav_ad_pub&&a(),!mediav.configs.ad.pub)return!0;var t=mediav.configs.ad.pub.split("_");mediav.configs.ad.pub=t[1]||t[0],mediav.configs.ad.showid=t[0],mediav.ad.pubs[t[1]]=1,mediav.configs.ad.wrap&&(mediav.ad.wraps[mediav.configs.ad.pub]=mediav.configs.ad.wrap,mediav.configs.ad.async=!0);var n=mediav.configs["default"].clickurl,d=mediav.configs["default"].turl;n&&(mediav.configs["default"].clickurl=n.replace(/\?type=\d/,function(e){return e+"&impid="+mediav.getImpid()})),d&&(mediav.configs["default"].turl=d.replace(/\?type=\d/,function(e){return e+"&impid="+mediav.getImpid()}))}}(),mediav.ad.listen=function(e,a){var i=new Image;i.onload=i.onerror=window[e+"_mv_"+(new Date-0)]=function(){},i.src=a},mediav.ad.startAdStateCheck=function(e,a,i){function t(){return!!window["mediav_fini"+s]}function n(){return!!window["mediav_noshow"+s]}function d(){return mediav.string.format(c,a.clickurl||"javascript:void(0)",i.width,i.height,a.material)}function o(){var n=null,o=null,c=curDateStamp=(new Date).valueOf();if(!t()){var s=i.pub;o=mediav.G(e),o&&(o.innerHTML=d()),a.turl&&r(a.turl);var l=mediav.G("mvlogo_"+s);l&&(l.style.display="block"),m(),n=setInterval(function(){curDateStamp=(new Date).valueOf(),t()&&(window.clearInterval(n),o&&(o.style.display="none"),l&&(l.style.display="none")),curDateStamp-c>=6e4&&window.clearInterval(n)},800)}}function r(e){var a=new Image;a.src=e,a.onerror=a.onload=a.onabort=function(){a=null}}function m(){mediav.ad.status[s]="stop";var e="mvscr"+s,a=document.getElementById(e);if(a){if(a.clearAttributes)a.clearAttributes();else for(var i in a)a.hasOwnProperty(i)&&delete a[i];a&&a.parentNode&&a.parentNode.removeChild(a),a=null}}var c="",s=i.pub,l=i.onfail,v=i.onsuccess,u=timerCurDateStamp=(new Date).valueOf(),p=setInterval(function(){if(t())clearInterval(p),"function"==typeof v&&v();else if(n())if(clearInterval(p),"function"==typeof l){var e=mediav.G("mvdiv_"+s+"_holder");e.parentNode.removeChild(e),l();var d=i.mvAdDomId;d&&(mediav.ad.namespace[d].checkInViewportTimer&&clearInterval(mediav.ad.namespace[d].checkInViewportTimer),mediav.ad.namespace[d].offScroll&&mediav.ad.namespace[d].offScroll(),mediav.ad.namespace[d].offResize&&mediav.ad.namespace[d].offResize())}else if(mediav.configs.other.queryword){var e=mediav.G("mvdiv_"+s+"_holder");e.parentNode.removeChild(e);var d=i.mvAdDomId;d&&(mediav.ad.namespace[d].checkInViewportTimer&&clearInterval(mediav.ad.namespace[d].checkInViewportTimer),mediav.ad.namespace[d].offScroll&&mediav.ad.namespace[d].offScroll(),mediav.ad.namespace[d].offResize&&mediav.ad.namespace[d].offResize())}else mediav.ad["fillHoleTimer_mediav_fini"+s]=setTimeout(o,1e3*a.overtime);else timerCurDateStamp=(new Date).valueOf(),timerCurDateStamp-u>=1e3*a.overtime&&(clearInterval(p),a.material&&o())},100)},mediav.ad.getBaseUrl=function(){if(document.baseURI)return document.baseURI;var e=document.getElementsByTagName("base");return e.length>0?e[0].href:document.URL},mediav.ad.parseURL=function(e){var a=document.createElement("a");return a.href=e,{source:e,protocol:a.protocol.replace(":",""),host:a.hostname,port:a.port,query:a.search,params:function(){for(var e,i={},t=a.search.replace(/^\?/,"").split("&"),n=t.length,d=0;d|<|\'|\"|\%/g,"").slice(0,20),n.refurl=decodeURIComponent(window.top.document.referrer).slice(0,155)):(n.isifr=0,n.title=document.title.replace(/\(|\)|>|<|\'|\"|\%/g,"").slice(0,20),n.refurl=decodeURIComponent(document.referrer).slice(0,155));var r=mediav.ad.parseURL(mediav.ad.getBaseUrl());"sh.qihoo.com"!==r.host&&"www.360kuai.com"!==r.host&&"360kuai.com"!==r.host||(n.gnid=r.segments.length>0?r.segments[r.segments.length-1]:"",t.push("gnid"))}catch(c){}var m=mediav.ad.getQueryString(window.top.document.location.search,"tmprtp")||"";return n.tmprtp=m,i.adtest&&(n.adtest=i.adtest),i.keyword&&(n.keyword=i.keyword),i.queryword&&(n.queryword=i.queryword),e.tck&&(n.tck=e.tck),e.ref&&(n.ref=e.ref),e.gntype&&(n.gntype=e.gntype),n.enifr=1,n.ver=mediav.version,mediav.otherBannerIds.push(e.pub),mediav.url.jsonToQuery(n,null,t)},mediav.ad.getScriptHTML=function(e,a){var i,t=mediav.configs.ad;i=t.host?"http://"+t.host:t.adviva?"https://show-a.mediav.com/s":"https://show-g.mediav.com/s";var n=i+"?"+mediav.ad.getScriptUrl(mediav.configs.ad,mediav.configs["default"],mediav.configs.other);if(mediav.configs.other.addition&&(n=n+"&"+mediav.configs.other.addition),a){var d=document.createElement("script");e&&(d.id=e),d.type="text/javascript",d.async=!0,d.charset="utf-8",d.src=n;var o=document.getElementsByTagName("script")[0];return o.parentNode.insertBefore(d,o),""}return'