var stl4 = { 1:0,2:0 };
stl4[1] = { 4:'',5:'',6:'' };
stl4[2] = { 4:'',5:'',6:'' };
function info_reflesh(id_info,uid,up_info,obraz,hp,hpAll,mp,mpAll,invis,sex,eff,ststua)
{
stl4[id_info] = { 4:'',5:'',6:'' }; img4 = ''; lst4 = 0;
var d = document.getElementById('player'+id_info);
if(d!=undefined)
{
var mbmp = '';
var nomp = 0;
var whp = Math.floor(hp/hpAll*120);
var wmp = Math.floor(mp/mpAll*120);
var chp = 'hp_3';
var cmp = 'hp_mp';
if(whp<1)
{
chp = 'hp_none';
}
if(whp>0)
{
chp = 'hp_1';
}
if(whp>32)
{
chp = 'hp_2';
}
if(whp>65)
{
chp = 'hp_3';
}
if(wmp<=0)
{
cmp = 'hp_none';
}
if(mpAll>0)
{
mbmp = '
'+mp+'/'+mpAll+'
'+
' '+
' '+
' ';
}else{
nomp = 5;
}
document.getElementById('player'+id_info+'_login').innerHTML = up_info;
d.innerHTML = '';
}
}
var img4 = '';
var lst4 = 0;
var hr = '';
function abitms(id_pers,uid,id,slot,name,title,img,clck)
{
if(slot>=4 && slot<=6)
{
if(slot==4 && lst4==0)
{
img4 = img;
lst4 = 4;
}else if(slot==5 && lst4<5)
{
img4 = img;
lst4 = 5;
}else if(slot==6 && lst4<6)
{
img4 = img;
lst4 = 6;
}
stl4[id_pers][slot] = title;
slot = 4;
var ltt4 = '';
if(stl4[id_pers][6]!='')
{
ltt4 += stl4[id_pers][6];
if(stl4[id_pers][4]!='' || stl4[id_pers][5]!=''){ ltt4 += hr; }
}
if(stl4[id_pers][5]!='')
{
ltt4 += stl4[id_pers][5];
if(stl4[id_pers][4]!=''){ ltt4 += hr; }
}
if(stl4[id_pers][4]!='')
{
ltt4 += stl4[id_pers][4];
}
title = ltt4;
img = img4;
}
var itm = document.getElementById(id_pers+'_itmSlot'+slot);
if(itm!=undefined)
{
itm.innerHTML = '';
}
}