//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.


	//johnnyroadtrip.com
	bannerNumber = 0
	bannerWeight[bannerNumber] = 0
	bannerComplete[bannerNumber] = '<a href = "http://www.johnnyroadtrip.com" target = blank>'
	bannerComplete[bannerNumber] += '<img src = "http://www.tourneytravel.com/adimages/jrt_medbox.gif" width="125" height="125"  alt = "johnnyroadtrip.com - Your Source for sports Travel" border = "0"></a href>'



	//TravelNow Airlines
	bannerNumber = 1
	bannerWeight[bannerNumber] = 0
	bannerComplete[bannerNumber] = '<a href = "http://www.travelnow.com/airlines/search.jsp?cid=73276">'
	bannerComplete[bannerNumber] += '<img src = "http://www.tourneytravel.com/adimages/TNairlines-120x60.gif"  alt = "Book a flight at TravelNow.com" border = "0"></a href>'



	//TravelNow Cars
	bannerNumber = 2
	bannerWeight[bannerNumber] = 0
	bannerComplete[bannerNumber] = '<a href = "http://www.travelnow.com/cars/search.jsp?cid=73276">'
	bannerComplete[bannerNumber] += '<img src = "http://www.tourneytravel.com/adimages/TNcars-120x60.gif"  alt = "Rent a car at TravelNow.com" border = "0"></a href>'



	//TravelNow Hotels
	bannerNumber = 3
	bannerWeight[bannerNumber] = 0
	bannerComplete[bannerNumber] = '<a href = "http://www.travelnow.com/hotels/index.html?cid=73276">'
	bannerComplete[bannerNumber] += '<img src = "http://www.tourneytravel.com/adimages/TNhotels-120x60.gif"  alt = "Book a hotel at TravelNow.com" border = "0"></a href>'


	//BigLeagueTix.com
	bannerNumber = 4
	bannerWeight[bannerNumber] = 15
	bannerComplete[bannerNumber] = '<a href = "http://www.bigleaguetix.com" target = blank>'
	bannerComplete[bannerNumber] += '<img src = "http://www.tourneytravel.com/adimages/bigleaguetixlogo.gif"alt = "BigLeagueTix.com has tickets for all NCAA Tournament games and the Final Four" border = "0"></a href>'



	//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])
	




