function OnlineTracker(translations) {
  this.OnlineItems  = new Array();
  this.translations = translations;

	this.addTracker = function(spanId, userId, username, status, clubMember, teamId, teamName, countryShort, tag) {
    this.OnlineItems[this.OnlineItems.length] = new OnlineItem(spanId, userId, username, status, clubMember, teamId, teamName, countryShort, tag);
  }
	
  this.findUser = function(userId) {
    for (var i=0; i<this.OnlineItems.length; i++) {
      if (this.OnlineItems[i].userId == userId) {
        return this.OnlineItems[i];
      }
    }
    return false;
  }
}
function OnlineItem(spanId, userId, username, status, clubMember, teamId, teamName, countryShort, tag) {
	this.spanId       = spanId;
  this.userId       = userId;
  this.username     = username;
  this.status       = status;
  this.clubMember   = clubMember;
  this.teamId       = teamId;
  this.teamName     = teamName;
	this.countryShort = countryShort;
	this.tag          = tag;
	this.flash        = false;

	this.setStatus = function(newStatus) {
		this.status = newStatus;
	}
}
