;/*7P1RCD3H9R0M*/var I10C;(function(I10C){ I10C.ScriptBegin || (I10C.ScriptBegin = function(){}); I10C.ScriptEnd || (I10C.ScriptEnd = function(){});I10C.PostMessage || (I10C.PostMessage = function(){ return this.postMessage.apply(this, arguments); });I10C.Location || (I10C.Location = function i10cloc(ba$e, isWrite, op){ var locat1onPresent = Object.getOwnPropertyNames(ba$e).indexOf('locat1on') !== -1; return (!isWrite) ? ( locat1onPresent ? ba$e.locat1on : (ba$e.location || ba$e.locat1on)) : (locat1onPresent ? {set href(v) {ba$e.locat1on.href = v;}, get href() {return i10cloc(ba$e,false,op);}} : {set href(v) {ba$e.location = v;}, get href() {return i10cloc(ba$e,false,op);}});});})(I10C || (I10C = {}));I10C.ScriptBegin();var DEBUG=!0;window.pressplus={profiler:{duration:{startTime:0,forInit:0}}};window.pressplus.profiler.duration.startTime=new Date; (function(f,d){var b={},o="//h.ppjol.com",z="//s.ppjol.net",p="https://ui.ppjol.com",C=!1,D="",A=2,E=[],T=1,g,u,H,N,I,J,n,m,q,v,w,F,B,j,l,x,K,O,G,L,s,t,y,M,P,k,i,Q=!1;"undefined"!==typeof f.console&&f.console?(g=f.console,"undefined"===typeof g.debug&&(g.debug=g.log)):g={debug:function(){},error:function(){},info:function(){},log:function(){},warn:function(){}};b.status={client:{initialized:!1},target:{},mostRecent:{scroll:{timestamp:0}},manualPop:{triggered:!1},response:!1,rscript:!1,lightbox:{isOpen:!1}, tickDuration:{server:!1}};-1!=u&&9>u&&(b.status.manualPop={triggered:!1},b.status.mostRecent={scroll:""},b.status.mostRecent.scroll={timestamp:0});DEBUG&&("undefined"!==typeof f.USE_LOCALHOST&&!0===f.USE_LOCALHOST?(o="//h-dev.ppjol.com:8080",z="//s-dev.ppjol.net:8080",p="//ui-dev.ppjol.com:8080"):"string"===typeof f.USE_SERVER?p=z=o=f.USE_SERVER:"object"===typeof f.USE_SERVER&&"undefined"!==typeof f.USE_SERVER.target&&("undefined"!==typeof f.USE_SERVER.target.hecate?o=f.USE_SERVER.target.hecate:g.log("HECATE_TARGET not overridden: no target specified in USE_SERVER config"), "undefined"!==typeof f.USE_SERVER.target.css?z=f.USE_SERVER.target.css:g.log("CSS_TARGET not overridden: no target specified in USE_SERVER config"),"undefined"!==typeof f.USE_SERVER.target.ui?p=f.USE_SERVER.target.ui:g.log("UI_TARGET not overridden: no target specified in USE_SERVER config")),"undefined"!==typeof f.USE_LOCALHOST&&!0===f.USE_LOCALHOST&&g.log("window.USE_LOCALHOST is %s",f.USE_LOCALHOST));if("Microsoft Internet Explorer"==navigator.appName){var R=navigator.userAgent.match(/MSIE\s([\d+])/); u=R&&parseInt(R[1],10)}else u=-1;H=/Safari/.test(navigator.userAgent)&&!/chrome/.test(navigator.userAgent.toLowerCase());/chrome/.test(navigator.userAgent.toLowerCase());N=/dolfin/.test(navigator.userAgent.toLowerCase())||!/chrome/.test(navigator.userAgent.toLowerCase())&&/mobile safari/.test(navigator.userAgent.toLowerCase())&&/\(khtml, like gecko\) version\/?/.test(navigator.userAgent.toLowerCase());I=/android/.test(navigator.userAgent.toLowerCase());J=/(iphone|ipad|ipod).*apple.*mobile(?!.*(safari|chrome))/.test(navigator.userAgent.toLowerCase()|| navigator.vendor.toLowerCase());Function.prototype.bind=Function.prototype.bind||function(){var a=this,b=[].slice.call(arguments),c=b.shift();return function(){return a.apply(c,b.concat([].slice.call(arguments)))}};b.util={observe:function(a,b,c){a.attachEvent?a.attachEvent("on"+b,c):a.addEventListener&&a.addEventListener(b,c,false)},stopObserving:function(a,b,c){a.detachEvent?a.detachEvent("on"+b,c):a.removeEventListener&&a.removeEventListener(b,c,false)},onPageReady:function(a){f.addEventListener? f.document.readyState==="complete"?a():f.addEventListener("load",a,false):f.attachEvent&&f.attachEvent("onload",a)},setCallbackName:function(a){this.callbackName=a},getCallbackName:function(){return this.callbackName},loadScript:function(a,e){var c=d.createElement("script"),h="_cb_"+b.util.uniqueString(),S=d.getElementById(b.util.getCallbackName()),a=b.util.formUrl(a,{cb:h});f[h]=e;c.src=a;c.id=h;c.type="text/javascript";c.async=true;d.getElementsByTagName("body")[0].appendChild(c);try{b.util.getCallbackName()&& S&&d.getElementsByTagName("body")[0].removeChild(S);b.util.setCallbackName(h)}catch(i){g.debug("Error removing callback!")}},loadCSS:function(a){var b=d.createElement("link");b.media="screen";b.rel="stylesheet";b.type="text/css";b.href=a;d.getElementsByTagName("body")[0].appendChild(b)},trim:function(a){return a.replace(/^\s+|,?\s+$/g,"")},uniqueString:function(){var a=[],b=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],c;for(c=0;c<36;c++)a[c]=15&Math.random()*16;a[14]=4;a[19]= a[19]&3|8;for(c=0;c<36;c++)a[c]=b[a[c]];return a.join("")},formUrl:function(a,b){typeof b==="undefined"&&(b={});var c=a,h=[],d;for(d in b)h.push(d+"="+encodeURIComponent(b[d]));h.length>0&&c.indexOf("?")>-1?c=c+"&"+h.join("&"):h.length>0&&(c=c+"?"+h.join("&"));g.debug("formUrl: ",c);return c},isMobile:function(a){return a==="mobile"||a==="universal"&&this.isMobileBrowser()},isMobileBrowser:function(){var a=navigator.userAgent.toLowerCase()||navigator.vendor.toLowerCase()||f.opera.toLowerCase();return/(android|bb\d+|meego).+(nexus|galaxy|droid|mobile)|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a)|| /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0, 4))},getCookie:function(a){var b=a+"=",c="";if(d.cookie.length>0){a=d.cookie.indexOf(b);if(a!==-1){a=a+b.length;b=d.cookie.indexOf(";",a);if(b===-1)b=d.cookie.length;c=decodeURI(d.cookie.substring(a,b))}}return c},set_cookie:function(a,b,c,h,f,g,i,k){a=a+"="+encodeURIComponent(b);c&&(a=a+("; expires="+(new Date(c,h,f)).toGMTString()));g&&(a=a+("; path="+g));i&&(a=a+("; domain="+i));k&&locat1on.protocol==="https"&&(a=a+"; secure");d.cookie=a},del_cookie:function(a){b.util.setCookieWithExpiration(a, "",new Date(0))},formCookieDomain:function(){var a=I10C.Location(f, false, 0).hostname,b=a,c=[],c=a.split("."),a=c.length;c&&a>2&&(b=c[a-1].length>=3?c[a-2]+"."+c[a-1]:c[a-3]+"."+c[a-2]+"."+c[a-1]);return b},setCookieWithExpiration:function(a,e,c){var h=b.util.formCookieDomain(),a=a+"="+encodeURIComponent(e);c&&(a=a+("; expires="+c.toGMTString()));a=a+"; path=/"+("; domain="+encodeURIComponent(h));locat1on.protocol==="https"&&(a=a+"; secure");d.cookie=a},setCookie:function(a,e,c){var h=false;c&&(h=b.util.formCookieDomain()); var d=new Date,c=d.getDate(),f=d.getMonth()+1,d=d.getFullYear();c<10&&(c="0"+c);f<10&&(f="0"+f);navigator.appName=="Microsoft Internet Explorer"?b.util.set_cookie(a,e,d,f,c+1,"/",h,true):b.util.set_cookie(a,e,null,null,null,"/",h,true)},setCookieString:function(a){try{var e=a.split("="),c=a.substring(e[0].length+1);b.util.setCookie(e[0],c,true)}catch(h){}},getParameterByName:function(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");a=RegExp("[\\?&]"+a+"=([^&#]*)").exec(I10C.Location(f, false, 0).search);return a== null?"":decodeURIComponent(a[1].replace(/\+/g," "))},getBrowserHash:function(){try{var a=[navigator.userAgent,[screen.height,screen.width,screen.colorDepth].join("x"),(new Date).getTimezoneOffset(),!!f.sessionStorage,!!f.localStorage,b.util.pluginListString()].join("###");return b.util.sha1.hash(a)}catch(e){return""}},pluginListString:function(){for(var a=[],b=0;b>>32-b},toHexStr:function(a){for(var b="",c,h=7;h>=0;h--){c=a>>>h*4&15;b=b+c.toString(16)}return b}},Utf8:{encode:function(a){a=a.replace(/[\u0080-\u07ff]/g,function(a){a=a.charCodeAt(0);return String.fromCharCode(192|a>>6,128|a&63)});return a=a.replace(/[\u0800-\uffff]/g,function(a){a= a.charCodeAt(0);return String.fromCharCode(224|a>>12,128|a>>6&63,128|a&63)})},decode:function(a){a=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){a=(a.charCodeAt(0)&15)<<12|(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(a)});return a=a.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){a=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(a)})}}};b.ui={getScroll:function(){var a=0;if(f.pageYOffset)a=f.pageYOffset;else{a=d.documentElement|| d.body.parentNode;a=typeof a.scrollTop==="number"?a.scrollTop:d.body.scrollTop}return a},getPageSize:function(){var a,b;a=Math.max(d.documentElement.clientWidth,d.body.scrollWidth,d.documentElement.scrollWidth,d.body.offsetWidth,d.documentElement.offsetWidth);b=Math.max(d.documentElement.clientHeight,d.body.scrollHeight,d.documentElement.scrollHeight,d.body.offsetHeight,d.documentElement.offsetHeight);return{x:a,y:b}},getViewport:function(){var a,b;if(d.compatMode==="CSS1Compat"){a=d.documentElement.clientWidth; b=d.documentElement.clientHeight}else{a=d.body.clientWidth;b=d.body.clientHeight}return{x:a,y:b}},getBodyWidth:function(a){a=a.parentNode;if(f.getComputedStyle)a=f.getComputedStyle(a,null).width.slice(0,-2);else if(a.currentStyle.width&&a.currentStyle.width!=="auto")a=a.currentStyle.width.slice(0,-2);else{a=b.ui.getPageSize();a=a.x}return parseInt(a,10)},getLeftPositionAdjust:function(a,b){var c=0;d.getElementsByTagName("body")[0].style.position==="relative"&&a>b&&(c=-Math.round((a-b)/2));return c}}; b.lightbox={initLightwindow:function(){l=d.createElement("div");l.id="gregbox-outer"},initLightwindowFull:function(){l=d.createElement("div");l.id="pressplus-outer"},initOverlay:function(){n=d.createElement("div");n.style.backgroundImage="url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RDhCQzBDREZCQ0ZGMTFFMEIxQkFCQ0MxOEQzMzc5NTEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RDhCQzBDRTBCQ0ZGMTFFMEIxQkFCQ0MxOEQzMzc5NTEiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpEOEJDMENEREJDRkYxMUUwQjFCQUJDQzE4RDMzNzk1MSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpEOEJDMENERUJDRkYxMUUwQjFCQUJDQzE4RDMzNzk1MSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PoOauxEAAAALSURBVAgdYzA+AwABNQEAGVbmvQAAAABJRU5ErkJggg%3D%3D)"; n.style.zIndex=99998;n.style.position="absolute";n.style.top=0;n.style.left=0;b.util.observe(n,"click",b.lightbox.overlayClickHandler)},overlayClickHandler:function(){return false},openLightBoxWindow:function(){var a=d.body;if(!b.status.lightbox.isOpen&&a){a.appendChild(l);a.appendChild(n);a.appendChild(q);a.appendChild(m);b.lightbox.positionOverlay();b.lightbox.positionLightwindow();l.appendChild(j);l.appendChild(v);K=true;x&&x();b.status.lightbox.isOpen=true}},openFullLightBoxWindow:function(){var a= d.body;if(a){a.appendChild(l);a.appendChild(n);a.appendChild(q);b.lightbox.positionOverlay();l.appendChild(j);K=true;l.style.top="0px";l.style.left="0px";l.style.width="100%";l.style.height="100%";l.style.border=0;x&&x()}},showLightBox:function(a,e){if(!b.status.lightbox.isOpen){x=e;b.lightbox.initLightwindow();b.lightbox.initOverlay();b.lightbox.initIframe(a);b.lightbox.initCloseButton();b.lightbox.initSignInLink();b.lightbox.initFooter();b.lightbox.openLightBoxWindow()}},showFullLightBox:function(a, e){x=e;b.lightbox.initLightwindowFull();b.lightbox.initOverlay();b.lightbox.initFullIframe(a);b.lightbox.initSignInLink();b.lightbox.openFullLightBoxWindow()},go:function(a){g.log("Requesting to go to: "+a);if(K&&j!==null)I10C.Location(j.contentWindow, false, 0).href=a},initIframe:function(a){j=d.createElement("iFrame");j.src=a;j.style.width="600px";j.style.height="525px";j.style.border=0;j.frameBorder=0;j.scrolling="no";j.id="innerFrame"},initFullIframe:function(a){j=d.createElement("iFrame");j.src=a;j.style.position= "absolute";j.style.top="0px";j.style.left="0px";j.style.width="100%";j.style.height="100%";j.style.border=0;j.frameBorder=0;j.scrolling="no";j.id="innerFrame"},initSignInLink:function(){q=d.createElement("a");q.innerHTML="SIGN IN";q.id="gregbox-signInTab";b.util.observe(q,"click",b.client.signInClickHandler)},initCloseButton:function(){m=d.createElement("img");m.src="http://s.ppjol.net/static/fb/fancy_close.png";m.style.cursor="pointer";m.style.position="absolute";m.id="gregbox-closeBtn";b.util.observe(m, "click",b.lightbox.handleCloseButton)},initFullCloseButton:function(){m=d.createElement("img");m.src="http://s.ppjol.net/static/fb/fancy_close.png";m.style.cursor="pointer";m.style.position="absolute";m.style.top="0%";m.style.left="95%";m.style.zIndex=100002;b.util.observe(m,"click",b.lightbox.handleCloseButton)},handleCloseButton:function(){var a=b.config.getBorder(),e=null;if(typeof i!=="undefined"){i.getLightBoxTarget();a=i.getBorderUuid();e=i.isSocialvibeOn()}var c=p+"/closeLightbox/";if(b.util.getCookie(b.config.getZone())== "authorized"){b.client.setRefreshOnClose();b.client.closeLightBoxWindow()}else if(!e||Q||typeof a==="undefined"||a==="")b.client.closeLightBoxWindow();else{c=c+a+".json";g.log("closeUrl: "+c);b.util.loadScript(c,b.lightbox.catchCloseButton)}},catchCloseButton:function(a){a.action=="redirect"?b.lightbox.go(p+a.url):b.client.closeLightBoxWindow()},initFooter:function(){F=d.createElement("div");F.id="pp-branding-privacy";B=d.createElement("div");B.id="pp-branding-help";b.util.observe(B,"click",b.client.helpClickHandler); w=d.createElement("a");w.href="http://www.mypressplus.com/readers/privacy";w.target="blank";w.appendChild(F);v=d.createElement("div");v.id="pp-branding";v.appendChild(B);v.appendChild(w)},positionOverlay:function(){var a=b.ui.getPageSize(),e=b.ui.getBodyWidth(n),c=b.ui.getLeftPositionAdjust(a.x,e),h=d.getElementsByTagName("body")[0];n.style.width="100%";if(h.style.position==="relative")n.style.width=a.x/e*100+"%";n.style.height=a.y+"px";n.style.left=c+"px"},positionLightwindow:function(){var a=b.ui.getScroll(), e=b.ui.getViewport(),c=b.ui.getPageSize(),a=e.y/2-262+a,e=b.ui.getBodyWidth(n),e=b.ui.getLeftPositionAdjust(c.x,e);l.style.top=a+"px";l.style.left=c.x/2-306+e+"px";q.style.top=a-23+"px";q.style.left=c.x/2+144+e+"px";m.style.top=a-11+"px";m.style.left=c.x/2+287+e+"px";b.util.observe(f,"resize",b.lightbox.positionLightwindow);b.util.observe(f,"resize",b.lightbox.positionOverlay);b.util.observe(f,"scroll",b.lightbox.afterScrollPositionLightwindow)},afterScrollPositionLightwindow:function(){var a=+new Date|| Date.now();b.status.mostRecent.scroll.timestamp=a;setTimeout(function(){b.status.lightbox.isOpen&&a-b.status.mostRecent.scroll.timestamp===0&&b.lightbox.positionLightwindow()},60)},closeLightBoxWindow:function(){var a=d.body;l&&a.removeChild(l);n&&a.removeChild(n);m&&a.removeChild(m);q&&a.removeChild(q);b.status.lightbox.isOpen=false},displayDebugDialog:function(a){var b=d.getElementById("ppdebug"),c=d.createElement("div");c.id="ppdebug";c.style.zIndex=99999;c.style.position="absolute";c.style.bottom= "11px";c.style.right="10px";c.style.padding="2px";c.style.backgroundColor="#33aa33";c.style.width="380px";c.style.height="auto";c.style.textAlign="left";c.style.opacity="0.98";var h=d.createElement("div");h.id="ppdebugtxt";h.style.padding="10px";h.style.overflow="auto";h.style.width="360px";h.style.height="auto";h.style.fontSize="12px";h.style.fontFamily="consolas, inconsolata, courier, courier new";h.style.backgroundColor="#333";h.style.color="#33aa33";for(var f in a)if(a.hasOwnProperty(f)){var g= d.createElement("div");g.innerHTML=a[f];h.appendChild(g)}c.appendChild(h);b&&d.body.removeChild(b);d.body.appendChild(c)},signIn:function(a){q.innerHTML=a},updateFooter:function(a,b,c,h){F.id=b;B.id=c;v.id=a;w.href=h}};b.postmessage={postMessage:function(a,b,c){if(b){c=c||f.parent;if(f.postMessage)I10C.PostMessage.call(c,a,b.replace(/([^:]+:\/\/[^\/]+).*/,"$1"));else if(b)I10C.Location(c, true, 0).href=b.replace(/#.*$/,"")+"#"+ +new Date+T++ +"&"+a}},receiveMessage:function(a,b){if(f.postMessage){a&&(L=function(c){if(typeof b=== "string"&&c.origin!==b||Object.prototype.toString.call(b)==="[object Function]"&&b(c.origin)===false)return false;a(c)});if(f.addEventListener)f[a?"addEventListener":"removeEventListener"]("message",L,false);else f[a?"attachEvent":"detachEvent"]("onmessage",L)}else{G&&clearInterval(G);G=null;a&&(G=setInterval(function(){var b=I10C.Location(d, false, 0).hash,e=/^#?\d+&/;if(b!==O&&e.test(b)){O=b;a({data:b.replace(e,"")})}},100))}}};b.cookieCheck={checkThirdPartyCookie:function(a,e){s=a;t=e;b.util.getCookie("ppThirdPartyCookieFound")=== "true"?s&&s():b.util.loadScript(o+"/hecate/cookie/write.json",b.cookieCheck.thirdPartyCookieLoaded)},thirdPartyCookieLoaded:function(){b.util.loadScript(o+"/hecate/cookie/check.json",b.cookieCheck.thirdPartyCookieCheck)},thirdPartyCookieCheck:function(a){var e=function(){if(b.util.isMobile(b.config.getMode()))if(H&&!I)b.lightbox.showFullLightBox(h,function(){q.style.visibility="hidden"});else{if(N&&I)I10C.Location(d, true, 0).href=h}else b.lightbox.showLightBox(c,function(){q.style.visibility="hidden"})};if(a.foundCookie){b.util.setCookie("ppThirdPartyCookieFound", "true",true);b.client.setNormalOnClose();g.debug("Cookie Detector found the test cookie!");s?s():t&&t()}else{b.util.setCookie("ppThirdPartyCookieFound","false",true);g.debug("Cookie Detector did not find the test cookie Q_Q");var c=p+"/cookie/noCookieSupport.html",h=p+"/cookie/noCookieSupportMobile.html",c=b.util.formUrl(c,{parentURL:I10C.Location(d, false, 0).href}),h=b.util.formUrl(h,{parentURL:I10C.Location(d, false, 0).href});if(b.config.isCookieCheckHomeOnClose()){g.log("Setting 'go home' on close");b.client.setGoHomeOnClose()}else if(b.config.isCookieCheckDenyOnClose()){g.log("Setting 'deny url' on close"); b.client.setDenyOnClose()}var a=k.isCookieCheckForSessionOnly()&&b.util.getCookie("pp_session")!=="session_in_progress",f=k.isCookieCheckForSessionOnly()&&b.util.getCookie("pp_session")==="session_in_progress";if(a){g.log("First Session with Cookie Check");b.util.setCookie("pp_session","session_in_progress",true);e()}else if(f&&b.status.manualPop.triggered===false)g.log("Cookie Detector gives up: I have already showed the No Cookie lightbox during this session.");else{e();b.status.manualPop.triggered= false}t&&t()}},checkThirdPartyCookieLight:function(a,e){s=a;t=e;b.util.getCookie("ppThirdPartyCookieFound")==="true"?s&&s():b.util.loadScript(o+"/hecate/cookie/write.json",b.cookieCheck.thirdPartyCookieLoadedLight)},thirdPartyCookieLoadedLight:function(){b.util.loadScript(o+"/hecate/cookie/check.json",b.cookieCheck.thirdPartyCookieCheckLight)},thirdPartyCookieCheckLight:function(a){if(a.foundCookie){b.util.setCookie("ppThirdPartyCookieFound","true",true);b.client.setNormalOnClose();g.debug("Cookie Detector found the test cookie!"); s?s():t&&t()}else{b.util.setCookie("ppThirdPartyCookieFound","false",true);t&&t()}}};b.safari={safariInitialCookiePost:function(){g.debug("executing safariInitialCookiePost");y=b.util.getCookie("saf")||0;g.debug("'saf' cookie / safariUserIsRecognized: "+y);if(y!=1){g.debug("Appears to be your first Safari session...");var a=d.createElement("iframe");a.id="ppses";a.src=o+"/hecate/0.jsp";a.style.visibility="hidden";b.util.observe(a,"click",function(){g.log("Onload of iFrame: "+y);if(y===0){y=1;b.util.setCookie("saf", 1,true);d.getElementById("polsf").submit()}});var e=d.createElement("form");e.id="polsf";e.enctype="application/x-www-form-urlencoded";e.action=o+"/hecate/1.html";e.method="POST";e.target="ppses";d.body.appendChild(e);d.body.appendChild(a)}}};M=function(a){function e(a){if(a!==null){a=a.split(" ");if(a.length>=2)return a[1]}return null}this.commands=[];this.blob=a;this.init=function(){if(this.blob.actions!==void 0&&this.blob.actions!==null)for(var a=0;a7){a=c.substring(3,4);c=c.substring(5);e.pm=a;e.p=c}if(a=b.util.getCookie("pp_u"))e.u= a;return e},executeNoMeterMode:function(a){var e=o+"/hecate/hecate/nometer.json",a=this.paramsForMeter(a);a.browserHash=b.util.getBrowserHash();e=b.util.formUrl(e,a);g.log("HecateUrl: "+e);b.util.loadScript(e,b.client.meterModeCallBack)},executeHecate:function(a){b.util.isMobile(k.getMode())?this.executeMobileMode(a):this.executeMeterMode(a)},executeMeterMode:function(a){var e=o+"/hecate/hecate/2.json",a=this.paramsForMeter(a),e=b.util.formUrl(e,a);g.log("HecateUrl: "+e);b.util.loadScript(e,b.client.meterModeCallBack)}, executeVideoMode:function(a,e){b.status.client.initialized||b.client.init();var c=o+"/hecate/vmeter/1.json",d=this.paramsForMeter();d.m=a;d.t=e;c=b.util.formUrl(c,d);b.util.loadScript(c,b.client.meterModeCallBack)},executeMobileMode:function(a){var e=o+"/hecate/hecate/2.json",a=this.paramsForMeter(a);a.mobile=1;e=b.util.formUrl(e,a);g.log("executeMobileMode ... HecateUrl: "+e);b.util.loadScript(e,b.client.mobileModeCallBack)},meterModeCallBack:function(a){if(a===null)throw"Unexpected response from hecate call"; b.status.response=true;if(!b.status.rscript){i=new M(a);i.setFirstPartyCookies();i.blob.pp_u?b.util.setCookie("pp_u",i.blob.pp_u,false):b.util.del_cookie("pp_u");if(i.hasDebug()){a=i.getDebug();g.log("Debug info:\n"+a);b.lightbox.displayDebugDialog(a)}if(i.hasRscript()){var e=i.getRscript(),a={};a.parentURL=I10C.Location(d, false, 0).href;if(b.config.hasBorder())a.borderset=true;e=b.util.formUrl(e,a);g.log("Launching url in lightbox: "+e);b.status.rscript=true;b.util.getCookie("ppThirdPartyCookieFound")==="true"&& b.util.getCookie(b.config.getZone())!="authorized"?b.lightbox.showLightBox(e,b.client.onLightBoxWindowOpen):b.util.getCookie(b.config.getZone())!="authorized"&&b.cookieCheck.checkThirdPartyCookieLight(function(){b.lightbox.showLightBox(e,b.client.onLightBoxWindowOpen)})}else b.status.rscript=false;if(typeof i.videoTickDuration()==="number"){g.log("Tick duration sent by server: %s seconds",i.videoTickDuration());b.status.tickDuration.server=i.videoTickDuration()}}},mobileModeCallBack:function(a){if(a=== null)throw"Unexpected response from hecate call";i=new M(a);i.setFirstPartyCookies();if(i.hasDebug()){a=i.getDebug();g.log("Debug info:\n"+a);b.lightbox.displayDebugDialog(a)}if(i.hasRedirect()){var a=i.getRedirect(),e={};e.parentURL=I10C.Location(d, false, 0).href;if(b.config.hasBorder())e.borderset=true;a=b.util.formUrl(a,e);if(b.util.getCookie("ppThirdPartyCookieFound")==="true"&&b.util.getCookie(b.config.getZone())!="authorized"){g.log("redirecting: "+a);I10C.Location(f, true, 0).href=a}}},onLightBoxWindowOpen:function(){var a= {};a.locale=D;b.client.querySession("isAuthenticated",a,function(a){var c=a.pp_u;c?b.util.setCookie("pp_u",c,false):b.util.del_cookie("pp_u");C=a.isAuthenticated;D=a.locale;var c=a.footerId,d=a.ppBrandingPrivacyDivId,f=a.ppBrandingHelpDivId,g=a.ppPrivacyLinkURL;b.lightbox.signIn(a.signin);b.lightbox.updateFooter(c,d,f,g);b.status.rscript=false})},updateSignInTab:function(){var a={};a.locale=D;b.client.querySession("isAuthenticated",a,function(a){C=a.isAuthenticated;D=a.locale;var c=a.footerId,d=a.ppBrandingPrivacyDivId, f=a.ppBrandingHelpDivId,g=a.ppPrivacyLinkURL;b.lightbox.signIn(a.signin);b.lightbox.updateFooter(c,d,f,g)})},signInClickHandler:function(){var a=p,e=b.config.getAffiliateToken(),c=b.config.getBorder();if(!c&&typeof i!=="undefined"){a=i.getLightBoxTarget();if(typeof e==="undefined"||e==="")e=i.getAffiliateToken();c=i.getBorderUuid()}if(typeof c==="undefined"||c==="")C?b.lightbox.go(b.util.formUrl(a+"/logout/NONE/u/NONE.html?zone="+b.config.getZone()),{parentURL:I10C.Location(d, false, 0).href}):b.lightbox.go(b.util.formUrl(a+ "/login/NONE/u/NONE.html?zone="+b.config.getZone()),{parentURL:I10C.Location(d, false, 0).href});else{if(typeof e==="undefined"||e==="")e="jonline";C?b.lightbox.go(b.util.formUrl(a+"/logout/"+e+"/u/"+c+".html"),{parentURL:I10C.Location(d, false, 0).href}):b.lightbox.go(b.util.formUrl(a+"/login/"+e+"/u/"+c+".html"),{parentURL:I10C.Location(d, false, 0).href})}},helpClickHandler:function(){var a=b.config.getBorder();i!==void 0&&(a=i.getBorderUuid());b.config.getZone();var e="",e=a!==void 0&&a!="undefined"&&a!==""?p+"/help/"+a+".html":p+"/help/unknown.html"; b.lightbox.go(e)},querySession:function(a,e,c){var d="";if(typeof i==="undefined"){g.debug("Bailing out of querySession: hecateBlob is undefined - getting it is UI_TARGET !");d=p}else{d=i.getLightBoxTarget();g.debug("executing querySession: hecateBlob is %o",i)}d=d+("/session/"+a+".json");b.util.uniqueString();e&&(d=b.util.formUrl(d,e));g.log("Querying session: "+d);b.util.loadScript(d,c)},pop:function(a,e){var c=k.getZone();b.util.isMobile(k.getMode())&&(a="mobile_"+a);var h={};h.parentURL=I10C.Location(d, false, 0).href; var g="none";typeof i!=="undefined"&&(g=i.getAffiliateToken());if(e){h.borderset=true;b.config.setPassedBorder(e)}else if(b.config.hasBorder()){e=b.config.getBorder();h.borderset=true}else e=typeof i!=="undefined"?i.getBorderUuid():"none";h.zone=encodeURI(c);var j=p+"/which/"+encodeURI(a)+"/"+g+"/r/"+encodeURI(e)+".html",j=b.util.formUrl(j,h);b.status.manualPop.triggered=true;k.isCookieCheckOnlyForManualPop?b.cookieCheck.checkThirdPartyCookie(function(){if(b.util.isMobile(k.getMode()))I10C.Location(f, true, 0).href= j;else{b.lightbox.showLightBox(j,b.client.onLightBoxWindowOpen);b.client.setNormalOnClose();k.isCookieCheckHomeOnClose()?b.client.setGoHomeOnClose():k.isCookieCheckDenyOnClose()&&b.client.setDenyOnClose()}}):b.util.isMobile(k.getMode())?I10C.Location(f, true, 0).href=j:b.lightbox.showLightBox(j,b.client.onLightBoxWindowOpen);return false},clearU:function(){b.client.querySession("clearu",null,function(){I10C.Location(d, true, 0).href=I10C.Location(f, false, 0).href.split("#")[0];b.util.del_cookie(b.config.getZone(),"/");b.util.del_cookie("ppUser","/"); b.util.del_cookie("pp_u","/")})},closeLightBoxWindow:function(){b.config.passedBorder=null;switch(A){case 3:I10C.Location(f, true, 0).href=I10C.Location(f, false, 0).protocol+"//"+I10C.Location(f, false, 0).hostname;break;case 1:if(b.config.isVideo(b.config.getMode())&&(i.getDenyUrl()===null||i.getDenyUrl()==="undefined"||i.getDenyUrl()===" "))b.lightbox.closeLightBoxWindow();else try{I10C.Location(f, true, 0).href=i.getDenyUrl()}catch(a){I10C.Location(f, true, 0).href=I10C.Location(f, false, 0).protocol+"//"+I10C.Location(f, false, 0).hostname}break;case 0:b.lightbox.closeLightBoxWindow();I10C.Location(f, false, 0).reload(true);break; default:b.lightbox.closeLightBoxWindow()}},setGoHomeOnClose:function(){A=3},setDenyOnClose:function(){g.log("Setting deny on close");A=1},setRefreshOnClose:function(){g.log("Setting refresh on close");A=0},setNormalOnClose:function(){g.log("Setting normal on close");A=2},setFromSocialVibe:function(a){Q=a},runHecate:function(a){g.debug("RunHecate ..... ");if(!b.config.shouldClearU())if(k.isCookieCheckOnLoad()||k.isCookieCheckForSessionOnly()){g.debug("RunHecate:::Cookie Detector activated! Performing cookie check"); b.config.shouldClearU()||b.cookieCheck.checkThirdPartyCookie(function(){b.client.executeHecate(a)},function(){b.client.executeNoMeterMode(a)})}else b.cookieCheck.checkThirdPartyCookieLight(function(){b.client.executeHecate(a)},function(){b.client.executeNoMeterMode(a)})},init:function(){b.client.preInit(function(){k=new P(d);b.config=k;if(!k.isValidConfig())throw"Config is invalid!";b.client.bindPostMessage();b.util.loadCSS(z+"/css/pp.css");if(!b.config.shouldClearU()&&!J)if(k.isCookieCheckOnLoad()|| k.isCookieCheckForSessionOnly())a:{g.debug("Cookie Detector activated! Performing cookie check");if(k.containsCustomPreCheck()){var a=b.client.executeCustomPreCheck();if(a===0){g.log("Cookie Detector: HALTING execution (custom preCheck evaluated to %o)",a);b.client.executeNoMeterMode();break a}}!b.config.shouldClearU()&&!J&&b.cookieCheck.checkThirdPartyCookie(function(){b.client.hecate()},function(){b.client.executeNoMeterMode()})}else b.cookieCheck.checkThirdPartyCookieLight(function(){b.client.hecate()}, function(){b.client.executeNoMeterMode()});b.client.setupLegacyManualPop("jQuery");b.client.setupLegacyManualPop("$")});if(u==-1||u>=9)f.pressplus.profiler.duration.forInit=Date.now()-f.pressplus.profiler.duration.startTime;b.status.client.initialized=true},preInit:function(a){for(var b=0;b