//javascript that will randomly display a picture and text about a topic

	//set the standard path

	//***define the number of topics you have starting at 1; this should be one more than the highest number in the definition area
	numBanners = 5

	//define the arrays
	bannerWeight = new Array(numBanners)
	bannerComplete = new Array(numBanners)

	//define the information to rotate
	//***you can give them whatever weights you want, they are relative to each other.  
	//***Using smaller numbers may speed up the script.
	//***Be sure to change each page number, and order them sequentially.
	//***copy and delete these groups as needed.

	//banner name = JOTS 1
	bannerNumber = 0
	bannerWeight[bannerNumber] = 5
	bannerComplete[bannerNumber] = '<font size="2"><b><a href="http://www.johnnyroadtrip.com/johnnyonthespot/jots_submit.asp">'
	bannerComplete[bannerNumber] += '<font color="#D09830">RATE YOUR HOMETOWN</font></a><font color="#D09830" size="2"><b>'
        bannerComplete[bannerNumber] += '  at'
	bannerComplete[bannerNumber] += ' <a href="http://www.johnnyroadtrip.com/johnnyonthespot"><font color="#D09830" size="2">'
	bannerComplete[bannerNumber] += 'Johnny on the Spot!!</font></a><font color="#D09830" size="2"><b>'
	bannerComplete[bannerNumber] += '  Tell us about the best your town has to offer!!'


	//banner name = JOTS 2
	bannerNumber = 1
	bannerWeight[bannerNumber] = 5
	bannerComplete[bannerNumber] = '<font size="2"><b><a href="http://www.johnnyroadtrip.com/johnnyonthespot/jots_submit.asp">'
	bannerComplete[bannerNumber] += '<font color="#D09830">RATE YOUR FAVORITE CITY</font></a><font color="#D09830" size="2"><b>'
        bannerComplete[bannerNumber] += '  at'
	bannerComplete[bannerNumber] += ' <a href="http://www.johnnyroadtrip.com/johnnyonthespot"><font color="#D09830" size="2">'
	bannerComplete[bannerNumber] += 'Johnny on the Spot!!</font></a><font color="#D09830" size="2"><b>'
	bannerComplete[bannerNumber] += '  Tell us about a great road trip you\'ve taken!'


	//banner name = Message Boards
	bannerNumber = 2
	bannerWeight[bannerNumber] = 10
	bannerComplete[bannerNumber] = '<font size="2" color="#D09830"><b>Check out our <font size="2"><b><a href="http://www.johnnyroadtrip.com/messageboard/default.asp">'
	bannerComplete[bannerNumber] += '<font color="#D09830">SPORTS MESSAGE BOARD</font></a><font color="#D09830" size="2"><b>'
        bannerComplete[bannerNumber] += ', the perfect forum for your opinions, rants, and predictions!'



	//banner name = Great Weekends
	bannerNumber = 3
	bannerWeight[bannerNumber] = 10
	bannerComplete[bannerNumber] = '<font size="2" color="#D09830"><b>Check out these'
	bannerComplete[bannerNumber] += ' <font size="2"><b><a href="http://www.johnnyroadtrip.com/cool_trips.htm">'
	bannerComplete[bannerNumber] += '<font color="#D09830">GREAT SPORTS WEEKENDS!!</font></a><font color="#D09830" size="2"><b>'
        bannerComplete[bannerNumber] += '  We\'ve scouted out some'
	bannerComplete[bannerNumber] += ' <a href="http://www.johnnyroadtrip.com/cool_trips.htm"><font color="#D09830" size="2">'
	bannerComplete[bannerNumber] += 'great road trips</font></a><font color="#D09830" size="2"><b>'
	bannerComplete[bannerNumber] += '  for you!'


	//banner name = Stadium Info
	bannerNumber = 4
	bannerWeight[bannerNumber] = 12
	bannerComplete[bannerNumber] = '<font size="2" color="#D09830"><b>Looking for'
	bannerComplete[bannerNumber] += ' <font size="2"><b><a href="http://www.johnnyroadtrip.com/stadiums">'
	bannerComplete[bannerNumber] += '<font color="#D09830">STADIUM INFORMATION</font></a><font color="#D09830" size="2"><b>'
        bannerComplete[bannerNumber] += '??  Click '
	bannerComplete[bannerNumber] += ' <a href="http://www.johnnyroadtrip.com/stadiums"><font color="#D09830" size="2">'
	bannerComplete[bannerNumber] += 'here</font></a><font color="#D09830" size="2"><b>'
	bannerComplete[bannerNumber] += '  for links to johnnyroadtrip.com\'s stadium pages!'


	//pick banner
	//add up total weights
	totalWeight = 0
	for (var i = 0; i<numBanners; i++) {
		totalWeight = totalWeight + bannerWeight[i]
	} // for loop ends

	//pick random number for banner
	bannerID = Math.round(Math.random() * (totalWeight - 1))

	//find proper banner
	//this portion of code goes through each banner and adds up the weights as it goes.
	//Once the tempWeight becomes larger than the random number chosen (bannerID), we have a match.
	tempWeight = 0
	for (var i = 0; i<numBanners; i++) {
		tempWeight = tempWeight + bannerWeight[i]
		if (bannerID < tempWeight) {
			bannerID = i
			break
		}  //end if
	} // for loop ends



	//display banner
	document.write(bannerComplete[bannerID])
	




