﻿/* The easiest way is to place the below JavaScript code after the above HTML. The better way would be to add in the <head> section of the document and call the rotatequote() function through the window.onload event. However this can cause problems if you have other scripts that use the window onLoad settings -->
	
double quote: &#34;
single quote: &#39; 
http://www.ascii.cl/htmlcodes.htm */

function randOrd(){
try {
	return (Math.round(Math.random())-0.5); 
	} 
	catch (err){}
} 


var myquotes = new Array(

	'&#34;They got the front-to-back weight ratio right. That balance lets us increase our speed. We can drag two to three miles per hour faster than with other manufacturers&#39; graders – without bouncing.&#34;<br /><br />Bobby Hammock<br />Precinct 3 Road Foreman<br />Deaf Smith County, TX, USA', 

	'&#34;JMA was about to start working on a project and the client demanded that a Volvo motor grader be used. Simple as that. They said it was the best machine on the market. So we got one and realized they knew what they were talking about.&#34;<br /><br />Devendra Kumar<br />General Manager<br />JMC Project Ltd<br />Ahmedabad IA',

	'&#34;Volvo&#39;s got a lot of people beat on the design.&#34;<br /><br />Larry McPherson<br />Fleet Service Technician<br />Autry Grading<br />Fayetteville, NC, USA',

	'&#34;We&#39;ve tried every brand of grader out there. We&#39;ve run them side by side and Volvo always comes out on top.&#34;<br /><br />Lionel Switzer<br />Public Works Supervisor<br />Portage La Prairie, MB, Canada',

	'&#34;At one time, I could see 15 trucks on the road dumping the gravel and the [Volvo] grader kept up. Even the trucking company was out there taking pictures!&#34;<br /><br />Brian Slusarski<br />General Manager<br />Slusarski Excavating<br />Adrian, MI, USA',

	'&#34;If you only have one grader, you should get AWD. Volvo&#39;s Creep Mode has lots of power and it allows the operator to slow it down enough for fine-grade control.&#34;<br /><br />Ken Autry<br />Operator<br />Autry Grading<br />Fayetteville, NC, USA',	

	'&#34;It&#39;s a well-balanced machine and I like the power. In snow the automatic transmission works great. You don’t have to upshift or downshift the grader.&#34;<br /><br />Jess Whitehead<br />Operator<br />Deaf Smith County, TX, USA', 

	'&#34;With the older models it would take us three days to get the roads done in Ward 5 alone, but with these new Volvo G970&#39;s we can get all the roads plowed in a day and a half.&#34;<br /><br />Lionel Switzer<br />Public Works Supervisor<br />Portage La Prairie, MB, Canada',

	'&#34;The transmission is a really big deal. The automatic shifting is great for plowing snow, which we can do in the higher gears. The more we run the Volvo’s the better we like them.&#34;<br /><br />Kenneth Bass<br />Precinct 2 Road Foreman<br />Deaf Smith County, TX, USA', 

	'&#34;I got the 11-speed for the extra low speed at the bottom; it works really well for curves and gutters; it gives you more choice to get the right speed and ultimately more control. The autoshift always shifts where it&#39;s supposed to.&#34;<br /><br />Ken Autry<br />Operator<br />Autry Grading<br />Fayetteville, NC, USA'		
);

try {
	myquotes.sort(randOrd);
} 
catch (err){}

var active = true;

function rotatequote()
{
	try {
		if (active) {
			thequote = myquotes.shift();
			myquotes.push(thequote);
			document.getElementById('quotetext').innerHTML = thequote;
		}
		
		t=setTimeout("rotatequote()",12000);
	} 
	catch (err){}
}

function pauserotation()
{
	active = false;
}

function resumerotation()
{
	active = true;

}