document.write('');
document.write('');
var online={
el:document.getElementById('online_bajery'),
img:document.getElementById('online_bajery_img'),
url:'http://z.bajery.net/_on.php?id=10994',
start:function(){
this.img.onload=function(){online.online();}
this.img.onerror=function(){online.offline();}
this.check();
},
offline:function(){
this.el.innerHTML = 'offline';
},
online:function(){
this.el.innerHTML = 'online';
},
date:function(){
var today = new Date();
return today.setUTCMilliseconds(500);
},
check:function(){
this.img.src=this.url+'&guest_id='+_zapytaj['guest']['id']+'&profile_id='+_zapytaj['profile']['id']+'&key='+_zapytaj['key']+'&k=' + this.date();
setInterval('online.check()', 30000);
}
};
online.start();