sponsorimages =
   [50, "procrastinatorium.gif",
	50, "snowvacc.gif",
	45, "coffeesock.gif",
	40, "d230.gif",
	35, "tweeners.gif",
	32, "fivelayerpizza.gif",
	30, "substandard.gif",
    30, "fridgeads.gif",
    30, "fencepost.gif",
	30, "chewershof.gif",
	30, "owligator.gif",
	25, "snowballmaker.gif",
	25, "snornomor.gif",
	25, "shelfchicken.gif",
	25, "driver.gif",
	20, "versadoor.gif",
	20, "stapleriffic.gif",
	20, "trailertv.gif",
	20, "knuckles.gif",
	20, "fishphone.gif",
	20, "dogbreath.gif",
	15, "popupmonster.gif",
	15, "ventrilotherapy.gif",
	10, "navelintel.gif",
	10, "gashairbrush.gif",
	10, "rammaster.gif",
	10, "cartoaster.gif",
	10, "washdrydish.gif",
	10, "redimpling.gif",
	10, "hairbrakes.gif",
	10, "cornflake.gif",
	10, "cupholder.gif",
	10, "buffalojack.gif",
	 5, "toothblaster.gif",
	 5, "pogochair.gif",
	 5, "kidwasher.gif",
	 5, "askmenice.gif",
	 5, "broccopop.gif",
	 5, "electricqtip.gif",
	 5, "chickensoup.gif",
	 5, "buttongear.gif",
	 5, "shufflemagic.gif",
	 5, "puppigills.gif",
 	 5, "grocerypass.gif",
	 5, "heckling.gif",
	 5, "mobydisk.gif",
	 5, "1010gyp.gif",
	 5, "pruneblast.gif",
	 5, "cranburger.gif",
     2, "caulibeer.gif",
	 2, "dracula.gif",
	 2, "browbeaters.gif",
	 2, "laxadaisy.gif",
	 2, "ketchup.gif",
	 2, "onelegged.gif",
	 2, "atomiclasagna.gif",
	 1, "nuclearkitchen.gif",
	 1, "parkingspace.gif",
	 1, "tirenrice.gif",
	 1, "torches.gif",
	 1, "frogsausage.gif",
	 1, "safesignal.gif",
	 1, "coolpillow.gif",
	 1, "talelights.gif",
	 1, "omnitread.gif",
	 1, "walletphone.gif",
	 1, "wormholecam.gif",
	 1, "possum.gif",
	 1, "corncobbler.gif",
	 1, "armtoupee.gif",
	 1, "ventdummies.gif",
	 1, "digpancake.gif",
	 1, "chocoveggies.gif",
	 1, "dreammanager.gif",
	 1, "pipwarmer.gif",
	 1, "grovers.gif"
	]

function sponsorimage()
	{
	var weight, imgIx;

	weight = 0;
	for (imgIx=0 ; imgIx<sponsorimages.length ; imgIx+=2)
		weight += sponsorimages[imgIx];

	weight = Math.floor (Math.random () * weight);
	for (imgIx=0 ; weight >= sponsorimages[imgIx] ; imgIx+=2)
		weight -= sponsorimages[imgIx];

	return "http://www.bumblebeagle.org/sponsors/"+sponsorimages[imgIx+1];
	}

function showsponsorimage()
	{
	document.write("<a href='http://www.bumblebeagle.org/sponsors/index.html'><img src='"+sponsorimage()+"'></a>");
	}

function showsponsorimages()
	{
	for (var imgIx=0 ; imgIx<sponsorimages.length ; imgIx+=2)
		{
		if (imgIx != 0) document.write("<p>");
		document.writeln("<img src='"+sponsorimages[1+imgIx]+"' align=top>");
		}
	}

