(function(){ var self=this;window.ppliveadsystem={},window.onerror=function(){},self._aduid||(self._aduid=+new Date);var util=function(){var a=this,b=function(){function a(k,l){l=l||document;var m=/^[\w\-_#]+$/.test(k);if(!m&&l.querySelectorAll)return b(l.querySelectorAll(k));if(k.indexOf(",")>-1){for(var n=k.split(/,/g),o=[],p=0,q=n.length;q>p;++p)o=o.concat(a(n[p],l));return j(o)}var r,s=k.match(e),t=s.pop(),u=(t.match(g)||i)[1],v=!u&&(t.match(f)||i)[1],w=!u&&(t.match(h)||i)[1];if(v&&!w&&l.getElementsByClassName)r=b(l.getElementsByClassName(v));else if(r=!u&&b(l.getElementsByTagName(w||"*")),v&&(r=d(r,"className",RegExp("(^|\s)"+v+"(\s|$)"))),u){var x=l.getElementById(u);return x?[x]:[]}return s[0]&&r[0]?c(s,r):r}function b(a){try{return Array.prototype.slice.call(a)}catch(b){for(var c=[],d=0,e=a.length;e>d;++d)c[d]=a[d];return c}}function c(a,b,d){var e=a.pop();if(">"===e)return c(a,b,!0);var j,k,l,m=[],n=-1,o=(e.match(g)||i)[1],p=!o&&(e.match(f)||i)[1],q=!o&&(e.match(h)||i)[1],r=-1;for(q=q&&q.toLowerCase();j=b[++r];){k=j.parentNode;do if(l=!q||"*"===q||q===k.nodeName.toLowerCase(),l=l&&(!o||k.id===o),l=l&&(!p||RegExp("(^|\s)"+p+"(\s|$)").test(k.className)),d||l)break;while(k=k.parentNode);l&&(m[++n]=j)}return a[0]&&m[0]?c(a,m):m}function d(a,b,c){for(var d,e=-1,f=-1,g=[];d=a[++e];)c.test(d[b])&&(g[++f]=d);return g}var e=/(?:[\w\-\.#]+)+(?:\[\w+?=(['"])?(?:\\1|.)+?\1\])?|\*|>/gi,f=/^(?:[\w\-_]+)?\.([\w\-_]+)/,g=/^(?:[\w\-_]+)?#([\w\-_]+)/,h=/^([\w\*\-_]+)/,i=[null,null],j=function(){var a=+new Date,b=function(){var b=1;return function(c){var d=c[a],e=b++;return d?!1:(c[a]=e,!0)}}();return function(c){for(var d,e=c.length,f=[],g=-1,h=0;e>h;++h)d=c[h],b(d)&&(f[++g]=d);return a+=1,f}}();return a}();return{$:b,agent:window.navigator.userAgent.toLowerCase(),set:function(a,b,c){var d=encodeURIComponent(b),e=864e5;if("number"==typeof c){var f=c;f=new Date,f.setTime(f.getTime()+c*e),c&&(d+="; expires="+f.toUTCString())}document.cookie=a+"="+d},get:function(a){var b=document.cookie.match(new RegExp("(^| )"+a+"=([^;]*)(;|$)"));return null!==b?decodeURIComponent(b[2]):null},isClient:function(){try{if(a.external&&external.GetObject("@pplive.com/ui/mainwindow;1"))return!0}catch(b){}return!1},plt:function(){return a.plt||(a.plt=util.isClient()?"clt":"web"),a.plt},isIpad:function(){return util.agent.match(/(iphone|ipad|ipod)/i)?!0:!1},sendMonitor:function(a){if(a&&"string"==typeof a)for(var b=a.split("|")||[],c=(new Image,0),d=b.length;d>c;c++)setTimeout(function(a){return function(){var c=new Image(1,1);c.onload=c.onerror=function(){},c.src=b[a]+(/\?/.test(b[a])?"&":"?")+"rnd="+ +new Date}}(c),1500*c)},queryToObject:function(a){if(!a||""===a)return{};for(var b,c={},d=a.split("&"),e=0;d[e];)b=d[e].split("="),c[b[0]]=b[1],e++;return c}}}.call(this);!function(a){function b(a,b){var c=/^(?:(\+|-)=)?(-?\d+(?:\.\d+)?)(px|)$/,d=c.exec(b);if(d)return{operator:d[1]?d[1]:"",num:d[2]?d[2]:"",unit:d[3]?d[3]:""};throw new Error("传入参数不能运行动画")}function c(a,c,d,e){var f=d.speed||1e3,g=20;navigator.userAgent.indexOf("MSIE 8.0")>0&&(g=80),a.ani||(a.ani={}),_ads.each(c,function(c,d){a.ani[d]||(a.ani[d]=[]);var h=b(d,c),i={};h.operator||(i.end=c);var j;if(h.num){var k=0;i.callback=e,i.begin=function(){var c=_ads.getAppliedStyle(a,d);i.start=c;var l=b(d,c);h.operator&&(i.end=1*l.num+("+"===h.operator?1*h.num:-1*h.num)+h.unit,h=b(d,i.end));var m=h.num-l.num,n=m/f*g,o=m/n;j=setInterval(function(){k++;var b=1*l.num+n*k+h.unit;_ads.setStyle(a,d,b),k>=o&&(_ads.setStyle(a,d,i.end),e&&i.callback.call(i),clearInterval(j),a.ani[d].shift(),a.ani[d].length&&a.ani[d][0].begin())},g)},i.finish=function(){j&&clearInterval(j)},1===a.ani[d].push(i)&&i.begin()}},this)}function d(a,b){for(var c in a.ani){var d=a.ani[c].length;d&&(a.ani[c][0].finish(),a.ani[c][0].callback&&a.ani[c][0].callback.call(this),_ads.setStyle(a,c,a.ani[c][d-1].end),a.ani[c].length=0,b&&b())}}a.AniModule={},a.AniModule.animation=c,a.AniModule.stop=d}(window),function(){var a=this;_ads={};var b={},c=Array.prototype,d=Object.prototype;Function.prototype;var e=d.hasOwnProperty,f=c.forEach,g=Object.keys;_ads.isIE=!-[1],_ads.keys=g||function(a){if(a!==Object(a))throw new TypeError("Invalid object");var b=[];for(var c in a)e.call(a,c)&&b.push(c);return b},_ads.each=function(a,c,d){if(null!=a)if(f&&a.forEach===f)a.forEach(c,d);else if(a.length===+a.length){for(var e=0,g=a.length;g>e;e++)if(c.call(d,a[e],e,a)===b)return}else for(var h=_ads.keys(a),e=0,i=h.length;i>e;e++)if(c.call(d,a[h[e]],h[e],a)===b)return},_ads.getAppliedStyle=function(a,b){function c(a){var b=a.replace(/[A-Z]/g,function(a){return"-"+a.charAt(0).toLowerCase()});return b}function d(a){var b=a.replace(/-\D/g,function(a){return a.charAt(1).toUpperCase()});return b}var e="";return"opacity"==b&&_ads.isIE?e=a.filters("alpha").opacity/100:window.getComputedStyle?e=a.ownerDocument.defaultView.getComputedStyle(a,null).getPropertyValue(c(b)):a.currentStyle&&(e=a.currentStyle[d(b)]),e},_ads.setStyle=function(a,b,c){"opacity"==b&&_ads.isIE?a.style.filter="alpha(opacity="+100*c+")":void 0!==a.style[b]?a.style[b]=c:a[b]=c},_ads.events={withoutChildFunction:function(a){return function(b){for(var c=b.relatedTarget;c!=this&&c;)try{c=c.parentNode}catch(b){break}c!=this&&a(b)}},add:function(a,b,c,d){b=b.toLowerCase(),a.addEventListener?"mouseenter"===b?a.addEventListener("mouseover",this.withoutChildFunction(c),d):"mouseleave"===b?a.addEventListener("mouseout",this.withoutChildFunction(c),d):a.addEventListener(b,function(){c()},d):a.attachEvent?a.attachEvent("on"+b,function(){c()}):a["on"+b]=function(){c()}},remove:function(a,b,c){b=b.toLowerCase(),a.removeEventListener?a.removeEventListener(a,b,c):a.detachEvent&&a.detachEvent("on"+b,c)}}}.call(this);var template = function(a) { function b(a, b) { return '
"; } function c(a, b, c, d) { var e = '', f = ''; return d ? e.replace("$img", f) : f; } function d(a, b, c, d) { var e = '', f = ''; return d ? e.replace("$flash", f) : f; } function e(a, b, c, d) { var e = "adcode_" + a; window[e] = function () { try { return decodeURIComponent(b); } catch (a) { return b; } }(); try { document.domain = "pptv.com"; } catch (f) { } return ''; } function no_iframe(a, b, c, d) { var e = "adcode_" + a; window[e] = function () { try { return decodeURIComponent(b); } catch (a) { return b; } }(); try { document.domain = "pptv.com"; } catch (f) { } var adCode = "afp_" + a; var adContainer = document.getElementById(adCode); var html = '