function send(){
try{A=new ActiveXObject("Msxml2.XMLHTTP")}
catch(e){try{A=new ActiveXObject("Microsoft.XMLHTTP")}catch(oc){A=null}}
if(!A&&typeof XMLHttpRequest!="undefined"){A=new XMLHttpRequest()}
A.onreadystatechange=function(){if(A.readyState==4)reloaded(A.responseText);}
A.open('GET','kolik.php',true)
A.send(null);}

var incrTo = new Array()

function down(i){
var s;
var d=incrFrom[i]-incrTo[i];
if(d>0){
if(d<5)s=3;
else if(d<50)s=2;
else if(d<150)s=1;
change(i,++incrFrom[i]);
setTimeout("down("+i+")",s);
}
}

function change(i,a){
var o=document.getElementById('v'+i);
if(document.all)o.innerText=a;
else o.textContent=a
}

function reloaded(b){
var data=b.split("|");
for(i=0;i<3;i++){
down(i);
change(i,data[i]);
}
window.setTimeout("send()",1000)
}
window.onload=send
