/**
 * @author jcimafranca
 */

	function quotesObject (left, middle, right) {
		this.contents = new Array();
		this.names = new Array();
		this.shine = new Array();
		this.solutions = new Array();
		this.cubed = new Array();
		this.left = left;
		this.middle = middle;
		this.right = right;
		this.addQuote = function(quote_cat, quote_content, quote_name)
		{
			//window.alert("Hello World!");
			switch (quote_cat)
			{
				case "solutions": this.solutions.push(this.contents.length); break;
				case "shine": this.shine.push(this.contents.length); break;
				case "cubed": this.cubed.push(this.contents.length); break;
				case "all": 
				default: this.solutions.push(this.contents.length); this.shine.push(this.contents.length); this.cubed.push(this.contents.length); break;
			}
			this.contents.push(quote_content);
			this.names.push(quote_name);
			//window.alert("Hello World!");
		};
		this.printQuote = function(quote_cat)
		{
			var randomnumber;
			var quoteEntry;
			switch (quote_cat)
			{
				case "solutions": 
					if (this.solutions.length == 0) return;
					randomnumber = Math.floor(Math.random() * this.solutions.length); 
					quoteEntry = this.solutions[randomnumber];
					break;
				case "shine": 
					if (this.shine.length == 0) return;
					randomnumber = Math.floor(Math.random() * this.shine.length); 
					quoteEntry = this.shine[randomnumber];
					break;
				case "cubed": 
					if (this.cubed.length == 0) return;
					randomnumber = Math.floor(Math.random() * this.cubed.length); 
					quoteEntry = this.cubed[randomnumber];
					break;
				case "all": 
				default:
					if (this.contents.length == 0) return;
					quoteEntry = Math.floor(Math.random() * this.contents.length); 
					break;
			}
			document.write(this.left + this.contents[quoteEntry] + this.middle + this.names[quoteEntry] + this.right);
		};
	}
	
	quotes = new quotesObject('<div class="quote_content">', '</div><div class="quote_name">', '</div>');
	  
	quotes.addQuote("solutions", '"What impresses me about MATADOR is their commitment to fix problems and overcome challenges quickly. Their transparency, integrity and no-nonsense approach give me the confidence to entrust projects to them."', '<br /><b>Sebastian Chapman</b><br />Managing Director & MATADOR Fan<br />Chapman Consulting');
	
	quotes.addQuote("solutions", '"The quality, knowledge and initiative shown by MATADOR’s on-site engineers are always high and of a level required by our business. The benefit to me as a customer is that handovers are seamless, as familiarisation with their staff takes place as a matter of course."', '<br /><b>Chris Jackson</b><br />Regional Services Manager &<br />MATADOR Fan<br />3i' );
		
	quotes.addQuote("solutions", '"Engaging MATADOR as our systems consultant has maximised our IT infrastructure and enabled our business to reach its full potential."', '<br /><b>Kris Sidd</b><br />Managing Director & MATADOR Fan<br />Pasona');
		
	quotes.addQuote("solutions", '"No more unanswered calls and long waits for technical support – just great response times from the MATADOR 24x7 Service Desk Team. If I had to pick one word to describe MATADOR, it would be: RELIABLE."', '<br /><b>Lip Ooi</b><br />ESPN Presenter (Golf Focus, StarSports Channel) & MATADOR Fan<br />Lip Golf');
	
	quotes.addQuote("solutions", '"Recognising that every business is unique, MATADOR created a web-based career application specific to our business needs. The entire development phase was systematic and the final result surpassed our expectations in both quality and value."', '<br /><b>Aaron Chong</b><br />Director & MATADOR Fan<br />Lis Connection');
	
	quotes.addQuote("solutions", '"MATADOR is the choice partner for IT services that help maximise the value of technology investments. Their high level of customer service and professionalism justifies every dollar spent."', '<br /><b>Jonathan Seifman</b><br />Managing Director (Asia South) & MATADOR Fan<br />CCH – Wolters Kluwer');
	
	quotes.addQuote("cubed", '"MATADOR offers professional web solutions – from web hosting to web design and development – all with a personal touch. We are extremely pleased with the level of service, promptness of delivery and attention to quality provided to us by MATADOR."', '<br /><b>Mick JS Maniam</b><br />Brand Manager & MATADOR Fan<br />Lee Cooper');
	
	quotes.addQuote("cubed", '"I contacted MATADOR to help design an advertisement for a popular Australian sporting magazine. The entire process took about 10 working days which exceeded my expectations, along with the advertisement which looked fantastic. I have no hesitation in recommending MATADOR to friends or colleagues looking for a creative edge in multi-media design."', '<br /><b>Nicole Gallagher</b><br />Business Owner & MATADOR Fan<br />Beats Per Minute (BPM)');
	
	quotes.addQuote("cubed", '"We are very happy with how the team at MATADOR met the tight project deadline without compromising on the quality of service. Well done MATADOR!"', '<br /><b>Belinda Clarke</b><br />Associate Director – Investor Relations and Portfolio & MATADOR Fan<br />Frasers Commercial Trust');
	
	quotes.addQuote("cubed", '"Thanks to MATADOR, our website has proven to be a very useful marketing tool and our brand awareness has increased significantly. I would most definitely recommend MATADOR because they have the expertise, commitment and synergy."', '<br /><b>Lim Kay Kheng</b><br />Marketing Manager & MATADOR Fan<br />Chee Seng Oil Factory');
	
	quotes.addQuote("cubed", '"I can’t say enough about the dynamic working relationship I have with the team at MATADOR. They have done three websites for Converse Singapore and never once was I disappointed. I highly recommend MATADOR to any company who want to get on with their core business knowing that their Internet presence is in safe hands."', '<br /><b>Francis Kew</b><br />Business Development Manager & MATADOR Fan<br />Converse');
	
	quotes.addQuote("cubed", '"MATADOR has designed a website that reflects the ethos of Go-Property and generates good business opportunities for us. We have truly benefited from their highly professional services, impressive response times, valuable advice and support."', '<br /><b>Mike Boylan</b><br />President & MATADOR Fan<br />The Go-Property Group');
	
	quotes.addQuote("cubed", '"I would like to express my appreciation for the first-rate service that MATADOR has provided. It is reassuring that I can call the account manager at any time and she is more than willing to assist us, whether it is over the phone or via email."', '<br /><b>Jessy Wong</b><br />General Manager & MATADOR Fan<br />Star Golf Academy');
	
	quotes.addQuote("cubed", '"We’re thrilled with the design and effective Content Management System. Administration has been hugely simplified and feedback on the website has been very positive."', '<br /><b>Lee Taylor</b><br />Managing Director & MATADOR Fan<br />BBAXN');
	
	quotes.addQuote("cubed", '"With the help of MATADOR, ESPZEN.com is now the most successful and most visited amateur sporting website in Asia! The strong online presence has enabled ESPZEN to revolutionise amateur football in Singapore and spread the contagious fervour across borders."', '<br /><b>Lee Taylor</b><br />Managing Director & MATADOR Fan<br />ESPZEN');
	
	quotes.addQuote("shine", '"With MATADOR’s effective recruitment services, we can be sure that our recruitment needs are promptly met. From the careful selection of suitable candidates, we are able to spot talent quickly and make swift hiring decisions, saving time and effort."', '<br /><b>David Tay</b><br />Field Operations Manager &<br />MATADOR Fan<br />Orange Business Services');
	
	quotes.addQuote("shine", '"Three words describe MATADOR: Proactive, Precise and Personable. They took the initiative to understand our requirements and offer helpful recommendations. They were spot-on in identifying the right candidate for the job. The team is always available, approachable and sincere. In fact, just the qualities needed to be in the recruitment business. MHD will continue to engage MATADOR to fill key roles."', '<br /><b>Chang San Nee</b><br />Assistant HR Manager & MATADOR Fan<br />Moët Hennessy Diageo');
		
	quotes.addQuote("shine", '"With the use of MATADOR’s CRM tool, the Bullseye© System, it was easy to keep track of the candidate profiles and where we were at in the recruitment process. Through MATADOR, we have employed a number of IT personnel in Singapore and hopefully, in our Malaysia and Philippine offices as well."', '<br /><b>Grace King</b><br />General Manager & MATADOR Fan<br />SYSTEX Corporation');
	
	quotes.addQuote("shine", '"In extremely tight timeframes, MATADOR managed to source and secure benchmark candidates for key IT positions. MATADOR ensured that the recruitment process caused as little distraction to my day-to-day role as possible, whilst still making me feel I was in control of the process."', '<br /><b>Siew Pey Teng</b><br />HR Executive & MATADOR Fan<br />Samsung SDS');
		
    quotes.printQuote("all");