// write the sidebar ads to the page

/* display one ad -- defined in banner.js
function displayAd(ad) {}
*/

/* display all the sidebar ads */
function displayAds() {
	var a;
	for (a=0;a<SBads.length;a++){
		displayAd(SBads[a])
	}
}

/* shuffle an array */
function shuffle(list) {
	list.sort(function() {return 0.5 - Math.random()})
}

/* initialize the sidebar ads array */
var SBads = new Array();
var paidAds = new Array();
var freeAds = new Array();
paidAds[0] = { title : "Rainbow Racing", img : "rainbowracing.gif", url : "http://www.rainbowracing.com/" };
paidAds[1] = { title : "RaceReady", img : "raceready.jpg", url : "http://www.raceready.com" };
paidAds[2] = { title : "Marathon Tours", img: "marathon-tours.jpg", url : "http://marathontours.com/" };
paidAds[3] = { title : "San Luis Obispo Marathon and Half Marathon", img: "SLO_Tile.gif", url : "http://www.slomarathon.com/" };
paidAds[4] = { title : "Garden Spot Village Marathon", img: "gardenspotvillage.jpg", url : "http://www.gardenspotvillagemarathon.org/" };
paidAds[5] = { title : "Qualifier Marathon", img: "qualifier.jpg", url : "http://www.thequalifier.org/" };

// flash example
// paidAds[3] = { title : "Two Cities Marathon", img : "twocities.swf", type : "flash", w : "160", h : "90" };


// freeAds[0] = { title : "Napa Valley Marathon", img : "napa.gif", url : "http://www.napavalleymarathon.org/" };

shuffle(paidAds);
SBads = paidAds.concat(freeAds);

displayAds();

// some DFP code

var txt;
txt = "<script type='text/javascript'>";
txt = txt + 'GA_googleFillSlot("MandB_Skyscraper");';
txt = txt + '</script>';
document.write(txt);
