//javascript that will randomly display a 120*60 banner

	//set the standard image path
	imagePath = "http://www.johnnyroadtrip.com/affiliates/"

	//***define the number of banners you have starting at 1; this should be one more than the highest number in the definition area
	numBanners = 3

	//define the arrays
	bannerSmall = new Array(numBanners)
	bannerLink = new Array(numBanners)
	bannerSource = new Array(numBanners)
	bannerAlt = new Array(numBanners)
	bannerWeight = new Array(numBanners)

	//define the banners
	//***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 banner number, and order them sequentially.
	//***copy and delete these groups as needed.


	//banner name = tailgatepartyshop.com
	//traded links spring '02
	bannerNumber = 0
	bannerWeight[bannerNumber] = 10
	bannerSmall[bannerNumber] = ""
	bannerLink[bannerNumber] = "http://www.tailgatepartyshop.com"
	bannerSource[bannerNumber] = "http://www.johnnyroadtrip.com/adimages/tailgatepartyshop.jpg"
	bannerAlt[bannerNumber] = "TailgatePartyShop.com offers the best in tailgating products"


	//banner name = thetailgater
	//traded links fall '01
	bannerNumber = 1
	bannerWeight[bannerNumber] = 0
	bannerSmall[bannerNumber] = ""
	bannerLink[bannerNumber] = "http://www.thetailgater.com"
	bannerSource[bannerNumber] = "http://www.johnnyroadtrip.com/adimages/thetailgater.jpg"
	bannerAlt[bannerNumber] = "TheTailgater.com monthly webzine"


	//banner name = texantailgaters
	//traded links on 5/9/02
	bannerNumber = 2
	bannerWeight[bannerNumber] = 0
	bannerSmall[bannerNumber] = ""
	bannerLink[bannerNumber] = "http://www.texantailgaters.com"
	bannerSource[bannerNumber] = "http://www.texantailgaters.com/images/texan_tailgaters_logo.gif"
	bannerAlt[bannerNumber] = "TexanTailgaters.com, Home of the Greatmate Grill"



	//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

	smallSource = '<img src = "'+ bannerSmall[bannerID] + '"  border = "0" width = "1" height = "1" nosave>'
	href = '<a href = "'+ bannerLink[bannerID] + '" target = blank>'
	imageSource = '<img src = "'+ bannerSource[bannerID] + '" alt = "' + bannerAlt[bannerID] + '" border = "0">'

	//display banner
	if (bannerSmall[bannerID] != ""){
		document.write(smallSource)
	} // endif
	document.write(href + imageSource + '</a href>')
