var quotes = new Array(
   new Array('"A simple but highly effective communication tool to get our message across to our customers - at the end of the day, everyone reads their texts!"', 'Kim Binns, Spectacular Driveways'),
   new Array('"The service from SMileS was first <br />class and very supportive from start to finish. We look forward to working with them again in the 2010 season." ', 'James Brammer, Huddersfield Giants'),
   new Array('"The NCSN conference text back <br />service worked extremely well and was a good addition for the event."', 'Chris Wilson - Tailor Made Conferences'),
   new Array('"I wasn\'t convinced text messaging would work, but I spent &pound;59 and got &pound;4000 of business. Great SMileS return."', 'Mike Oller - Carpets Direct'),
   new Array('"We\'ve come to rely heavily on SMileS text messaging. It has brought our communications well and truly into the 21st Century and now we couldn\'t do without it." ', 'Judith Franklin, Associate Head, <br>Colne Valley Specialist Arts College'),
   new Array('"I first used SMileS in the run up to Mother\'s Day; as a florist this is one of my busiest times. I found it very quick and easy to set up. And the response was fantastic!"', 'Helen Culloden - Four Seasons Florists'),
   new Array('"I urge all businesses to collect customers\' mobile phone numbers and use them to keep in touch by text message (via SMileS)."', 'Ed Ryder, Chartered Marketer and Managing Director of Biskit'),
   new Array('"Thank you so much for all of your help.  I think you\'ve been a driving force in us saving money and I really appreciate it."', 'Charlotte Gaunt - In \'n\' Out'),
   new Array('"Its SMileS all round with our pals over in Huddersfield"', 'Howard - Rushfirth Creative'),
   new Array('"Let me take this opportunity to say that I think you do a great job for us, and we really appreciate it."', 'Charlotte Gaunt - In \'n\' Out'),
   new Array('"I have been using SMileS for over a year and have to say they are a brilliant company with excellent customer service and exactly what I require for my travel business."', 'Marina Simioli - Travel Counsellors'),
   new Array('"I have used SMileS on a regular basis and would highly recommend this service. Mark and his team have gone above and beyond to provide an excellent service time after time."', 'John Ahern - Total Fitness')
);
 


	var nextQuote;
	var thisQuote;
	var nextContent;
	
	function getRandomInt(min,max) {
		return Math.round(min + Math.random()*(max-min))
	}
	
	function changeQuote() {
		do {
			nextQuote = getRandomInt(0,quotes.length - 1);
		} while (nextQuote == thisQuote);
		
		thisQuote = nextQuote;
		$("#strapLineCon").fadeOut(1500);
		nextContent = quotes[thisQuote][0] + ' <br/><span>' + quotes[thisQuote][1] + '</span>';
		
		setTimeout('$("#strapLineCon").html(nextContent)', 1500);
		$("#strapLineCon").fadeIn(1500);
		
		
	}
	
	function changeQuoteInstant() {
		do {
			nextQuote = getRandomInt(0,quotes.length - 1);
		} while (nextQuote == thisQuote);
		
		thisQuote = nextQuote;
		nextContent = quotes[thisQuote][0] + ' <br/><span>' + quotes[thisQuote][1] + '</span>	';
		$("#strapLineCon").html(nextContent);
	}
	
	$(document).ready(function() {
		changeQuoteInstant();
		setInterval("changeQuote()", 10000);
	});
