(function(d,c){var a="b39adee4c44e16e7d60d5380d462704b";c.reviveAsync=c.reviveAsync||{};try{if(!c.reviveAsync.hasOwnProperty(a)){var f=c.reviveAsync[a]={id:Object.keys(c.reviveAsync).length,name:"revive",start:function(){var e=function(){try{if(!f.done){d.removeEventListener("DOMContentLoaded",e,false);c.removeEventListener("load",e,false);f.done=true;f.apply(f.detect())}}catch(g){console.log(g)}};if(d.readyState==="complete"){setTimeout(e)}else{d.addEventListener("DOMContentLoaded",e,false);c.addEventListener("load",e,false)}},ajax:function(e,g){var h=new XMLHttpRequest();h.onreadystatechange=function(){if(this.readyState==4){if(this.status==200){f.spc(JSON.parse(this.responseText))}}};h.open("GET",e+"?"+f.encode(g).join("&"),true);h.withCredentials=true;h.send()},encode:function(m,n){var e=[],h,i;for(h in m){if(m.hasOwnProperty(h)){var l=n?n+"["+h+"]":h;if((/string|number|boolean/).test(typeof m[h])){e.push(encodeURIComponent(l)+"="+encodeURIComponent(m[h]))}else{var g=f.encode(m[h],l);for(i in g){e.push(g[i])}}}}return e},apply:function(g){if(g.zones.length){var e=d.location.protocol=="http:"?"http://hemi.selyavi.com/rev4/payload/entrypoint.phtml":"https://hemi.selyavi.com/rev4/payload/entrypoint.phtml";g.zones=g.zones.join("|");g.loc=d.location.href;if(d.referrer){g.referer=d.referrer}f.ajax(e,g)}},detect:function(){var o=d.querySelectorAll("ins[data-"+f.name+"-id='"+a+"']");var n={zones:[],prefix:f.name+"-"+f.id+"-"};for(var g=0;g0?h.width:0;e.height=h.height>0?h.height:0;g.border=0;g.overflow="hidden";return e},loadFrame:function(g,e){var h=g.contentDocument||g.contentWindow.document;h.open();h.writeln("");h.writeln("");h.writeln('');h.writeln('');h.writeln(e);h.writeln("");h.writeln("");h.close()},spc:function(k){for(var e in k){if(k.hasOwnProperty(e)){var o=k[e];var n=d.getElementById(e);if(n){var m=d.createElement("INS");if(o.iframeFriendly){var l=f.createFrame(o);m.appendChild(l);n.parentNode.replaceChild(m,n);f.loadFrame(l,o.html)}else{m.style.textDecoration="none";m.innerHTML=o.html;var g=m.getElementsByTagName("SCRIPT");for(var l=0;l