// JavaScript Document
var arrGOP1 = [];
var arrGOP2 = [];
var arrGOP3 = [];
var arrRace = [];
var currentTime;
var statename;
var strOutput;
		
function getStream(statename)
{
switch (statename) {
	case "Alabama":
		currentTime = "Feb. 5";
		arrRace[0] = "Primary";
		arrRace[1] = "99";
		arrRace[2] = "48";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "37";
		arrGOP1[2] = "19";
		arrGOP1[3] = "";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "41";
		arrGOP2[2] = "26";
		arrGOP2[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		arrGOP3[0] = "Romney";
		arrGOP3[1] = "18";
		arrGOP3[2] = "0";
		arrGOP3[3] = "";
		buildoutput2(currentTime, arrRace, arrGOP1, arrGOP2, arrGOP3);
		break;
	case "Alaska":
		currentTime = "Feb. 5";
		arrRace[0] = "Caucus";
		arrRace[1] = "98";
		arrRace[2] = "29";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "16";
		arrGOP1[2] = "3";
		arrGOP1[3] = "";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "22";
		arrGOP2[2] = "6";
		arrGOP2[3] = "";
		arrGOP3[0] = "Romney";
		arrGOP3[1] = "44";
		arrGOP3[2] = "12";
		arrGOP3[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		buildoutput2(currentTime, arrRace, arrGOP1, arrGOP2, arrGOP3);
		break;
	case "Arizona":
		currentTime = "Feb. 5";
		arrRace[0] = "Primary";
		arrRace[1] = "98";
		arrRace[2] = "67";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "47";
		arrGOP1[2] = "53";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "9";
		arrGOP2[2] = "0";
		arrGOP2[3] = "";
		arrGOP3[0] = "Romney";
		arrGOP3[1] = "34";
		arrGOP3[2] = "0";
		arrGOP3[3] = "";
		buildoutput2(currentTime, arrRace, arrGOP1, arrGOP2, arrGOP3);
		break;
	case "Arkansas":
		currentTime = "Feb. 5";
		arrRace[0] = "Primary";
		arrRace[1] = "99";
		arrRace[2] = "47";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "20";
		arrGOP1[2] = "1";
		arrGOP1[3] = "";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "60";
		arrGOP2[2] = "29";
		arrGOP2[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		arrGOP3[0] = "Romney";
		arrGOP3[1] = "13";
		arrGOP3[2] = "1";
		arrGOP3[3] = "";
		buildoutput2(currentTime, arrRace, arrGOP1, arrGOP2, arrGOP3);
		break;
	case "California":
		currentTime = "Feb. 5";
		arrRace[0] = "Primary";
		arrRace[1] = "100";
		arrRace[2] = "173";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "42";
		arrGOP1[2] = "155";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "12";
		arrGOP2[2] = "0";
		arrGOP2[3] = "";
		arrGOP3[0] = "Romney";
		arrGOP3[1] = "34";
		arrGOP3[2] = "15";
		arrGOP3[3] = "";
		buildoutput2(currentTime, arrRace, arrGOP1, arrGOP2, arrGOP3);
		break;
	case "Colorado":
		currentTime = "Feb. 5";
		arrRace[0] = "Caucus";
		arrRace[1] = "95";
		arrRace[2] = "46";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "19";
		arrGOP1[2] = "0";
		arrGOP1[3] = "";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "13";
		arrGOP2[2] = "0";
		arrGOP2[3] = "";
		arrGOP3[0] = "Romney";
		arrGOP3[1] = "59";
		arrGOP3[2] = "43";
		arrGOP3[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		buildoutput2(currentTime, arrRace, arrGOP1, arrGOP2, arrGOP3);
		break;
	case "Connecticut":
		currentTime = "Feb. 5";
		arrRace[0] = "Primary";
		arrRace[1] = "100";
		arrRace[2] = "30";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "52";
		arrGOP1[2] = "27";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "7";
		arrGOP2[2] = "0";
		arrGOP2[3] = "";
		arrGOP3[0] = "Romney";
		arrGOP3[1] = "33";
		arrGOP3[2] = "0";
		arrGOP3[3] = "";
		buildoutput2(currentTime, arrRace, arrGOP1, arrGOP2, arrGOP3);
		break;
	case "DC":
		currentTime = "Feb. 12";
		arrRace[0] = "Primary";
		arrRace[1] = "100";
		arrRace[2] = "19";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "68";
		arrGOP1[2] = "16";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "17";
		arrGOP2[2] = "";
		arrGOP2[3] = "";
		buildoutput(currentTime, arrRace, arrGOP1, arrGOP2);
		break;
	case "Delaware":
		currentTime = "Feb. 5";
		arrRace[0] = "Primary";
		arrRace[1] = "100";
		arrRace[2] = "18";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "45";
		arrGOP1[2] = "18";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "15";
		arrGOP2[2] = "0";
		arrGOP2[3] = "";
		arrGOP3[0] = "Romney";
		arrGOP3[1] = "0";
		arrGOP3[2] = "0";
		arrGOP3[3] = "";
		buildoutput2(currentTime, arrRace, arrGOP1, arrGOP2, arrGOP3);
		break;
	case "Florida"://need
		currentTime = "Jan. 29";
		arrRace[0] = "Primary";
		arrRace[1] = "99";
		arrRace[2] = "57";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "36";
		arrGOP1[2] = "57";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "13";
		arrGOP2[2] = "";
		arrGOP2[3] = "";
		arrGOP3[0] = "Romney";
		arrGOP3[1] = "31";
		arrGOP3[2] = "";
		arrGOP3[3] = "";
		buildoutput2(currentTime, arrRace, arrGOP1, arrGOP2, arrGOP3);
		break;
	case "Georgia":
		currentTime = "Feb. 5";
		arrRace[0] = "Primary";
		arrRace[1] = "100";
		arrRace[2] = "72";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "32";
		arrGOP1[2] = "12";
		arrGOP1[3] = "";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "34";
		arrGOP2[2] = "54";
		arrGOP2[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		arrGOP3[0] = "Romney";
		arrGOP3[1] = "30";
		arrGOP3[2] = "6";
		arrGOP3[3] = "";
		buildoutput2(currentTime, arrRace, arrGOP1, arrGOP2, arrGOP3);
		break;
	case "Hawaii":
		currentTime = "May 16";
		arrRace[0] = "Convention";
		arrRace[1] = "0";
		arrRace[2] = "17";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "";
		arrGOP1[2] = "";
		arrGOP1[3] = "";
		buildoutput3(currentTime, arrRace, arrGOP1);
		break;
	case "Idaho":
		currentTime = "May 27";
		arrRace[0] = "Primary";
		arrRace[1] = "100";
		arrRace[2] = "26";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "70";
		arrGOP1[2] = "";
		arrGOP1[3] = "";
		buildoutput3(currentTime, arrRace, arrGOP1);
		break;
	case "Illinois":
		currentTime = "Feb. 5";
		arrRace[0] = "Primary";
		arrRace[1] = "99";
		arrRace[2] = "70";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "47";
		arrGOP1[2] = "54";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "16";
		arrGOP2[2] = "0";
		arrGOP2[3] = "";
		arrGOP3[0] = "Romney";
		arrGOP3[1] = "29";
		arrGOP3[2] = "3";
		arrGOP3[3] = "";
		buildoutput2(currentTime, arrRace, arrGOP1, arrGOP2, arrGOP3);
		break;
	case "Indiana":
		currentTime = "May 6";
		arrRace[0] = "Primary";
		arrRace[1] = "87";
		arrRace[2] = "54";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "78";
		arrGOP1[2] = "";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		buildoutputCURRENT2(currentTime, arrRace, arrGOP1);
		break;
	case "Iowa"://need
		currentTime = "Jan. 3";
		arrRace[0] = "Caucus";
		arrRace[1] = "100";
		arrRace[2] = "40";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "13";
		arrGOP1[2] = "";
		arrGOP1[3] = "";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "34";
		arrGOP2[2] = "30";
		arrGOP2[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		arrGOP3[0] = "Romney";
		arrGOP3[1] = "25";
		arrGOP3[2] = "7";
		arrGOP3[3] = "";
		buildoutput2(currentTime, arrRace, arrGOP1, arrGOP2, arrGOP3);
		break;
	case "Kansas":
		currentTime = "Feb. 9";
		arrRace[0] = "Caucus";
		arrRace[1] = "100";
		arrRace[2] = "39";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "24";
		arrGOP1[2] = "";
		arrGOP1[3] = "";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "60";
		arrGOP2[2] = "36";
		arrGOP2[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		buildoutput(currentTime, arrRace, arrGOP1, arrGOP2);
		break;
	case "Kentucky":
		currentTime = "May 20";
		arrRace[0] = "Primary";
		arrRace[1] = "100";
		arrRace[2] = "45";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "72";
		arrGOP1[2] = "42";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		buildoutput3(currentTime, arrRace, arrGOP1);
		break;
	case "Louisiana"://need
		currentTime = "Feb. 9";
		arrRace[0] = "Primary";
		arrRace[1] = "100";
		arrRace[2] = "47";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "42";
		arrGOP1[2] = "";
		arrGOP1[3] = "";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "43";
		arrGOP2[2] = "";
		arrGOP2[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		buildoutput(currentTime, arrRace, arrGOP1, arrGOP2);
		break;
	case "Maine"://need
		currentTime = "Feb. 2";
		arrRace[0] = "Caucus";
		arrRace[1] = "68";
		arrRace[2] = "21";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "21";
		arrGOP1[2] = "";
		arrGOP1[3] = "";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "6";
		arrGOP2[2] = "";
		arrGOP2[3] = "";
		arrGOP3[0] = "Romney";
		arrGOP3[1] = "52";
		arrGOP3[2] = "18";
		arrGOP3[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		buildoutput2(currentTime, arrRace, arrGOP1, arrGOP2, arrGOP3);
		break;
	case "Maryland"://need
		currentTime = "Feb. 12";
		arrRace[0] = "Primary";
		arrRace[1] = "97";
		arrRace[2] = "37";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "55";
		arrGOP1[2] = "37";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "29";
		arrGOP2[2] = "";
		arrGOP2[3] = "";
		buildoutput(currentTime, arrRace, arrGOP1, arrGOP2);
		break;
	case "Massachusetts"://need
		currentTime = "Feb. 5";
		arrRace[0] = "Primary";
		arrRace[1] = "100";
		arrRace[2] = "43";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "41";
		arrGOP1[2] = "18";
		arrGOP1[3] = "";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "4";
		arrGOP2[2] = "0";
		arrGOP2[3] = "";
		arrGOP3[0] = "Romney";
		arrGOP3[1] = "51";
		arrGOP3[2] = "22";
		arrGOP3[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		buildoutput2(currentTime, arrRace, arrGOP1, arrGOP2, arrGOP3);
		break;
	case "Michigan"://need
		currentTime = "Jan. 15";
		arrRace[0] = "Primary";
		arrRace[1] = "100";
		arrRace[2] = "30";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "30";
		arrGOP1[2] = "25";
		arrGOP1[3] = "";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "16";
		arrGOP2[2] = "4";
		arrGOP2[3] = "";
		arrGOP3[0] = "Romney";
		arrGOP3[1] = "39";
		arrGOP3[2] = "";
		arrGOP3[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		buildoutput2(currentTime, arrRace, arrGOP1, arrGOP2, arrGOP3);
		break;
	case "Minnesota":
		currentTime = "Feb. 5";
		arrRace[0] = "Caucus";
		arrRace[1] = "100";
		arrRace[2] = "41";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "22";
		arrGOP1[2] = "0";
		arrGOP1[3] = "";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "20";
		arrGOP2[2] = "0";
		arrGOP2[3] = "";
		arrGOP3[0] = "Romney";
		arrGOP3[1] = "41";
		arrGOP3[2] = "38";
		arrGOP3[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		buildoutput2(currentTime, arrRace, arrGOP1, arrGOP2, arrGOP3);
		break;
	case "Mississippi":
		currentTime = "March 11";
		arrRace[0] = "Primary";
		arrRace[1] = "99";
		arrRace[2] = "36";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "79";
		arrGOP1[2] = "36";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		buildoutput3(currentTime, arrRace, arrGOP1);
		break;
	case "Missouri":
		currentTime = "Feb. 5";
		arrRace[0] = "Primary";
		arrRace[1] = "100";
		arrRace[2] = "58";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "33";
		arrGOP1[2] = "58";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "32";
		arrGOP2[2] = "0";
		arrGOP2[3] = "";
		arrGOP3[0] = "Romney";
		arrGOP3[1] = "29";
		arrGOP3[2] = "0";
		arrGOP3[3] = "";
		buildoutput2(currentTime, arrRace, arrGOP1, arrGOP2, arrGOP3);
		break;
case "Montana":
		currentTime = "Feb. 5";
		arrRace[0] = "Caucus";
		arrRace[1] = "100";
		arrRace[2] = "25";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "22";
		arrGOP1[2] = "3";
		arrGOP1[3] = "";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "15";
		arrGOP2[2] = "0";
		arrGOP2[3] = "";
		arrGOP3[0] = "Romney";
		arrGOP3[1] = "38";
		arrGOP3[2] = "22";
		arrGOP3[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		buildoutput2(currentTime, arrRace, arrGOP1, arrGOP2, arrGOP3);
		break;
case "Nebraska"://need
		currentTime = "May 13";
		arrRace[0] = "Primary";
		arrRace[1] = "100";
		arrRace[2] = "30";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "87";
		arrGOP1[2] = "";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		buildoutput3(currentTime, arrRace, arrGOP1);
		break;
case "Nevada"://need
		currentTime = "Jan. 19";
		arrRace[0] = "Caucus";
		arrRace[1] = "100";
		arrRace[2] = "34";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "13";
		arrGOP1[2] = "4";
		arrGOP1[3] = "";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "8";
		arrGOP2[2] = "3";
		arrGOP2[3] = "";
		arrGOP3[0] = "Romney";
		arrGOP3[1] = "51";
		arrGOP3[2] = "17";
		arrGOP3[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		buildoutput2(currentTime, arrRace, arrGOP1, arrGOP2, arrGOP3);
		break;
case "New Hampshire"://need
		currentTime = "Jan. 8";
		arrRace[0] = "Primary";
		arrRace[1] = "100";
		arrRace[2] = "12";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "37";
		arrGOP1[2] = "7";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "11";
		arrGOP2[2] = "1";
		arrGOP2[3] = "";
		arrGOP3[0] = "Romney";
		arrGOP3[1] = "32";
		arrGOP3[2] = "4";
		arrGOP3[3] = "";
		buildoutput2(currentTime, arrRace, arrGOP1, arrGOP2, arrGOP3);
		break;
case "New Jersey":
		currentTime = "Feb. 5";
		arrRace[0] = "Primary";
		arrRace[1] = "99";
		arrRace[2] = "52";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "55";
		arrGOP1[2] = "52";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "8";
		arrGOP2[2] = "0";
		arrGOP2[3] = "";
		arrGOP3[0] = "Romney";
		arrGOP3[1] = "28";
		arrGOP3[2] = "0";
		arrGOP3[3] = "";
		buildoutput2(currentTime, arrRace, arrGOP1, arrGOP2, arrGOP3);
		break;
case "New Mexico":
		currentTime = "June 3";
		arrRace[0] = "Caucus";
		arrRace[1] = "94";
		arrRace[2] = "29";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "86";
		arrGOP1[2] = "";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		buildoutputCURRENT2(currentTime, arrRace, arrGOP1);
		break;
	case "New York":
		currentTime = "Feb. 5";
		arrRace[0] = "Primary";
		arrRace[1] = "99";
		arrRace[2] = "101";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "51";
		arrGOP1[2] = "101";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "11";
		arrGOP2[2] = "0";
		arrGOP2[3] = "";
		arrGOP3[0] = "Romney";
		arrGOP3[1] = "28";
		arrGOP3[2] = "0";
		arrGOP3[3] = "";
		buildoutput2(currentTime, arrRace, arrGOP1, arrGOP2, arrGOP3);
		break;
case "North Carolina":
		currentTime = "May 6";
		arrRace[0] = "Primary";
		arrRace[1] = "97";
		arrRace[2] = "66";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "74";
		arrGOP1[2] = "";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		buildoutputCURRENT2(currentTime, arrRace, arrGOP1);
		break;
	case "North Dakota":
		currentTime = "Feb. 5";
		arrRace[0] = "Caucus";
		arrRace[1] = "100";
		arrRace[2] = "26";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "23";
		arrGOP1[2] = "5";
		arrGOP1[3] = "";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "20";
		arrGOP2[2] = "5";
		arrGOP2[3] = "";
		arrGOP3[0] = "Romney";
		arrGOP3[1] = "36";
		arrGOP3[2] = "8";
		arrGOP3[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		buildoutput2(currentTime, arrRace, arrGOP1, arrGOP2, arrGOP3);
		break;
	case "Ohio":
		currentTime = "March 4";
		arrRace[0] = "Primary";
		arrRace[1] = "91";
		arrRace[2] = "85";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "60";
		arrGOP1[2] = "85";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "31";
		arrGOP2[2] = "0";
		arrGOP2[3] = "";
		buildoutput(currentTime, arrRace, arrGOP1, arrGOP2);
		break;
	case "Oklahoma":
		currentTime = "Feb. 5";
		arrRace[0] = "Primary";
		arrRace[1] = "100";
		arrRace[2] = "41";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "37";
		arrGOP1[2] = "32";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "33";
		arrGOP2[2] = "6";
		arrGOP2[3] = "";
		arrGOP3[0] = "Romney";
		arrGOP3[1] = "25";
		arrGOP3[2] = "0";
		arrGOP3[3] = "";
		buildoutput2(currentTime, arrRace, arrGOP1, arrGOP2, arrGOP3);
		break;
case "Oregon":
		currentTime = "May 20";
		arrRace[0] = "Primary";
		arrRace[1] = "68";
		arrRace[2] = "30";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "85";
		arrGOP1[2] = "20";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		buildoutput3(currentTime, arrRace, arrGOP1);
		break;
	case "Pennsylvania":
		currentTime = "April 22";
		arrRace[0] = "Primary";
		arrRace[1] = "99";
		arrRace[2] = "71";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "73";
		arrGOP1[2] = "";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "11";
		arrGOP2[2] = "";
		arrGOP2[3] = "";
		buildoutput(currentTime, arrRace, arrGOP1, arrGOP2);
		break;
	case "Puerto Rico":
		currentTime = "Feb. 24";
		arrRace[0] = "Caucus";
		arrRace[1] = "";
		arrRace[2] = "20";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "91";
		arrGOP1[2] = "20";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "5";
		arrGOP2[2] = "";
		arrGOP2[3] = "";
		buildoutput(currentTime, arrRace, arrGOP1, arrGOP2);
		break;
	case "Rhode Island":
		currentTime = "March 4 ";
		arrRace[0] = "Primary";
		arrRace[1] = "98";
		arrRace[2] = "17";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "65";
		arrGOP1[2] = "13";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "22";
		arrGOP2[2] = "4";
		arrGOP2[3] = "";
		buildoutput(currentTime, arrRace, arrGOP1, arrGOP2);
		break;
	case "South Carolina"://need
		currentTime = "Jan. 19";
		arrRace[0] = "Primary";
		arrRace[1] = "100";
		arrRace[2] = "24";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "33";
		arrGOP1[2] = "19";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "30";
		arrGOP2[2] = "5";
		arrGOP2[3] = "";
		buildoutput(currentTime, arrRace, arrGOP1, arrGOP2);
		break;
case "South Dakota":
		currentTime = "June 3";
		arrRace[0] = "Primary";
		arrRace[1] = "99";
		arrRace[2] = "27";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "70";
		arrGOP1[2] = "";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		buildoutputCURRENT2(currentTime, arrRace, arrGOP1);
		break;
	case "Tennessee":
		currentTime = "Feb. 5";
		arrRace[0] = "Primary";
		arrRace[1] = "100";
		arrRace[2] = "55";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "32";
		arrGOP1[2] = "20";
		arrGOP1[3] = "";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "34";
		arrGOP2[2] = "24";
		arrGOP2[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		arrGOP3[0] = "Romney";
		arrGOP3[1] = "24";
		arrGOP3[2] = "8";
		arrGOP3[3] = "";
		buildoutput2(currentTime, arrRace, arrGOP1, arrGOP2, arrGOP3);
		break;
case "Texas":
		currentTime = "March 4 ";
		arrRace[0] = "Primary";
		arrRace[1] = "90";
		arrRace[2] = "137";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "51";
		arrGOP1[2] = "121";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "38";
		arrGOP2[2] = "16";
		arrGOP2[3] = "";
		buildoutput(currentTime, arrRace, arrGOP1, arrGOP2);
		break;
	case "Utah":
		currentTime = "Feb. 5";
		arrRace[0] = "Primary";
		arrRace[1] = "99";
		arrRace[2] = "36";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "5";
		arrGOP1[2] = "1";
		arrGOP1[3] = "";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "1";
		arrGOP2[2] = "0";
		arrGOP2[3] = "";
		arrGOP3[0] = "Romney";
		arrGOP3[1] = "90";
		arrGOP3[2] = "35";
		arrGOP3[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		buildoutput2(currentTime, arrRace, arrGOP1, arrGOP2, arrGOP3);
		break;
case "Vermont":
		currentTime = "March 4 ";
		arrRace[0] = "Primary";
		arrRace[1] = "86";
		arrRace[2] = "17";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "72";
		arrGOP1[2] = "17";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "14";
		arrGOP2[2] = "0";
		arrGOP2[3] = "";
		buildoutput(currentTime, arrRace, arrGOP1, arrGOP2);
		break;
	case "Virginia"://need
		currentTime = "Feb. 12";
		arrRace[0] = "Primary";
		arrRace[1] = "99";
		arrRace[2] = "63";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "50";
		arrGOP1[2] = "60";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "41";
		arrGOP2[2] = "";
		arrGOP2[3] = "";
		buildoutput(currentTime, arrRace, arrGOP1, arrGOP2);
		break;
case "Washington"://need
		currentTime = "Feb. 9 & 19";
		arrRace[0] = "Primary";
		arrRace[1] = "";
		arrRace[2] = "40";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "49";
		arrGOP1[2] = "16";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "22";
		arrGOP2[2] = "3";
		arrGOP2[3] = "";
		buildoutput(currentTime, arrRace, arrGOP1, arrGOP2);
		break;
case "West Virginia":
		currentTime = "Feb. 5";
		arrRace[0] = "Convention";
		arrRace[1] = "100";
		arrRace[2] = "30";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "1";
		arrGOP1[2] = "0";
		arrGOP1[3] = "";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "52";
		arrGOP2[2] = "18";
		arrGOP2[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		arrGOP3[0] = "Romney";
		arrGOP3[1] = "47";
		arrGOP3[2] = "0";
		arrGOP3[3] = "";
		buildoutput2(currentTime, arrRace, arrGOP1, arrGOP2, arrGOP3);
		break;
case "Wisconsin"://need
		currentTime = "Feb. 19";
		arrRace[0] = "Primary";
		arrRace[1] = "100";
		arrRace[2] = "40";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "55";
		arrGOP1[2] = "31";
		arrGOP1[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "37";
		arrGOP2[2] = "3";
		arrGOP2[3] = "";
		buildoutput(currentTime, arrRace, arrGOP1, arrGOP2);
		break;
	case "Wyoming"://need
		currentTime = "Jan. 5";
		arrRace[0] = "Caucus";
		arrRace[1] = "100";
		arrRace[2] = "14";
		arrGOP1[0] = "McCain";
		arrGOP1[1] = "";
		arrGOP1[2] = "";
		arrGOP1[3] = "";
		arrGOP2[0] = "Huckabee";
		arrGOP2[1] = "";
		arrGOP2[2] = "";
		arrGOP2[3] = "";
		arrGOP3[0] = "Romney";
		arrGOP3[1] = "67";
		arrGOP3[2] = "";
		arrGOP3[3] = "<img src='http://www.post-gazette.com/images4/redcheck.gif'>";
		buildoutput2(currentTime, arrRace, arrGOP1, arrGOP2, arrGOP3);
		break;
	}

}

function buildoutput(currentTime, arrRace, arrGOP1, arrGOP2) {
	
		strOutput = arrRace[0] + "<br/>Date of Race: "+ currentTime + "<br/><table cellpadding='2' border='0'><tr><td></td><td></td><td></td><td align='right'>Dels</td></tr><tr><td>" + arrGOP1[3] + "</td><td>" + arrGOP1[0] + "</td><td align='right'>" + arrGOP1[1] + "%</td><td align='right'>" + arrGOP1[2] + "</td></tr><tr><td>" + arrGOP2[3] + "</td><td>" + arrGOP2[0] + "</td><td align='right'>" + arrGOP2[1] + "%</td><td align='right'>" + arrGOP2[2] + "</td></tr></table>";
		return strOutput;
		
		
}
function buildoutput2(currentTime, arrRace, arrGOP1, arrGOP2, arrGOP3) {
	
		strOutput = arrRace[0] + "<br/>Date of Race: "+ currentTime + "<br/><table cellpadding='2' border='0'><tr><td></td><td></td><td></td><td align='right'>Dels</td></tr><tr><td>" + arrGOP1[3] + "</td><td>" + arrGOP1[0] + "</td><td align='right'>" + arrGOP1[1] + "%</td><td align='right'>" + arrGOP1[2] + "</td></tr><tr><td>" + arrGOP2[3] + "</td><td>" + arrGOP2[0] + "</td><td align='right'>" + arrGOP2[1] + "%</td><td align='right'>" + arrGOP2[2] + "</td></tr><tr><td>" + arrGOP3[3] + "</td><td>" + arrGOP3[0] + "</td><td align='right'>" + arrGOP3[1] + "%</td><td align='right'>" + arrGOP3[2] + "</td></tr></table>";
		return strOutput;
		
		
}
function buildoutput3(currentTime, arrRace, arrGOP1) {
	
		strOutput = arrRace[0] + "<br/>Date of Race: "+ currentTime + "<br/><table cellpadding='2' border='0'><tr><td></td><td></td><td></td><td align='right'>Dels</td></tr><tr><td>" + arrGOP1[3] + "</td><td>" + arrGOP1[0] + "</td><td align='right'>" + arrGOP1[1] + "%</td><td align='right'>" + arrGOP1[2] + "</td></tr></table>";
		return strOutput;
		
		
}
function buildoutputCURRENT(currentTime, arrRace, arrGOP1, arrGOP2) {
	
		strOutput = arrRace[0] + "<br/>Last Updated: "+ currentTime + "<br/>" +  "Reporting:" + arrRace[1] + "%<br/>Delegates: " + arrRace[2] + "<br/><table cellpadding='2' border='0'><tr><td></td><td></td><td></td><td align='right'>Dels</td></tr><tr><td>" + arrGOP1[3] + "</td><td>" + arrGOP1[0] + "</td><td align='right'>" + arrGOP1[1] + "%</td><td align='right'>" + arrGOP1[2] + "</td></tr><tr><td>" + arrGOP2[3] + "</td><td>" + arrGOP2[0] + "</td><td align='right'>" + arrGOP2[1] + "%</td><td align='right'>" + arrGOP2[2] + "</td></tr></table>";
		return strOutput;
		
		
}
function buildoutputCURRENT2(currentTime, arrRace, arrGOP1) {
	
		strOutput = arrRace[0] + "<br/>Last Updated: "+ currentTime + "<br/>" +  "Reporting:" + arrRace[1] + "%<br/>Delegates: " + arrRace[2] + "<br/><table cellpadding='2' border='0'><tr><td></td><td></td><td></td><td align='right'>Dels</td></tr><tr><td>" + arrGOP1[3] + "</td><td>" + arrGOP1[0] + "</td><td align='right'>" + arrGOP1[1] + "%</td><td align='right'>" + arrGOP1[2] + "</td></tr></table>";
		return strOutput;
		
		
}

function buildoutputFUTURE(currentTime, arrRace) {
	
		strOutput = arrRace[0] + "<br/>Date of Race: "+ currentTime + "<br/>Pledged Delegates: " + arrRace[2] + "<br/>";
		return strOutput;
		
		
}
