var data = new Array(

"michelob.com/","michelob-run-to-the-finish.gif","Michelob Ultra Run to the Finish Series",100,54,0,
"winndixie.com/","winndixie.jpg","Winn Dixie",160,42,0,
"alortho.com/","aoc.jpg","Alabama Orthopaedic Clinics, P.C.",150,117,0,
//"advocare.com/","advocare.gif","AdvoCare",110,60,0,
"92zew.net/","wzew.jpg","92 Zew",175,68,0,
"ameripriseadvisors.com/bruce.g.coldsmith/?BNR=solc_id%3D12595%26vend_cd%3DALA%26offer_id%3D1315","ameriprise.jpg","Bruce Coldsmith",173,60,1,
//"thessigroup.com/","ssi.jpg","SSI Group, Inc",175,44,0,
"productionsbylittleredhen.com/","littleredhen.jpg","Little Red Hen Productions",150,175,0,
"kentwoodsprings.com/","kentwood.jpg","Kentwood Springs",110,85,0,
"wnsp.com/","wnsp.gif","WNSP",92,89,0,
//"exploreum.com/","exploreum.jpg","Exploreum",200,51,0,
"citybizmobile.com/cms/","citybiz.jpg","CityBizUSA",200,53,0,
"baileystvinc.com/","baileystv.png","Bailey's Television",200,30,0,
"blue.edu/","bluecliff.jpg","Blue Cliff",200,77,0,
//"academy.com/","academy_ua.jpg","Academy and Uunder Armour",220,74,0,
"compoundcare.com/","ccpharmacy.jpg","Compound Care Pharmacy",160,106,0,
"al.com/","al_com.jpg","al.com",86,85,0,
"www.mobiledowntown.hamptoninn.com/","hampton.jpg","Hampton Inn & Suite",160,131,0,
//"www.newhcu.org/","newhorizons.jpg","New Horizons",180,85,0,
//"jubileewater.com/prod01.htm","jubilee.jpg","Jubilee Water",200,153,0,
-1);


var ix = 0;
var LINK_OFS = ix++;
var IMG_OFS = ix++;
var ALT_OFS = ix++;
var WT_OFS = ix++;
var HT_OFS = ix++;
var USE_CAPTION_OFS = ix++;

var RECORD_SIZE = ix;

function writeCell(i){
		var hasLink = data[i+LINK_OFS].length > 0;
		document.write('<td align="center">');
		if( hasLink )
			document.write('<a href="http://'+ data[i+LINK_OFS] +'">');
		document.write('<img src="sponsors/'+ data[i+IMG_OFS] +'" width="'+ data[i+WT_OFS] +'" height="'+ data[i+HT_OFS] +'" alt="'+ data[i+ALT_OFS] +'" border="0">');
		if( hasLink )
			document.write('</a>');
		if( data[i+USE_CAPTION_OFS] == 1 )
			document.write('<P style="font-family: Arial, Helvetica, sans-serif; font-size: 20px; margin-top: 2px">' + data[i+ALT_OFS]);
		document.write('</td>');
}

function writeSponsorTable(){
	document.writeln('<table>');
	
 	var i = 0;
	while( i < data.length - RECORD_SIZE ){
		document.write('<tr>');
		writeCell(i);
		i = i + RECORD_SIZE;
		if( i < data.length - RECORD_SIZE  )
			writeCell(i);
		document.write('</tr>');
		i = i + RECORD_SIZE;
	}
	
	document.writeln('</table>');
}

