admDisplayBannerObj=function(){var e=window.location.href,t="";this.init=function(e){console.log("Inside init");var t,i=document.currentScript||d();(t=document.createElement("div")).style.width=e.width+"px",t.style.height=e.height+"px",t.style.overflow="hidden",t.id="admnettag_"+e.size+"_"+Math.floor(1e7*Math.random()),i.parentNode.insertBefore(t,i),n(t,e)};var n=function(e,n){console.log("Inside getUidandLoadBanners");var o=new XMLHttpRequest;o.onreadystatechange=function(){4==this.readyState&&200==this.status&&(t=this.responseText,i(e,n))},o.withCredentials=!0,o.open("GET","//pixel.s3xified.com/uid",!0),o.send()},i=function(n,i){console.log("Inside loadAds");var d,r,a=new XMLHttpRequest,s={id:i.id,width:i.width,height:i.height,pageUrl:e,pageRef:document.referrer,rtbuid:t};0!=i.alldmns&&(s.alldmns=1),s.demo="",r=o(s),console.log("Inside loadAds Step 1"),a.onreadystatechange=function(){if(console.log("Inside loadAds Step 2"),console.log("readyState ="+this.readyState),console.log("status = "+this.status),4==this.readyState&&200==this.status){if(d=JSON.parse(this.responseText),console.log("json.error = "+d.error),d.error)return;for(var e in d)if(d[e].tag)if("html"==d[e].type)n.insertAdjacentHTML("beforeend",d[e].tag);else if("script_src"==d[e].type){var t=document.createElement("script");t.src=d[e].tag,n.appendChild(t)}else{var o=document.createElement("iframe");o.width=i.width,o.height=i.height,o.frameBorder=0,o.marginHeight=0,o.marginWidth=0,o.scrolling="no",(n=document.getElementById(n.id)).appendChild(o),o.contentWindow.document.open(),"video"==d[e].type&&(o.id=n.id+"_v",o.contentWindow.adnetVid=o.id),o.contentWindow.document.write(""+d[e].tag+""),o.contentWindow.document.close()}}},a.open("GET","//c.headbid.com/banner/adnet2/getads.php?"+r,!0),a.withCredentials=!0,a.send()},o=function(e){var t=[];for(var n in e)t[t.length]=encodeURIComponent(n)+"="+encodeURIComponent(e[n]);return t.join("&")},d=function(){var e;for(var t in e=document.getElementsByTagName("script"))if(e[t].src.indexOf('/banner/adnet2/?id=JT84IjU&size=300x250')>-1)return e[t]};return this}(),admDisplayBannerObj.init({id:"JT84IjU",size:"300x250",width:"300",height:"250",alldmns:"0",subid:"",ref:window.location.href});