// helper.js v1.0
// MACROSTATE.com
//
// Javascript by Matt Hobbs - (C)2007. www.MattHobbs.com
//

/*
*******************************************
 Used to change the quote graphic at
 random. Quotes should be located in:
 
 /images/quotes

 And named as follows:

    x.gif

 Where xxx is a number - eg, 0.gif, 10.gif.

*******************************************
*/


function randomQuote(sQuoteFolder, sImageName) {
	// CHANGE THIS NUMBER WHEN MORE QUOTES ARE ADDED (remember 0-9 => 10!)
	iNumberOfQuotes = 10;
	
	iRandom = Math.floor(Math.random() * iNumberOfQuotes)
	sNewImage = '' + iRandom + '.gif';
	
	// sQuoteFolder = '/images/quotes/';
	
	sImageSource = sQuoteFolder + sNewImage;
	
	document[sImageName].src = sImageSource;
}