var domready=function(A){function b(b){for(l=1;b=u.shift();)b()}var u=[],x,k=document,z=k.documentElement,m=z.doScroll,l=/^loade|c/.test(k.readyState);k.addEventListener&&k.addEventListener("DOMContentLoaded",x=function(){k.removeEventListener("DOMContentLoaded",x,!1);b()},!1);m&&k.attachEvent("onreadystatechange",x=function(){/^c/.test(k.readyState)&&(k.detachEvent("onreadystatechange",x),b())});return A=m?function(b){if(self!=top)l?b():u.push(b);else a:{try{z.doScroll("left")}catch(k){setTimeout(function(){A(b)}, 50);break a}b()}}:function(b){l?b():u.push(b)}}(); (function(){function A(a){var b=[];for(key in a)a.hasOwnProperty(key)&&b.push(key+"="+a[key]);return b.join("&")}function b(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent("on"+b,c)}function u(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent("on"+b,c)}function x(a,b){var c=document.createElement("img"),i={action:a,blog_id:window._zem_rp_blog_id,post_id:window._zem_rp_post_id,request_id:window._zem_rp_request_id,_:+new Date},f=[],g=window._zem_rp_static_base_url+ "stats.gif?";if(b)for(var e in b)b.hasOwnProperty(e)&&(i[e]=b[e]);for(var j in i)i.hasOwnProperty(j)&&f.push(j+"="+i[j]);g+=f.join("&");c.src=g}function k(a,b){var c,i,f=a.getBoundingClientRect();i=window.innerHeight||document.documentElement.clientHeight;c=window.innerWidth||document.documentElement.clientWidth;return b?0<=i-f.top&&i-f.bottom<=i:0<=f.top&&0<=f.left&&f.bottom<=i&&f.right<=c}function z(a,v,c,i){var f={blog_id:window._zem_rp_blog_id,post_id:window._zem_rp_post_id,request_id:window._zem_rp_request_id, action:v};if(c)for(var g in c)c.hasOwnProperty(g)&&(f[g]=c[g]);i&&0l[e].className.indexOf("zem_rp_special")&&t.push(l[e]);var q=t.length,e=i.length,h=!0===window._zem_rp_thumbnails,j=function(){for(var b=[],a=0;a'+c.title+'':"";a.innerHTML+=''+c.title+"";a.setAttribute("data-poid","ex-"+c.aid);var i=a.getElementsByTagName("a"), f=i[i.length-1],g=null,j=null;b(f,"mousedown",d);if(h&&(g=i[0],j=g.getElementsByTagName("img")[0],b(g,"mousedown",d),j.style.visibility="hidden",j.onload=function(){this.style.visibility="visible"},j.onerror=function(){var a=parseInt((c.thumbnail_url.match(/\/(\d+)/)||[]).pop()||"0",10)%F;this.onerror=this.onload;this.src="http://i.zemanta.com/noimg_"+a+"_150_150.jpg";if(this.complete)this.onload()},j.complete))j.onload();"promoted"===c.type?(a.className="zem_rp_promoted",d=document.createElement("span"), h?(d.innerHTML=" ("+m(c)+")",d.className="zem_rp_domain"):(d.innerHTML=" ("+m(c)+")",d.style.fontSize="0.8em"),f.appendChild(d)):"network"===c.type?(a.className="zem_rp_remote",d=document.createElement("span"),h?(d.innerHTML=" ("+m(c)+")",d.className="zem_rp_domain"):(d.innerHTML=" ("+m(c)+")",d.style.fontSize="0.8em"),f.appendChild(d)):"theblaze-oped"===c.type&&(a.className="zem_rp_oped",d=document.createElement("span"),d.innerHTML=" (op-ed)",d.style.fontSize="0.8em",f.appendChild(d));window._zem_rp_admin_ajax_url&& (d=document.createElement("a"),d.href="javascript: void(0);",d.innerHTML="[x]",d.setAttribute("class","remove_x"+(h?"_thumbs":"_text")),d.setAttribute("title","Stop showing articles from this blog."),1.6>parseFloat(window._zem_rp_plugin_version)?b(d,"click",function(){var a=c.sourcefeed,f=function(){window["_zem_rp_blacklist_callback"+a]=null;u(document.body,"keyup",d);j?document.location.reload():g.parentNode.removeChild(g)},d=function(a){a=a||window.event;27===a.keyCode&&f()},e=function(){k.innerHTML= "There was an error while trying to blacklist this blog. Do you want to retry?";h.innerHTML="Retry";l.innerHTML="Cancel";w.style.display="block";y.removeChild(r);window["_zem_rp_blacklist_callback"+a]=null},i=function(){clearTimeout(m);k.innerHTML="The blog was successfully blacklisted.";w.removeChild(h);l.innerHTML="Close";w.style.display="block";y.removeChild(r);j=!0;window["_zem_rp_blacklist_callback"+a]=null},j=!1,g=document.createElement("div");g.setAttribute("style","position: fixed; top: 0px; left: 0px; width: 100%; height: 100%; z-index: 1000000; background: rgba(0,0,0,0.7);"); b(g,"click",function(a){a=a||window.event;(a.target||a.srcElement)===g&&f()});var y=document.createElement("div");y.setAttribute("style","margin: -50px auto 0; border-radius: 6px; padding: 20px; width: 500px; background: white; position: relative; top: 50%; text-align: center;");g.appendChild(y);var k=document.createElement("div");k.innerHTML="Are you sure you want to stop showing posts from this blog?";y.appendChild(k);var w=document.createElement("div");w.setAttribute("style","margin-top: 1em;"); y.appendChild(w);var h=document.createElement("a");h.setAttribute("href","javascript: void(0);");h.setAttribute("style","margin-right: 40px;");h.innerHTML="Yes";w.appendChild(h);var l=document.createElement("a");l.setAttribute("href","javascript: void(0);");l.innerHTML="No";b(l,"click",function(){f()});w.appendChild(l);document.body.appendChild(g);b(document.body,"keyup",d);var r,m;b(h,"click",function(){r=document.createElement("div");r.setAttribute("style","background: url("+window._zem_rp_static_base_url+ "img/loading.gif) no-repeat center center; height: 30px; margin-top: 1em;");y.appendChild(r);w.style.display="none";window["_zem_rp_blacklist_callback"+a]=i;var c=document.createElement("script");c.src=window._zem_rp_admin_ajax_url+"?action=rp_blogger_network_blacklist&sourcefeed="+a+"&random="+ +new Date+"&_wpnonce="+(window._zem_rp_ajax_nonce||"none");document.body.appendChild(c);m=setTimeout(e,2E4)})}):b(d,"click",function(){var a=function(){window["_zem_rp_blacklist_callback"+g]=null;u(document.body, "keyup",f);i?document.location.reload():j.parentNode.removeChild(j)},f=function(c){c=c||window.event;27===c.keyCode&&a()},d=function(){s||(s=!0,k.innerHTML="There was an error while trying to blacklist this article. Do you want to retry?",n.innerHTML="Retry",v.innerHTML="Cancel",r.style.display="block",h.removeChild(q),window["_zem_rp_blacklist_callback"+g]=null)},e=function(){clearTimeout(t);k.innerHTML="The article was successfully blacklisted.";r.removeChild(n);v.innerHTML="Close";r.style.display= "block";h.removeChild(q);i=!0;window["_zem_rp_blacklist_callback"+g]=null},i=!1,g=c.aid,j=document.createElement("div");j.id="zem_rp_blacklist_confirm_wrapper";b(j,"click",function(c){c=c||window.event;(c.target||c.srcElement)===j&&a()});var h=document.createElement("div");h.className="zem_rp_modal";j.appendChild(h);var l=document.createElement("div");l.className="zem_rp_header";l.innerHTML="

Editorial control

";h.appendChild(l);var k=document.createElement("div");k.className="zem_rp_description"; k.innerHTML='

Remove Recommendation:

'+c.title+"

";var m=document.createElement("p");m.className="zem_rp_survey_error";m.innerHTML="Please tell us why:";k.appendChild(m);var p=document.createElement("div");p.className="zem_rp_survey";p.innerHTML=''; k.appendChild(p);l=document.createElement("span");l.className="zem_rp_notice";l.innerHTML='Note: Clicking "Save Changes" will immediately remove the recommendation from this site';k.appendChild(l);h.appendChild(k);var r=document.createElement("div");r.className="zem_rp_save";h.appendChild(r);var n=document.createElement("a");n.setAttribute("href","javascript: void(0);");n.className="zem_rp_button zem_rp_save";n.innerHTML="Save changes";r.appendChild(n);var v=document.createElement("a");v.setAttribute("href", "javascript: void(0);");v.className="zem_rp_button zem_rp_cancel";v.innerHTML="Cancel";b(v,"click",function(){a()});r.appendChild(v);document.body.appendChild(j);b(document.body,"keyup",f);var q,t,s=!1;b(n,"click",function(){var a;a:{a=p.querySelectorAll('input[name="zem_rp_reason"]');for(var b=0;bq&&(i.splice(q,e-q),e=q);for(var n=p=0,s=0;se?b():setTimeout(b,e);break}}}},100))};b(document,"scroll",i); i()}});var h=document.querySelector('meta[property="og:url"]'),E="",E=h&&h.getAttribute("content")?h.getAttribute("content"):document.location.origin?document.location.origin+document.location.pathname:window.location.protocol+"//"+window.location.host+document.location.pathname;"5329384"==window._zem_rp_blog_id&&(!window._zem_rp_post_tags||!window._zem_rp_post_tags.length)?window.zem_rp_recommendations_callback():(h=document.createElement("script"),h.src="http://sre.zemanta.com/content/?blog_id="+ window._zem_rp_blog_id+"&post_id="+window._zem_rp_post_id+"&title="+window._zem_rp_post_title+"&callback=zem_rp_recommendations_callback&request_id="+window._zem_rp_request_id+"&num_rel_posts="+window._zem_rp_num_rel_posts+"&tags="+window._zem_rp_post_tags.slice(0,50)+"&thumbnails="+window._zem_rp_thumbnails+"&post_url="+encodeURIComponent(E),h.type="text/javascript",document.getElementsByTagName("head")[0].appendChild(h))}})();