function Testimonial(aFullName, aTitle, aCompanyName, aComment, aHasImage)
{
  this.fullName    = aFullName;
  this.title       = aTitle;
  this.companyName = aCompanyName;
  this.comment     = aComment;
  this.hasImage    = aHasImage ? aHasImage : false;
  this.imageName   = this._removeSpaces(this.fullName);
}

Testimonial.prototype.getFullName = function ()
{
  return this.fullName;
}

Testimonial.prototype.haveImage = function ()
{
  return this.hasImage;
}

Testimonial.prototype.getImageName = function ()
{
  return this.imageName + ".jpg";
}

Testimonial.prototype.getTitle = function ()
{
  return this.title;
}

Testimonial.prototype.getCompanyName = function ()
{
  return this.companyName;
}

Testimonial.prototype.getComment = function ()
{
  return this.comment;
}

Testimonial.prototype._removeSpaces = function (aString)
{
  var spaceless = "";
  aString = "" + aString;
  var splitstring = aString.split(" ");
  for(i = 0; i < splitstring.length; i++)
  {
    spaceless += splitstring[i];
  }
  return spaceless;
}


function MemberTestimonials()
{
  this.storageArray = new Array();
}

MemberTestimonials.prototype.add = function (aTestimonial)
{
  this.storageArray.push(aTestimonial);
}

MemberTestimonials.prototype.getRandom = function ()
{
  var max = this.storageArray.length;
  var r = Math.floor(Math.random() * max);
  return this.storageArray[r];
}
