//Testimonials

var testimonials = function(){
	var id = 0;
	var quotes = new Array();
	
	this.add = function(quote, name){
		quotes.push(new Object({quote:quote,name:name}));
	}
	
	this.html = function(){
		var html = '';
		if(quotes.length > 0){
      html += '<br/><div id="quote">';
      html += '<div id="quote_sleeve">';
      html += '<blockquote>';
      html += '<p>' + quotes[id].quote + '</p>';
      html += '<p><span>' + quotes[id].name + '</span></p>';
      html += '</blockquote>';
      html += '</div>';
      html += '</div>';
			
			id++;
			if(id == quotes.length){
				id = 0;
			}
		}
		
		return html;
	}
}





//Imagery

var newMember = function(){
	var id = 0;
	var members = new Array();

	this.add = function(name, logo){
		members.push(new Object({name:name,logo:logo}));
	}

	this.html = function(){
		var html = '';
		if(members.length > 0){
			html += '<div id="imagery">'; 
			html += '<div class="member"><img width="348px" height="250px" src="' + members[id].logo + '" alt="' + members[id].name + '"/></div>';
			html += '</div>';
			
			id++;
			if(id == members.length){
				id = 0;
			}
		}
		
		return html;
	}
}