// ==============================================
// Copyright 2003 by jsCode.com
// Source: jsCode.com
// Author: etLux
// Free for all; but please leave in the header.
// ==============================================

// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array. Rememeber
// to increment the theImages[x] index!

theImages[0] = 'cchallenge.gif'
theImages[1] = 'metrotransit.gif'
theImages[2] = 'SmartTrips.jpg'
theImages[3] = 'CommConn.jpg'
theImages[4] = '494.jpg'
theImages[5] = 'Anoka.jpg'
theImages[6] = 'bwtc.gif'
theImages[7] = 'ambassadors.gif'
theImages[8] = 'cchallenge.gif'
theImages[9] = 'FlourishLogo.gif'
theImages[10] = 'ship.jpg'
theImages[11] = 'nordic.jpg'
theImages[12] = 'hub.jpg'
theImages[13] = 'hour.jpg'
theImages[14] = 'any.jpg'
theImages[15] = 'hoy.jpg'
theImages[16] = 'AF.jpg'
theImages[17] = 'LGA.jpg'
theImages[18] = 'sp.jpg'
theImages[19] = 'hen.jpg'
theImages[20] = 'eriks.bmp'
theImages[21] = 'whole.jpg'
theImages[22] = 'dero.jpg'
theImages[23] = 'trav.jpg'
theImages[24] = 'ban.jpg'
theImages[25] = 'life.jpg'
theImages[26] = 'great.jpg'
theImages[27] = 'miss.jpg'
theImages[28] = 'cliff.JPG'
theImages[29] = 'food.jpg'
theImages[30] = 'run.jpg'
theImages[31] = 'dan.jpg'

// Set up the links files to be used.
var theLinks = new Array() // do not change this
// To add more links files, continue with the
// pattern below, adding to the array. Rememeber
// to increment the theImages[x] index!

theLinks[0] = 'http://www.mycommuterchallenge.org'
theLinks[1] = 'http://www.metrotransit.org'
theLinks[2] = 'http://www.smart-trips.org'
theLinks[3] = 'http://www.commuter-connection.org'
theLinks[4] = 'http://www.494corridor.org'
theLinks[5] = 'http://www.co.anoka.mn.us/v3_tmo/index.html'
theLinks[6] = 'http://bikewalktwincities.org/'
theLinks[7] = 'http://bikewalktwincities.org/ambassadors'
theLinks[8] = 'http://www.mycommuterchallenge.org'
theLinks[9] = 'http://www.flourishdesignoffice.com/'
theLinks[10] = 'http://www.health.state.mn.us/healthreform/ship/'
theLinks[11] = 'http://www.loppet.org/'
theLinks[12] = 'http://thehubbikecoop.org/'
theLinks[13] = 'http://www.hourcar.org/'
theLinks[14] = 'http://www.anytimefitness.com/'
theLinks[15] = 'http://www.hoigaards.com/'
theLinks[16] = 'http://www.ameriprise.com/'
theLinks[17] = 'http://livegreenapts.com/'
theLinks[18] = 'http://www.stpaul.gov/'
theLinks[19] = 'http://hennepin.us/'
theLinks[20] = 'http://www.eriksbikeshop.com/'
theLinks[21] = 'http://www.wholefoodsmarket.com/'
theLinks[22] = 'http://www.dero.com'
theLinks[23] = 'http://www.travelers.com/'
theLinks[24] = 'http://www.banjobrothers.com/'
theLinks[25] = 'http://www.lifetimefitness.com/'
theLinks[26] = 'http://www.greatharvest.com/'
theLinks[27] = 'http://www.msmarket.coop/'
theLinks[28] = 'http://www.clifbar.com/food/products_clif_kid_zbar/'
theLinks[29] = 'http://cruzncafemn.com/'
theLinks[30] = 'http://www.runningroom.com/' 
theLinks[31] = 'http://dandelionkitchen.com/'

// ======================================
// do not change anything below this line
// ======================================

var j = 0
var p = theImages.length;

var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}

var whichImage = Math.round(Math.random()*(p-1));
function getImage(){
document.write('<a href='+'"'+theLinks[whichImage]+'"TARGET="_blank"><img src="sponsors/presenting2010/'+theImages[whichImage]+'"align="center" border="0"></a>');
}

