var ad_html = '';
var begun_show_limit = 5;
var begun_hide_timeout = 60000; // 60 sec

if (!begunBanners) { var begunBanners = new Array(); }

if (begunBanners && (begunBanners.length > 0)) {
	for (var i = 0; i < Math.min(begunBanners.length, 3); i++) {
		var cur = begunBanners[i];
		var name = cur[0];
		var desc = cur[1];
		var link = cur[2];
		var site = cur[4];
		if (desc.length >= 100) desc = desc.substr(0, 99) + '...';

		begun_link = link;

		var padding = '0px';
		if (i > 0) padding = '8px';

		ad_html += '<div style="padding-top:' + padding + ' !important;line-height:125% !important;text-align:left !important;">';
		ad_html += '<div><a href="'+ link +'" style="color:blue !important;font:bold normal 11px sans-serif !important;text-decoration:underline;">' + name + '</a></div>';
		ad_html += '<div style="padding: 3px 0 2px 0;"><a href="'+ link +'" style="color:gray !important;font:normal normal 11px sans-serif !important;text-decoration:none !important;">' + desc + '</a></div>';
		ad_html += '<a href="'+ link +'" style="color: red !important;font:normal normal 11px sans-serif !important;text-decoration:none !important;">' + site + '</a>';
		ad_html += '</div>';
	}
}

var begun_cnt = read_cookie('begun_cnt');
var begun_closed = read_cookie('begun_closed');

if (!begun_cnt) begun_cnt = 0;
if (!begun_closed) begun_closed = 0;

if ((begun_cnt < begun_show_limit) && !begun_closed && (ad_html != '')) {
	begun_cnt++;
	create_cookie('begun_cnt', escape(begun_cnt), 1);
	aBIk6j();
}

function diBIk6j(el, d) { document.getElementById(el).style.display = d; }
function fcBIk6j() { create_cookie('begun_closed', '1', 1); diBIk6j("aaBIk6j", "none"); }
function fhBIk6j() { diBIk6j("abBIk6j", "none"); diBIk6j("bh", "none"); diBIk6j("bc", "inline"); diBIk6j("bs","inline"); }
function fsBIk6j() { diBIk6j("abBIk6j", "block"); diBIk6j("bc", "none"); diBIk6j("bs", "none"); diBIk6j("bh","inline"); }
function aBIk6j() {
	var w = window.top ? window.top : window;
	if (!w.shBIk6j) {
		w.shBIk6j = 1;
		var wiBIk6j = ((navigator.userAgent.indexOf('MSIE')!=-1)&&((!document.compatMode)||(document.compatMode=='BackCompat')||(document.compatMode=='QuirksMode')))?224:222;
		var bBIk6j='<div id="aaBIk6j" style="display:block;position:absolute !important;top:0 !important;right:0 !important;width:'+wiBIk6j+'px !important;border:1px solid #CCC;background:#FFF;font-size:12;line-height:1;z-index:9999 !important;">'+
'<div style="display:block;height:7px;margin:1px;padding:2px;background:#009CCF url(http://www.jino-net.ru/adv/g.gif) bottom repeat-x;font:0px/0% serif;text-align:right;">'+
'<img id="bh" style="cursor:pointer;cursor:hand;" onclick="fhBIk6j();return false;" src="https://web.archive.org/web/20061205184521/http://www.jino-net.ru/adv/h.gif" width="7" height="7" border="0" alt="" />'+
'<img id="bs" style="display:none;cursor:pointer;cursor:hand;" onclick="fsBIk6j();return false;" src="https://web.archive.org/web/20061205184521/http://www.jino-net.ru/adv/s.gif" width="7" height="7" border="0" alt="" />'+
'<img id="bc" style="display:none;margin-left:2px;cursor:pointer;cursor:hand;" onclick="fcBIk6j();return false;" src="https://web.archive.org/web/20061205184521/http://www.jino-net.ru/adv/c.gif" width="7" height="7" border="0" alt="" />'+
'</div><div id="abBIk6j" style="display:block; padding:3px;border-top:1px solid #CCC;background:#FFFFE1">' + ad_html + '</div></div>';

		document.write(bBIk6j);
		if (begun_hide_timeout > 0) window.setTimeout('fhBIk6j()', begun_hide_timeout);
	}
}

/*
     FILE ARCHIVED ON 18:45:21 Dec 05, 2006 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 03:30:39 Jun 02, 2018.
     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
     SECTION 108(a)(3)).
*/
/*
playback timings (ms):
  LoadShardBlock: 393.068 (3)
  esindex: 0.008
  captures_list: 442.677
  CDXLines.iter: 17.8 (3)
  PetaboxLoader3.datanode: 917.881 (4)
  exclusion.robots: 0.19
  exclusion.robots.policy: 0.174
  RedisCDXSource: 25.789
  PetaboxLoader3.resolve: 180.143
  load_resource: 718.186
*/