/*dont edit this js. file no matter what*/
/*unless you are a good coder*/

var adminCount = 0;
var modCount= 0;
var dl = document.links
if ((AdminsNames.length == AdminsReal.length) && (ModsReal.length ==  ModsNames.length)){

Tables = document.getElementsByTagName('table');
 for (xt = 0; xt < Tables.length; xt++ ) {
     if (Tables.item(xt).className == 'whosonline') {
           Tables.item(xt).id = 'whosonline';

          whotd = Tables.item(xt).getElementsByTagName('td').item(1);
           memtd = Tables.item(xt).getElementsByTagName('td').item(0);
           memfnt = memtd.getElementsByTagName('font').item(0);

	for (z = 0; z < dl.length; z++){
        if (dl[z].parentNode == whotd){
         for (x = 0; x < AdminsReal.length; x++){
           if (dl[z].href.match('u'+AdminsReal[x].toLowerCase()+'\.showPublicProfile')){
            if (adminColor){
            dl[z].innerHTML = '<font color=\''+adminColor+'\'>'+AdminsNames[x]+'</font>';
            adminCount++;
	    }else{
            dl[z].innerHTML = AdminsNames[x];
            adminCount++;
            }
	   }
          }
         for (f = 0; f < ModsReal.length; f++){
           if (dl[z].href.match('u'+ModsReal[f].toLowerCase()+'\.showPublicProfile')){
           if (modColor){
            dl[z].innerHTML = '<font color=\''+modColor+'\'>'+ModsNames[f]+'</font>';
            modCount++;
	    }else{
            dl[z].innerHTML = ModsNames[f];
            modCount++;
            }
           }
          }

	 }
	}

var TotalCount= 0;
TotalCount = modCount;
TotalCount = TotalCount+adminCount;
if (adminCount == 1){
adminDisplay=adminCount+ ' '+adminDisplay;
}else{
adminDisplay=adminCount+' '+adminDisplay2;
}

if (modCount == 1){
modDisplay=modCount+' '+modDisplay
}else{
modDisplay=modCount+' '+modDisplay2;
}
    if (adminColor){ 
      adminDisplay= '<font color=\''+adminColor+'\'>'+adminDisplay+'</font>';
      }

    if ((modColor) && (MDS == true)){ 
      modDisplay= ' \- <font color=\''+modColor+'\'>'+modDisplay+'</font>';
      }
    if (MDS == false) {
  modDisplay = "";
 }
 memb2 = memfnt.innerHTML;


deek = /([0-9]+)(\s*)visitor(s|)(\s*)in(\s*)the(\s*)last(\s*)15(\s*)minutes(\:)(\s*)([0-9]+)(\s*)Member(s|)/;


deek2=new Array;
deek2[1]=memtd.innerHTML.match(deek)[1];
deek2[2]=memtd.innerHTML.match(deek)[3];
deek2[3]=memtd.innerHTML.match(deek)[11];
deek2[4]=memtd.innerHTML.match(deek)[13];

         memCount = 0;
     memCount=deek2[3];
     memCount=memCount-TotalCount;
     if (memCount == 1){
    memb2 = memb2.replace(deek,deek2[1]+" visitor"+deek2[2]+" in the last 15 minutes: "+memCount+" Member");
     }else{
    memb2 = memb2.replace(deek,deek2[1]+" visitor"+deek2[2]+" in the last 15 minutes: "+memCount+" Members");
  }


ddig=/([0-9]+)(\s*)Guests(\s*)(\-)/;

if (TotalCount > 0 || onoff == true){
if (mba == true){
       memb2 = memb2.replace(ddig,"");
       memfnt.innerHTML=memb2 + " - " + adminDisplay+ modDisplay;
}else{
      memfnt.innerHTML=memb2 + " - " + adminDisplay + modDisplay;
}
}else{
if (mba == true){
       memb2 = memb2.replace(ddig+" - ","");
       memfnt.innerHTML= memb2;
}else{
       memfnt.innerHTML= memb2;
}
}
}
}
}

/*ending it*/
