var quoteNbr
var maxNbr

function setQuote(direction, qtNo, mxNo) {
	
	if (direction == 'start') {
		quoteNbr = Math.floor(Math.random()*mxNo);
		quoteNbr = quoteNbr + 1;
		maxNbr = mxNo;
	}
	else if (direction == 'up') {
		quoteNbr += 1;
		if (quoteNbr > maxNbr) {
			quoteNbr = 1;
		}
	}
	else if (direction == 'down') {
		quoteNbr -= 1
		if (quoteNbr == 0) {
			quoteNbr = maxNbr;
		}
	}
	
	
	var quoteText = new Array();
	var quoteAuthor = new Array();
	
	quoteText[1] = 'Reynolds Meeting & Event Management has been our meeting partner for many years. '
	quoteText[1] += '[They] are the most outstanding meeting planners in the business.';
	quoteAuthor[1] = 'John P. Imlay, Jr.<br />Chairman, Imlay Investments, Inc.';
	
	quoteText[2] = 'You do an outstanding job giving our winners a unique experience and making everyone feel special. '
	quoteText[2] += 'We look forward to continuing our long-standing relationship with Reynolds Meeting & Event Management.'
	quoteAuthor[2] = 'Charles Goodman<br />COO, Ventyx, an ABB Company'
	
	quoteText[3] = 'Your team is very conscious of making sure that people from all parts of the world are considered in all planning. '
	quoteText[3] += 'The international arena is definitely one of your specialties.';
	quoteAuthor[3] = 'Sandra Jimenez<br />Vice President of Enterprise Sales, Americas<br />Alfresco';
	
	quoteText[4] = 'Reynolds Meeting & Event Management is a virtual one-stop shop for any company or association planning an event. '
	quoteText[4] += 'You can completely trust them, which should give you great piece of mind.';
	quoteAuthor[4] = 'Ricky Steele<br />Author, The Heart of Networking';
	
	quoteText[5] = 'Your knowledge of destinations, budgeting and management helped keep us on track and made everything run smoothly. '
	quoteText[5] += 'Having a dedicated event manager – one person we can go to – makes the process easy and without taxing our internal resources.';
	quoteAuthor[5] = 'Sean E. Feeney<br />President and CEO, Inovis ';
	
	quoteText[6] = 'I highly recommend Marsha Reynolds and her staff for their experience, loyalty and leadership. '
	quoteText[6] +=  'Excellence and attention to detail are their hallmark.'
	quoteAuthor[6] = 'Thomas E. Noonan<br />President and CEO, JouleX';
	
	quoteText[7] = 'In over twenty years of working together I’ve learned to welcome Marsha Reynolds’ calls. '
	quoteText[7] += 'Providing clear, decisive input, giving thoughtful consideration to ideas that aren’t her own '
	quoteText[7] += 'and bringing things together in a masterful fashion is why customers return to her year after year.'
	quoteAuthor[7] = 'Brian Palmer, CMM<br />President, National Speakers Bureau'
	
	document.getElementById("quoteText").innerHTML = quoteText[quoteNbr];
	document.getElementById("quoteAuthor").innerHTML = quoteAuthor[quoteNbr];
	document.getElementById("qNbr").innerHTML = quoteNbr;
}
