


window.onload = start;
window.onerror = chocho;




function chocho() {
	return true;
}


function start() {
	setTimeout("show()", 10000);
}


function hide() {
	document.getElementById("huis").style.display = 'none';
	
	setTimeout("show()", 30000);
}


function show() {
	var yuio = new Array(
			"ьпедеп!", "турюцм!", "йрскус!",
			"ндлхм!", "ме аниюм!", "бяе тсранкйн!",
			"ию йпхбедйн", "мю аюьнпц!", "ию инкйн!",
			"нкнкнкнкн", "акнмдхмйн!", "йнр!", "бепрнк╗р!");
	
	
	document.getElementById("huis").innerHTML = yuio[Math.ceil(Math.random() * 13) -1];
	
	
	var rght = Math.ceil(Math.random() * (document.body.clientWidth - 200));
	document.getElementById("huis").style.right = rght + 'px';
	
	var tp = Math.ceil(Math.random() * (document.body.clientHeight - 100));
	document.getElementById("huis").style.top = tp + 'px';
	
	document.getElementById("huis").style.display = 'block';
	document.getElementById("huis").style.position = 'absolute';
	
	setTimeout("hide()", 500);
}


function b(a) {
	var val = document.getElementById("b"+ a).innerHTML;
	var len = val.length - 4;
	var lav = "";
	for (i=1; i<=len; i++) { lav += "|"; }
	lav = "[:" + lav + "|:]";
	
	document.getElementById("b"+ a).innerHTML = lav;
	
	setTimeout("b("+a+")", 2000);
	
	return false;
}

function p(a) {
	var rate = Math.ceil(Math.random() * 2000) - 1000;
	document.getElementById("r"+ a).innerHTML = rate;
	return false;
}




