
function goState(state) {
	var pubid = "";

	if (state == 'AK') {
		pubid = 112374;
	}
	if (state == 'AL') {
		pubid = 112455;
	}
	if (state == 'AR') {
		pubid = 112456;
	}
	if (state == 'AZ') {
		pubid = 112457;
	}
	if (state == 'CA') {
		pubid = 112339;
	}
	if (state == 'CO') {
		pubid = 112461;
	}
	if (state == 'CT') {
		pubid = 112462;
	}
	if (state == 'DC') {
		pubid = 112463;
	}
	if (state == 'DE') {
		pubid = 112467;
	}
	if (state == 'FL') {
		pubid = 112468;
	}
	if (state == 'GA') {
		pubid = 112473;
	}
	if (state == 'HI') {
		pubid = 112474;
	}
	if (state == 'IA') {
		pubid = 112475;
	}
	if (state == 'ID') {
		pubid = 112479;
	}
	if (state == 'IL') {
		pubid = 112480;
	}
	if (state == 'IN') {
		pubid = 112481;
	}
	if (state == 'KS') {
		pubid = 112485;
	}
	if (state == 'KY') {
		pubid = 112486;
	}
	if (state == 'LA') {
		pubid = 112482;
	}
	if (state == 'MA') {
		pubid = 112448;
	}
	if (state == 'MD') {
		pubid = 112483;
	}
	if (state == 'ME') {
		pubid = 112484;
	}
	if (state == 'MI') {
		pubid = 112487;
	}
	if (state == 'MN') {
		pubid = 112488;
	}
	if (state == 'MO') {
		pubid = 112489;
	}
	if (state == 'MS') {
		pubid = 112476;
	}
	if (state == 'MT') {
		pubid = 112477;
	}
	if (state == 'NC') {
		pubid = 112478;
	}
	if (state == 'ND') {
		pubid = 112470;
	}
	if (state == 'NE') {
		pubid = 112471;
	}
	if (state == 'NH') {
		pubid = 112472;
	}
	if (state == 'NJ') {
		pubid = 112464;
	}
	if (state == 'NM') {
		pubid = 112465;
	}
	if (state == 'NV') {
		pubid = 112466;
	}
	if (state == 'NY') {
		pubid = 112458;
	}
	if (state == 'OH') {
		pubid = 112459;
	}
	if (state == 'OK') {
		pubid = 112460;
	}
	if (state == 'OR') {
		pubid = 112452;
	}
	if (state == 'PA') {
		pubid = 112453;
	}
	if (state == 'RI') {
		pubid = 112454;
	}
	if (state == 'SC') {
		pubid = 112449;
	}
	if (state == 'SD') {
		pubid = 112450;
	}
	if (state == 'TN') {
		pubid = 112443;
	}
	if (state == 'TX') {
		pubid = 112444;
	}
	if (state == 'UT') {
		pubid = 112446;
	}
	if (state == 'VA') {
		pubid = 112447;
	}
	if (state == 'VT') {
		pubid = 112469;
	}
	if (state == 'WA') {
		pubid = 112375;
	}
	if (state == 'WI') {
		pubid = 112376;
	}
	if (state == 'WV') {
		pubid = 112377;
	}
	if (state == 'WY') {
		pubid = 112378;
	}
	if (pubid != "") {
		window.location = "/story/0,2933," + pubid + ",00.html?currState=" + state + "#main";
	} else {
		alert ('No state recognized.');
	}
}
var map = "";
map += '<table width="100%" cellspacing=0 cellpadding=0 border="0" style="z-index: 10;">';
map += '<tr><td valign=top style="padding: 0px,15px,0px,0px;" class=storytext>';
map += 'Click on your state to find a radio station broadcasting "Brian &amp; The Judge" near your hometown.';
map += '<a name="main">&nbsp;</a>';
if (browser != 'IE') {
	hasRightVersion = false;
}
map += '</td><td valign=top style="z-index: 5;">';
if(hasRightVersion) {
//var append = "";
append = window.location.search;
//append = "?currState=KS";
//isMac = (navigator.appVersion.indexOf("Mac")!=-1);
isMacNN = ((navigator.appVersion.indexOf("Mac")!=-1) &&
           ((browser == "NN4") || (browser == "NN6")));

map += '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
map += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ';
map += 'WIDTH="330" HEIGHT="230" id="map" ALIGN=""> ';

map += '<param name="Movie" value="/tonysnowradio/stationfinder/map.swf' + append + '"> ';
map += '<param name="Src" value="/tonysnowradio/stationfinder/map.swf' + append + '">';
map += '<param name="Quality" value="High"> ';

if (!isMacNN)
	map += '<param name="WMode" value="Transparent"> ';

map += '<param name="Menu" value="-1"> ';
map += '<embed src="/tonysnowradio/stationfinder/map.swf' + append + '" ';

if (!isMacNN)
	map += 'wmode="transparent" '

map += 'quality="high" menu="false" WIDTH="330" HEIGHT="230" NAME="map" ';
map += 'TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> ';
map += '</embed> ';
map += '</OBJECT> ';
} else { 
	map += '<img src="/tonysnowradio/images/us_map.gif" border=0 usemap="#usMAP">';
map += '<MAP NAME="usMAP">';
map += '<area shape=poly COORDS="264,157,286,155,292,193,276,195,270,199,264,157" href="javascript:goState(\'AL\');">';
map += '<area shape=poly COORDS="28,197,46,185,72,199,72,241,88,243,102,261,92,263,70,241,42,243,28,257,12,259,34,243,20,233,16,223,34,215,22,207,30,205,28,197" href="javascript:goState(\'AK\');">';
map += '<area shape=poly COORDS="70,137,106,137,100,189,84,187,60,173,70,133,70,137,70,137" href="javascript:goState(\'AZ\');">';
map += '<area shape=poly COORDS="250,153,242,179,220,177,218,171,216,145,252,143,250,155,250,153" href="javascript:goState(\'AR\');">';
map += '<area shape=poly COORDS="10,79,38,81,30,109,62,151,56,173,40,169,20,145,4,101,10,75,26,79,10,79,10,79" href="javascript:goState(\'CA\');">';
map += '<area shape=poly COORDS="108,103,158,107,154,141,104,137,110,101,128,103,108,103" href="javascript:goState(\'CO\');">';
map += '<area shape=poly COORDS="374,107,405,105,405,123,372,125,374,107" href="javascript:goState(\'CT\');">';
map += '<area shape=poly COORDS="370,143,402,145,405,157,362,157,370,143" href="javascript:goState(\'DE\');">';
map += '<area shape=poly COORDS="275,193,325,187,327,197,341,219,341,233,335,237,317,215,315,205,307,195,293,203,275,193" href="javascript:goState(\'FL\');">';
map += '<area shape=poly COORDS="297,153,283,155,297,191,321,189,321,169,297,153" href="javascript:goState(\'GA\');">';
map += '<area shape=poly COORDS="98,233,142,263,156,251,162,239,164,229,136,231,94,221,100,235,98,233" href="javascript:goState(\'HI\');">';
map += '<area shape=poly COORDS="68,21,76,21,72,35,80,47,80,55,84,65,100,69,94,93,56,83,66,51,70,19,68,21" href="javascript:goState(\'ID\');">';
map += '<area shape=poly COORDS="242,91,258,89,266,123,256,139,234,109,248,87,242,91" href="javascript:goState(\'IL\');">';
map += '<area shape=poly COORDS="261,95,265,123,265,131,285,117,277,91,261,95" href="javascript:goState(\'IN\');">';
map += '<area shape=poly COORDS="198,87,206,111,232,109,240,99,240,91,232,79,198,87" href="javascript:goState(\'IA\');">';
map += '<area shape=poly COORDS="158,111,158,135,214,139,214,127,208,113,158,111" href="javascript:goState(\'KS\');">';
map += '<area shape=poly COORDS="263,133,275,129,289,115,303,121,307,129,299,135,251,141,269,131,263,133" href="javascript:goState(\'KY\');">';
map += '<area shape=poly COORDS="222,179,246,179,244,197,258,193,262,213,226,209,224,177,222,179" href="javascript:goState(\'LA\');">';
map += '<area shape=poly COORDS="363,37,373,59,373,47,387,31,377,9,365,15,363,37" href="javascript:goState(\'ME\');">';
map += '<area shape=poly COORDS="376,159,405,159,405,175,374,177,376,159" href="javascript:goState(\'MD\');">';
map += '<area shape=poly COORDS="378,74,380,88,404,88,404,72,378,74" href="javascript:goState(\'MA\');">';
map += '<area shape=poly COORDS="265,73,269,83,265,93,293,91,295,71,281,53,271,53,267,69,265,73,265,73" href="javascript:goState(\'MI\');">';
map += '<area shape=poly COORDS="194,31,222,33,242,35,224,51,222,63,222,73,234,79,196,85,194,31" href="javascript:goState(\'MN\');">';
map += '<area shape=poly COORDS="265,159,271,199,257,201,259,195,241,197,251,155,265,159" href="javascript:goState(\'MS\');">';
map += '<area shape=poly COORDS="206,113,234,111,256,139,248,147,214,145,208,111,206,113" href="javascript:goState(\'MO\');">';
map += '<area shape=poly COORDS="78,23,148,31,146,67,84,63,78,35,80,19,78,23" href="javascript:goState(\'MT\');">';
map += '<area shape=poly COORDS="146,85,148,103,158,105,164,109,206,109,198,85,144,87,146,85" href="javascript:goState(\'NE\');">';
map += '<area shape=poly COORDS="40,83,76,87,64,151,32,109,40,83,40,83" href="javascript:goState(\'NV\');">';
map += '<area shape=poly COORDS="298,11,330,9,330,25,298,25,298,11" href="javascript:goState(\'NH\');">';
map += '<area shape=poly COORDS="372,127,404,125,405,141,368,139,376,125,372,127" href="javascript:goState(\'NJ\');">';
map += '<area shape=poly COORDS="106,137,100,191,122,187,148,187,150,139,106,137,106,137" href="javascript:goState(\'NM\');">';
map += '<area shape=poly COORDS="313,79,331,63,337,45,349,45,359,65,357,79,345,65,315,77,313,79,313,79" href="javascript:goState(\'NY\');">';
map += '<area shape=poly COORDS="309,137,295,151,319,149,337,153,357,131,351,129,309,137,309,137" href="javascript:goState(\'NC\');">';
map += '<area shape=poly COORDS="146,31,148,57,198,57,190,31,146,31,146,31" href="javascript:goState(\'ND\');">';
map += '<area shape=poly COORDS="281,93,285,113,299,121,311,101,309,85,299,93,281,93,281,93" href="javascript:goState(\'OH\');">';
map += '<area shape=poly COORDS="148,145,174,145,174,163,218,171,216,143,150,139,150,145,156,143,148,145,148,145" href="javascript:goState(\'OK\');">';
map += '<area shape=poly COORDS="20,41,8,73,16,77,22,77,28,77,36,79,42,81,48,83,56,83,66,49,20,41,20,41" href="javascript:goState(\'OR\');">';
map += '<area shape=poly COORDS="309,83,345,71,351,93,313,105,309,83,309,83" href="javascript:goState(\'PA\');">';
map += '<area shape=poly COORDS="376,93,405,93,405,107,376,105,376,93" href="javascript:goState(\'RI\');">';
map += '<area shape=poly COORDS="301,155,321,149,337,155,325,175,301,157,301,155,301,155" href="javascript:goState(\'SC\');">';
map += '<area shape=poly COORDS="146,59,198,61,198,83,146,83,148,57,146,59,146,59" href="javascript:goState(\'SD\');">';
map += '<area shape=poly COORDS="255,145,251,157,297,153,311,133,255,145,255,145" href="javascript:goState(\'TN\');">';
map += '<area shape=poly COORDS="150,145,172,145,174,167,198,173,218,173,228,207,204,221,198,231,202,247,180,241,154,207,146,219,120,189,154,189,152,145,150,145,150,145" href="javascript:goState(\'TX\');">';
map += '<area shape=poly COORDS="78,89,96,91,96,103,110,103,106,135,70,133,78,89,78,89" href="javascript:goState(\'UT\');">';
map += '<area shape=poly COORDS="298,29,332,29,332,47,294,45,298,29" href="javascript:goState(\'VT\');">';
map += '<area shape=poly COORDS="307,127,297,137,351,127,349,113,341,111,341,105,329,107,315,131,307,127,307,127" href="javascript:goState(\'VA\');">';
map += '<area shape=poly COORDS="32,13,68,19,64,47,20,39,20,13,30,19,32,13,32,13" href="javascript:goState(\'WA\');">';
map += '<area shape=poly COORDS="303,119,313,129,329,103,311,105,299,121,313,127,303,119,303,119" href="javascript:goState(\'WV\');">';
map += '<area shape=poly COORDS="228,51,256,55,254,89,238,89,234,77,224,71,230,49,236,53,228,51,228,51" href="javascript:goState(\'WI\');">';
map += '<area shape=poly COORDS="146,71,144,103,96,99,102,63,148,69,146,71,146,71" href="javascript:goState(\'WY\');">';
map += '<area alt="" coords="381,179,404,193" href="javascript:goState(\'DC\');">';
map += '</MAP>';
}
map += '</td></tr>';
map += '</table>';
document.writeln (map);
