if ( typeof( tpAdtagBase ) == 'undefined' ) {
function tpAdtagBase() {
function fp(o){var x=0;var y=0;if(o&&o.offsetParent){x=o.offsetLeft;y=o.offsetTop;while((o=o.offsetParent)){x+=o.offsetLeft;y+=o.offsetTop;}}return[x,y];}
function gcw(){return fr(window.innerWidth?window.innerWidth:0,document.documentElement?document.documentElement.clientWidth:0,document.body?document.body.clientWidth:0);}
function gch(){return fr(window.innerHeight?window.innerHeight:0,document.documentElement?document.documentElement.clientHeight:0,document.body?document.body.clientHeight:0);}
function gsl(){return fr(window.pageXOffset?window.pageXOffset:0,document.documentElement?document.documentElement.scrollLeft:0,document.body?document.body.scrollLeft:0);}
function gst(){return fr(window.pageYOffset?window.pageYOffset:0,document.documentElement?document.documentElement.scrollTop:0,document.body?document.body.scrollTop:0);}
function fr(n_win,n_docel,n_body){var n_result=n_win?n_win:0;if(n_docel&&(!n_result||(n_result>n_docel)))n_result=n_docel;return n_body&&(!n_result||(n_result>n_body))?n_body:n_result;}
function is_visible(){
var vc = fp( document.getElementById( this.eAd ) );
var vc2 = fp( document.getElementById( this.eCheck ) );
return (vc2[0]-vc[0]==1) &&
(vc2[1]-vc[1]==1) &&
(vc[1]+this.height*this.actvis<=gst()+gch()) &&
(vc[1]+this.height*(1-this.actvis)>gst()) &&
(vc[0]+this.width*this.actvis<=gsl()+gcw()) &&
(vc[0]+this.width*(1-this.actvis)>gsl());
}
this.render = function() {
this.u += '&adtagId=' + tpAdtagBase.prototype.adtagId;
if (
( this.container == "" ) ||
( ! document.getElementById( this.container ) )
) {
document.write('');
} else {
var s = document.createElement('script');
s.src = this.u;
document.getElementById( this.container ).appendChild( s );
}
this.rendered = true;
tpAdtagBase.prototype.adtagId++;
}
this.renderOnVisibility = function() {
if ( is_visible.call( this ) ) {
window.clearInterval( this.renderOnVisibilityInterval );
this.render();
}
}
this.protocol = '';
this.zone = '';
this.subid = '';
this.clicktracker = '';
this.container = '';
this.namespace = '';
this.width = 0;
this.height = 0;
this.actvis = -1;
this.extData = new Array();
this.extVar = new Array();
this.host = '';
this.rendered = false;
this.init = function() {
this.u = this.protocol+'://'+((this.host=='')?'hal9000.redintelligence.net':this.host)+'/request.php?';
this.u += 'zone='+this.zone;
this.u += '&renderingType=javascript';
this.u += '&namespace='+encodeURIComponent(this.namespace);
this.u += '&subid='+encodeURIComponent(this.subid);
this.u += '&uid='+tpAdtagBase.prototype.uuid;
this.u += '&screenSize='+screen.width+'x'+ screen.height;
this.u += '&screenSizeAvail='+screen.availWidth+'x'+screen.availHeight;
this.u += '&clientSize='+gcw()+'x'+ gch();
this.u += '&scrollPos='+gsl()+'x'+ gst();
for (var i=0;i< this.extData.length;i++) this.u += '&extData[]='+encodeURIComponent(this.extData[i]);
for (var i=0;i< this.extVar.length;i++) this.u += '&extVar[]='+encodeURIComponent(this.extVar[i]);
this.u += '&redirectClick='+encodeURIComponent(this.clicktracker);
this.u += '&documentReferer='+encodeURIComponent((document.referrer!="")?document.referrer:window.location.href);
this.u += '&random=' + Math.floor(Math.random()*10e12);
if ( window.top !== window.self ) this.u += '&isIframe=1';
this.eAd = 'e' + Math.floor(Math.random()*10e12);
this.eCheck = 'e' + Math.floor(Math.random()*10e12);
if (
( this.container == "" ) ||
( ! document.getElementById( this.container ) )
) {
document.write('
');
document.write('
');
document.write('
');
document.write('
');
if ( this.actvis >= 0 ) {
this.container = 'e' + Math.floor(Math.random()*10e12);
document.write('');
}
} else {
var b = document.createElement('div');
with (b.style) {width='2px';height='2px';border='0px';margin='0px';padding='0px';textAlign='left';verticalAlign='top';position='absolute';visibility='hidden';}
var c = document.createElement('div');
c.id = this.eCheck;
with (c.style) {width='1px';height='1px';border='0px';margin='0px';marginLeft='1px';marginTop='1px';padding='0px';position='absolute';visibility='hidden';}
b.appendChild( c );
var p = document.createElement('div');
p.id = this.eAd;
with (p.style) {width='1px';height='1px';border='0px';margin='0px';padding='0px';position='absolute';visibility='hidden';}
b.appendChild( p );
document.getElementById( this.container ).appendChild( b );
}
this.co = fp( document.getElementById( this.eAd ) );
this.co2 = fp( document.getElementById( this.eCheck ) );
this.u += '&container=' + encodeURIComponent( this.container );
this.u += '&adPos=' + this.co[0] + 'x'+ this.co[1];
this.u += '&adPosCheck=' + this.co2[0] + 'x'+ this.co2[1];
if ( this.actvis >= 0 ) {
var self = this;
this.renderOnVisibilityInterval = window.setInterval(
function() {
self.renderOnVisibility();
},
100
);
} else {
this.render();
}
}
}
tpAdtagBase.prototype.adtagId = 0;
tpAdtagBase.prototype.uuid = '';
for (var tpTmpI=0;tpTmpI<16;tpTmpI++)tpAdtagBase.prototype.uuid=tpAdtagBase.prototype.uuid+Math.floor(Math.random()*16).toString(16);
}
var tpAdtag832a7835a5 = new tpAdtagBase();
tpAdtag832a7835a5.protocol = "http";
tpAdtag832a7835a5.zone = "vonv0ry6vmmf";
tpAdtag832a7835a5.subid = "";
tpAdtag832a7835a5.clicktracker = "http://ams1.ib.adnxs.com/click?TfBN02cHjD86dHrejQWFPzMzMzMzM8M_OnR63o0FhT9O8E3TZweMP6VXZz0ZTw5vuPGAqdf_GD2LXmVSAAAAALx_HABNBQAASQEAAAIAAAA-Mo8AGH4EAAAAAQBVU0QAVVNEANgCWgBP-QAAb2QAAQUCAQIAAIgAhSIV9AAAAAA./cnd=%21TwZeOgjNo4YBEL7kvAQYmPwRIAA./referrer=http%3A%2F%2Fpustoj-zhurnal.livejournal.com%2F41207.html/clickenc=http%3A%2F%2Fams1.ib.adnxs.com%2Fclick%3FGy_dJAaBlT-Y3ZOHhVqTPwAAAAAAAPA_mN2Th4Vakz8bL90kBoGVP9ct6MejoCRcuPGAqdf_GD2LXmVSAAAAABu_FwAABQAADwQAAAIAAABpIogAPRIEAAAAAQBVU0QAVVNEANgCWgBgPQAAbGcAAgUCAQIAAIgAkSHzzAAAAAA.%2Fcnd%3D%2521BwZENwjAwnIQ6cSgBBi9pBAgAA..%2Freferrer%3Dhttp%253A%252F%252Fpustoj-zhurnal.livejournal.com%252F41207.html%2Fclickenc%3D%26referrer%3Dhttp%3A%2F%2Fpustoj-zhurnal.livejournal.com%2F41207.html";
tpAdtag832a7835a5.container = "";
tpAdtag832a7835a5.namespace = "832a7835a5";
tpAdtag832a7835a5.width = 728;
tpAdtag832a7835a5.height = 90;
tpAdtag832a7835a5.actvis = -10.30;
tpAdtag832a7835a5.extData.push("");
tpAdtag832a7835a5.init();