//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 = 3

	//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.


	//OpenSeats.com - Through commission junction
	bannerNumber = 0
	bannerWeight[bannerNumber] = 0
	bannerComplete[bannerNumber] = '<a href = "http://www.commission-junction.com/track/track.dll?AID=445832&PID=446514&URL=http%3A%2F%2Fwww%2Eopenseats%2Ecom" target = blank>'
	bannerComplete[bannerNumber] += '<img src = "http://www.commission-junction.com/banners/tracker.exe?PID=446514&AID=445832&banner=445832%2Egif" alt = "OpenSeats.com - Your Local Ticket Exchange" border = "0"></a href>'


	//OpenSeats.com - ticketvision.com - banner exchanged with them on 2/5/02 - THEY DO NOT LINK TO US as of 5/10/03
	bannerNumber = 1
	bannerWeight[bannerNumber] = 0
	bannerComplete[bannerNumber] = '<a href = "http://www.ticketvision.com" target = blank>'
	bannerComplete[bannerNumber] += '<img src = "http://www.johnnyroadtrip.com/adimages/ticketvisioncom125x125text.gif" alt = "TicketVision.com offers premium seating to sporting events thoughout the country" border = "0"></a href>'


	//BigLeagueTix.com
	bannerNumber = 2
	bannerWeight[bannerNumber] = 10
	bannerComplete[bannerNumber] = '<a href = "http://www.bigleaguetix.com" target = blank>'
	bannerComplete[bannerNumber] += '<img src = "http://www.johnnyroadtrip.com/adimages/bigleaguetixlogo.gif" alt = "Visit BigLeagueTix.com for all your tickets!!" border = "1"></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])
	




