CINXE.COM

Our Campaigns - IL US President Race - Nov 08, 1932

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <html> <head><BASE HREF="https://www.ourcampaigns.com/"> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>Our Campaigns - IL US President Race - Nov 08, 1932</title> <link rel="shortcut icon" href="/favicon.ico" > <link rel="stylesheet" href="/js/leaflet/leaflet.css" /> <script src="/js/leaflet/leaflet.js"></script> <script src="js/mapfunctions.js" type="text/javascript" charset="utf-8"></script> <!--[if IE]><script type="text/javascript" src="https://www.ourcampaigns.com/excanvas.js"></script><![endif]--> </head> <style type="text/css"> <!-- .Text1 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #330000} .Text1Y { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #660000} .TextY1 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #EEEEEE} .TextY1Y { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #660000} .Text2 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #ffff00} .Headline1 { font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #ffffff} .Headline2 { font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #ffffff} .Small1 { font-family: Arial, Helvetica, sans-serif; font-size: 10px; color: #330000} td { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #330000} a { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #330000} body { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #330000} .infotable {border:1px solid black;border-color:black white white black;border-radius:8px;background-color:#993333;width:100%;margin:0;padding:0;border-spacing:0px;} .infotable tr th {font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:normal;color:#ffffff;text-align:left;margin:0;padding:4px;} .infotable tr td {border-spacing:0;margin:0;padding:2px;border-color:#6084C8;} .HeadlineBig { font-family: Arial, Helvetica, sans-serif; font-size: 35px; color: #ffffff} .MainHeaderBar { font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #ffffff; background-color: #993333} .SubHeaderBar { font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #ffffff; background-color: #333366} .SubHeaderBar td { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #ffffff; background-color: #333366; text-align:center; } .Switch0 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #330000; background-color: #6084C8} .Switch1 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #330000; background-color: #7094D8} .Quoted { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style:italic; color: #000000; background-color: #80A4E8; border: 1px dashed #000000; padding:4px;} .maprestbl { border:thin solid black; } .maprestbl td { font-size:8px; border-bottom: thin solid black; padding:0px; margin:0px; border-spacing:0px;} .gm-style .gm-style-iw, .gm-style .gm-style-iw a, .gm-style .gm-style-iw span, .gm-style .gm-style-iw label, .gm-style .gm-style-iw div { font-size: 8px; font-weight: 300; } --> </style> <body bgcolor="#6084C8" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="drawPollGraph();drawLeanGraph();pageLoaded();"> <script language="JavaScript"> <!-- var dylasty=0; var isdy=false; var lastyr=0; function DYDown(fld,e) { dylasty=e.clientY; lastyr=parseInt(fld.value); isdy=true; } function DYMove(fld,e) { if (isdy) { fld.value=String(lastyr-(e.clientY-dylasty)); } } function DYUp(fld,e) { isdy=false; } //--> </script> <script src="ajax.js" type="text/javascript" charset="utf-8"></script> <link rel="stylesheet" href="//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css"> <script type="text/javascript" src="//code.jquery.com/jquery-1.10.2.js"></script> <script type="text/javascript" src="//code.jquery.com/ui/1.11.2/jquery-ui.js"></script> <script type="text/javascript" src="/js/jquery.tablesorter.min.js"></script> <script>window.twttr = (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0], t = window.twttr || {}; if (d.getElementById(id)) return t; js = d.createElement(s); js.id = id; js.src = "https://platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs); t._e = []; t.ready = function(f) { t._e.push(f); }; return t; }(document, "script", "twitter-wjs"));</script> <script> $( function() { $('.datepicker').change(function() { var id=$(this).attr('id').slice(0,-3); var newdate=$('#'+id+'_DP').val(); $('input[name="'+id+'_year"]').val(newdate.substr(0,4)); $('select[name="'+id+'_month"]').val(newdate.substr(5,2)); $('select[name="'+id+'_day"]').val(newdate.substr(8,2)); }); $('.datepicker').datepicker({ showOn: "button", buttonImage: "/images/calendar.gif", buttonImageOnly: true, buttonText: "Select date", dateFormat: "yy-mm-dd", beforeShow: DPSetFromDate }); $('.datepicker2').change(function() { var id=$(this).attr('id').slice(0,-3); var newdate=$('#'+id+'_DP').val(); $('input[name="'+id+'_year"]').val(newdate.substr(0,4)); $('input[name="'+id+'_month"]').val(newdate.substr(5,2)); $('input[name="'+id+'_day"]').val(newdate.substr(8,2)); }); $('.datepicker2').datepicker({ showOn: "button", buttonImage: "/images/calendar.gif", buttonImageOnly: true, buttonText: "Select date", dateFormat: "yy-mm-dd", beforeShow: DPSetFromDate2 }); } ); function DPSetFromDate(input, inst) { var id=inst.id.slice(0,-3); $('#'+id+'_DP').val($('input[name="'+id+'_year"]').val()+'-'+$('select[name="'+id+'_month"]').val()+'-'+$('select[name="'+id+'_day"]').val()); } function DPSetFromDate2(input, inst) { var id=inst.id.slice(0,-3); $('#'+id+'_DP').val($('input[name="'+id+'_year"]').val()+'-'+$('input[name="'+id+'_month"]').val()+'-'+$('input[name="'+id+'_day"]').val()); } function NowDateInfo() { alert('This date is a virtual time machine which makes the site display in most cases as if the day was actually the date set. For instance, setting it to July 4, 1800 and going to the US container would show the President as John Adams and the 16 states and two territories.'); } function AdjustIFrame(frame) { var maxW = frame.scrollWidth; var minW = maxW; var FrameH = 100; //IFrame starting height frame.style.height = FrameH + "px" while (minW == maxW && FrameH < 800) { FrameH = FrameH + 50; //Increment frame.style.height = FrameH + "px"; minW = frame.scrollWidth; } } </script> <map name="nav"> <area shape="poly" coords="8,87,6,75,44,65,47,77" href="home.html" alt="Home"> <area shape="poly" coords="52,75,50,64,89,60,91,72" href="about.html" alt="About"> <area shape="poly" coords="95,73,95,60,128,61,129,73" href="javascript:popChat()" alt="Chat"> <area shape="poly" coords="133,73,135,60,171,64,172,76" href="UserList.html" alt="Users"> <area shape="poly" coords="206,78,208,68,251,72,249,83" href="IssueDetail.html?IssueID=1" alt="Issues"> <area shape="poly" coords="252,83,255,72,297,75,298,86" href="PartyList.html" alt="Party"> <area shape="poly" coords="301,86,301,75,368,77,369,88" href="CandidateList.html" alt="Candidates"> <area shape="poly" coords="374,88,372,77,430,74,432,85" href="PollingFirmList.html" alt="Polling Firms"> <area shape="poly" coords="434,86,434,74,471,69,472,82" href="MediaList.html" alt="Media"> <area shape="poly" coords="474,82,473,70,507,66,509,78" href="NewsList.html" alt="News"> <area shape="poly" coords="510,78,509,65,538,64,539,77" href="PollList.html" alt="Polls"> <area shape="poly" coords="16,97,13,87,68,76,70,88" href="Calendar.html" alt="Calendar"> <area shape="poly" coords="74,88,73,75,141,75,141,87" href="KeyRaceList.html" alt="Key Races"> <area shape="poly" coords="145,87,145,76,226,82,226,93" href="ContainerDetail.html?ContainerID=1" alt="United States"> <area shape="poly" coords="230,94,231,83,291,87,290,98" href="PresidentList.html" alt="President"> <area shape="poly" coords="294,98,295,87,339,89,340,99" href="SenateList.html" alt="Senate"> <area shape="poly" coords="343,98,344,89,384,89,386,98" href="HouseList.html" alt="House"> <area shape="poly" coords="389,99,390,89,453,85,455,96" href="StateOfficeList.html" alt="Governors"> <area shape="poly" coords="458,96,456,85,534,78,535,91" href="CountryList.html" alt="International"> <area shape="default" href="home.html"> </map> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <td align="left" width="539"><a href="home.html"><img src="images/NewHeader.gif" border="0" usemap="#nav" width="539" height="120"></a></td> <td background="images/NewHeaderBack.gif" align="right" width="100%" valign="top"><img src="images/spacer.gif" width="180" height="1"><br> <div style="position: absolute; top:4; right:8"> <form name="dateForm" method="post" action="RaceDetail.html?SetNow=Y&RaceID=2910"><input type="button" value="?" onclick="NowDateInfo()"> <select name="NowDate_month" class="Text1"> <option value="00">--</option> <option value="01">Jan</option><option value="02">Feb</option><option value="03">Mar</option><option value="04">Apr</option><option value="05">May</option><option value="06">Jun</option><option value="07">Jul</option><option value="08">Aug</option><option value="09">Sep</option><option value="10">Oct</option><option value="11" SELECTED>Nov</option><option value="12">Dec</option></select> <select name="NowDate_day" class="Text1"> <option value="00">--</option> <option>01</option><option>02</option><option>03</option><option>04</option><option>05</option><option>06</option><option>07</option><option>08</option><option>09</option><option>10</option><option>11</option><option>12</option><option>13</option><option>14</option><option>15</option><option>16</option><option>17</option><option>18</option><option>19</option><option>20</option><option>21</option><option>22</option><option>23</option><option SELECTED>24</option><option>25</option><option>26</option><option>27</option><option>28</option><option>29</option><option>30</option><option>31</option></select> <input type="text" name="NowDate_year" size="5" maxlength="4" value="2024" onMouseDown="DYDown(this,event)" onMouseUp="DYUp(this,event)" onMouseMove="DYMove(this,event)"> <input type="submit" value="Set" class="Small1"></form> </div> <div style="position: absolute; top:35; right:8"> <form name="searchForm" method="post" action="SearchResults.html"><input type="text" name="SrchTxt" size="15" class="Small1"><input type="submit" value="Search" class="Small1"></form> </div> <div style="position: absolute; top:63; right:8"> <a href="newaccountStep1.html" class="Text2">New User Account</a> </div> </td> </tr> </table> <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%"><tr> <td class="Text1" valign="top" align="center"> <table border="0" cellspacing="0" cellpadding="0" width="95%"><tr> <td align="left"> </td> <td align="right" class="Headline1"><i>&quot;A comprehensive, collaborative elections resource.&quot;&nbsp;</i><br></td> </tr></table> <div align="right" class="Headline1"> <form method="POST" action="home.php"><input type="hidden" name="LogIn" value="Y"> Email:<input type="text" name="Username" size="10" class="Text1" value=""> Password:<input type="password" name="PWord" size="10" class="Text1"> <input type="submit" value="Login" class="Text1"> </form> </div> <br> <div class="Headline1" align="left"><font size="+3">&nbsp;&nbsp;IL US President</font></div> <table border="0" width="90%"><tr><td valign="top" class="Text1"> <style> .endorsediv { max-height:80px;overflow-y:auto; } </style> <script> function descriptionL(b) { if (b==0) { document.getElementById('DesShort').style.display='block'; document.getElementById('DesLong').style.display='none'; } else { document.getElementById('DesShort').style.display='none'; document.getElementById('DesLong').style.display='block'; } } var endorseall=false; function showAllEndorse() { if (endorseall) { jQuery('.endorsediv').css('max-height','80px'); endorseall=false; } else { jQuery('.endorsediv').css('max-height'); endorseall=true; } } </script> <table border="0" width="100%"><tr><td valign="top"> <table class="infotable" cellspacing="0" cellpadding="0" width="100%"> <tr bgcolor="#993333"><td colspan="2"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr> <td width="42"></td> <td class="Headline1" align="center">RACE DETAILS</td> <td width="42"></td></tr></table></td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Parents</td><td class="Switch0"> &gt; <a href="ContainerDetail.html?ContainerID=1" class="Text1">United States</a> &gt; <a href="ContainerDetail.html?ContainerID=30" class="Text1">Illinois</a> &gt; <a href="ContainerDetail.html?ContainerID=98" class="Text1">President</a> </td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Parent Race</td><td class="Switch0"><a href="RaceDetail.html?RaceID=1949" class="Text1">US President National Vote</a></td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Office</td><td class="Switch0">President </td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Honorific</td><td class="Switch0">President - Abbr: President</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Type</td><td class="Switch0"> General Election</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Filing Deadline</td><td class="Switch0"> June 01, 1932 - 12:00pm Central</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Polls Open</td><td class="Switch0"> November 08, 1932 - 06:00am Central</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Polls Close</td><td class="Switch0"> November 08, 1932 - 11:00pm Central</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Term Start</td><td class="Switch0"> March 04, 1933 - 12:00am</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Term End</td><td class="Switch0"> January 20, 1937 - 12:00pm</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Contributor</td><td class="Switch0"><a href="UserDetail.html?UserID=240" class="Text1">Wishful Thinking</a></td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Last Modified</td><td class="Switch0"><a href="UserDetail.html?UserID=1989" class="Text1">RBH</a> April 15, 2021 01:48am</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Data Sources</td><td class="Switch0"></td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Description</td><td class="Switch0"> </td></tr> </table> <table class="infotable" cellspacing="0" cellpadding="0" width="100%"> <tr><td bgcolor="#993333" align="center" class="Headline1" colspan="5">LAST GENERAL ELECTION</td></tr> <tr><td rowspan="3" class="Switch0" align="center">&nbsp;<img src="../images/candidates/b4/C4054D1928-01-01.jpg" height="75"></td> <td bgcolor="#333366" align="right" class="Headline1">Party</td><td bgcolor="#FF0000"><a href="PartyDetail.html?PartyID=2" class="Headline1">Republican</a></td> <td bgcolor="#333366" align="right" class="Headline1">Won</td><td class="Switch0"><a href="RaceDetail.html?RaceID=2964" class="Text1">11/06/1928</a></td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Name</td><td class="Switch0"><a href="CandidateDetail.html?CandidateID=4054" class="Text1">Herbert C. Hoover</a></td> <td bgcolor="#333366" align="right" class="Headline1">Votes</td><td class="Switch0">1,769,141 (56.93%)</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Term</td><td class="Switch0">03/04/1929&nbsp;- 03/04/1933</td> <td bgcolor="#333366" align="right" class="Headline1">Margin</td><td class="Switch0">455,324 (+14.65%)</td></tr> </table> <table class="infotable" cellspacing="0" cellpadding="0" width="100%"> <tr><td bgcolor="#993333" align="center" class="Headline1" colspan="5">NEXT GENERAL ELECTION</td></tr> <tr><td rowspan="3" class="Switch0" align="center">&nbsp;<img src="../images/candidates/b4/C4049D1933-01-01.jpg" height="75"></td> <td bgcolor="#333366" align="right" class="Headline1">Party</td><td bgcolor="#0000FF"><a href="PartyDetail.html?PartyID=" class="Headline1">Democratic</a></td> <td bgcolor="#333366" align="right" class="Headline1">Won</td><td class="Switch0"><a href="RaceDetail.html?RaceID=2863" class="Text1">11/03/1936</a></td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Name</td><td class="Switch0"><a href="CandidateDetail.html?CandidateID=4049" class="Text1">Franklin D. Roosevelt</a></td> <td bgcolor="#333366" align="right" class="Headline1">Votes</td><td class="Switch0">2,282,999 (57.70%)</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Term</td><td class="Switch0">01/20/1937&nbsp;- 01/20/1941</td> <td bgcolor="#333366" align="right" class="Headline1">Margin</td><td class="Switch0">712,606 (+18.01%)</td></tr> </table> <table class="infotable" cellspacing="0" cellpadding="0" width="100%"> <tr><td bgcolor="#993333" align="center" class="Headline1" colspan="3">PRIMARY/OTHER SCHEDULE</td></tr> <tr bgcolor="#7094D8" valign="top"> <td class="Switch0">Apr 13, 1932</td> <td class="Switch0"><a href="RaceDetail.html?RaceID=35482" class="Text1">IL US President - R Primary</a></td> <td class="Switch0"><div class="endorsediv"> Joseph I. France </div></td> <td><table border="1"><tr> <td><span style="background-color:#FF0000">R</span> 347,602</td> </tr></table></td> </tr> <tr bgcolor="#6084C8" valign="top"> <td class="Switch0">Apr 13, 1932</td> <td class="Switch0"><a href="RaceDetail.html?RaceID=35483" class="Text1">IL US President - D Primary</a></td> <td class="Switch0"><div class="endorsediv"> James Hamilton Lewis </div></td> <td><table border="1"><tr> <td><span style="background-color:#0000FF">D</span> 591,552</td> </tr></table></td> </tr> </table> </td><td valign="top" align="right" class="Text1" style="width:50%;"> <script> function showMapEmbed() { mpe=document.getElementById('MapEmbedDiv'); if (mpe.style.display=='block') { mpe.style.display='none'; } else { mpe.style.display='block'; } } function hideMapEmbed() { document.getElementById('MapEmbedDiv').style.display='none'; } function raceDataDownload() { var dsel=document.getElementById('ViewMap'); var dtype=dsel.options[dsel.selectedIndex].value; document.location.href='/RaceDownload.php?RaceID=2910&DType='+dtype; } </script> <table class="infotable" cellspacing="0" cellpadding="0" width="100%"> <tr bgcolor="#993333"><td colspan="2"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="42"><img src="../images/spacer.gif" width="40" height="15"></td> <td class="Headline1" align="center">MAP</td> <td width="42"></td></tr></table></td></tr> <tr><td colspan="3" class="Switch0" align="center" style="border-radius:8px;"><div id="SubMaps"> <div id="map_canvas10834" style="width:100%; height:300px;"></div> <div id="map_canvas527095" style="width:100%; height:300px;display:none;"></div> </div> <div id="MapLocDetails" style="display:none;width:100%;"></div> <select id="ViewMap" onChange="viewMapChange()"> <option value="V10834">IL Counties - Vector</option> </select><br> <script> $(function() { $( "#curveslider" ).slider({ value: 35, change: function( event, ui ) { changeMapCurveBitmap(); }, slide: function( event, ui ) { changeMapCurve(); } }); }); </script> <div style="width:310px;color:white;margin: 6px 0;">Curve <div id="curveslider" style="width:250px;float:right;"></div></div> <select id="WhichMap" onChange="changeMapType()"> <option value="vs">Vote Margin</option> <option value="vm">Vote Margin %</option> <option value="vp">Winner %</option> <option value="vx">Colormix</option> <option value="bm">Bubblemap Margin</option> <option value="bv">Bubblemap Votes</option> <option value="vd">% Change</option> <option value="vn">Deviation</option> <option value="vl">OC Lean</option> <option value="dr">Demographic</option> <option value="vt">Total Votes</option> </select> <input type="hidden" name="MapCompareOffice" id="MapCompareOffice" value=""> <input type="hidden" name="MapCompareDate" id="MapCompareDate" value=""> <div id="CompareOfficePopup" style="display:none;position:absolute;width:34%;left:55%;height:300px;z-index:30;background-color:white;overflow-y:scroll;border:3px solid blue;"></div> <input type="button" id="MapCandidatesButton" value="+Candidates" onclick="checkCandidatesPanel()"> <a href="javascript:showMapEmbed()">Embed Code</a> <a href="javascript:raceDataDownload()">Data</a><br> <input type="button" id="CompareOfficeChange" value="Change" onclick="compareOfficesLoad()" style="display:none;"> <select id="SelDemographic" onchange="changeMapType()" style="display:none;"> <option>Race: American Indian and Alaska Native</option> <option>Race: Asian</option> <option>Race: Black or African American</option> <option>Race: Hispanic</option> <option>Race: Pacific Islander</option> <option>Race: Two or More Races</option> <option>Race: White - Non Hispanic</option> <option>Sex: Female</option> <option>Sex: Male</option> </select> <div id="MapCandidatesDiv" style="display:none"><table> <tr><td><input type="checkbox" id="MpCn4049" value="Y" checked="checked" onclick="changeMapType()"></td><td bgcolor="#0000FF">&nbsp;</td><td>Franklin D. Roosevelt</td></tr> <tr><td><input type="checkbox" id="MpCn4054" value="Y" checked="checked" onclick="changeMapType()"></td><td bgcolor="#FF0000">&nbsp;</td><td>Herbert C. Hoover</td></tr> <tr><td><input type="checkbox" id="MpCn4053" value="Y" checked="checked" onclick="changeMapType()"></td><td bgcolor="#F400A1">&nbsp;</td><td>Norman M. Thomas</td></tr> <tr><td><input type="checkbox" id="MpCn4208" value="Y" checked="checked" onclick="changeMapType()"></td><td bgcolor="#BA0000">&nbsp;</td><td>William Z. Foster</td></tr> <tr><td><input type="checkbox" id="MpCn4209" value="Y" checked="checked" onclick="changeMapType()"></td><td bgcolor="#776600">&nbsp;</td><td>William D. Upshaw</td></tr> <tr><td><input type="checkbox" id="MpCn4581" value="Y" checked="checked" onclick="changeMapType()"></td><td bgcolor="#FFC0CB">&nbsp;</td><td>Verne L. Reynolds</td></tr> </table></div> <div id="MapEmbedDiv" style="width:400;height:150;position:absolute;display:none;background-color:#fff;border:thick solid black;"> <br> Copy and paste the line of code below:<br> <br> &lt;iframe src="https://www.ourcampaigns.com/RaceMap.html?RaceID=2910" width="420" height="360"&gt;&lt;/iframe&gt; <br><br><br> <a href="javascript:hideMapEmbed()">Done</a> </div> </td></tr> </table> <script type="text/javascript"> var mpoly=new Array; var mpcid=new Array; var geojsonLayer=new Array; var mnlo=new Array; var mxlo=new Array; var mnlt=new Array; var mxlt=new Array; var lmnlo=new Array; var lmxlo=new Array; var lmnlt=new Array; var lmxlt=new Array; function mq(lat,lon) { return new google.maps.LatLng(lat,lon); } </script> <div id="DynamicJS"> </div> <script type="text/javascript"> var hexA = new Array("0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"); var hexR = {"0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","A":"10","B":"11","C":"12","D":"13","E":"14","F":"15"}; var map; var leafmap=new Array; var clayer=new Array; var demog=new Array; var compare=new Array; var offices=new Array; var officeload=new Array; var racesubs=new Array; var infowindow; var bubbles=new Array; var maxbubble=new Array; var dopoly=new Array; var mpolyo=new Array; var mpolyc=new Array; var mpidd=new Array; var raceid=new Array; var cname=new Array; var canids=new Array; var canname=new Array; var canpic=new Array; var cancolor=new Array; var canpty=new Array; var canpv=new Array; var canptyv=new Array; var canvotes=new Array; var canlon=new Array; var canlat=new Array; var turnover=new Array; var mpcrv=new Array; var mpbcrv=new Array; var mploc=new Array; var subname=new Array; mploc[10834]=new Array(0); var pcolor=''; var curMap=0; var curView=10834; var curType='V'; canids["1"]=4049; canname["4049"]='Franklin D.'+" "+'Roosevelt'; cancolor["4049"]='#0000FF'; canpty["4049"]='1'; canvotes["4049"]='1882304'; canlon["4049"]='-73.9015246'; canlat["4049"]='41.7667602'; canids["2"]=4054; canname["4054"]='Herbert C.'+" "+'Hoover'; cancolor["4054"]='#FF0000'; canpty["4054"]='2'; canvotes["4054"]='1432756'; canlon["4054"]='-122.1694163'; canlat["4054"]='37.4173622'; canids["3"]=4053; canname["4053"]='Norman M.'+" "+'Thomas'; cancolor["4053"]='#F400A1'; canpty["4053"]='9'; canvotes["4053"]='67258'; canlon["4053"]='-74.0059728'; canlat["4053"]='40.7127753'; canids["4"]=4208; canname["4208"]='William Z.'+" "+'Foster'; cancolor["4208"]='#BA0000'; canpty["4208"]='46'; canvotes["4208"]='15582'; canlon["4208"]='0.0000000'; canlat["4208"]='0.0000000'; canids["5"]=4209; canname["4209"]='William D.'+" "+'Upshaw'; cancolor["4209"]='#776600'; canpty["4209"]='38'; canvotes["4209"]='6388'; canlon["4209"]='-84.3879824'; canlat["4209"]='33.7489954'; canids["6"]=4581; canname["4581"]='Verne L.'+" "+'Reynolds'; cancolor["4581"]='#FFC0CB'; canpty["4581"]='97'; canvotes["4581"]='3638'; canlon["4581"]='-74.0059728'; canlat["4581"]='40.7127753'; canname["4053"]='Norman M.'+" "+'Thomas'; canptyv["9"]=4053; canname["4054"]='Herbert C.'+" "+'Hoover'; canptyv["2"]=4054; canname["4055"]='Alfred E.'+" "+'Smith'; canptyv["1"]=4055; canname["4208"]='William Z.'+" "+'Foster'; canptyv["1070"]=4208; canname["4581"]='Verne L.'+" "+'Reynolds'; canptyv["97"]=4581; var canv=new Array; canv[52]=new Array; subname[52]='Cook'; canv[52][4049]=919231; canv[52][4053]=36998; canv[52][4054]=690146; canv[52][4208]=13040; canv[52][4209]=2947; canv[52][4581]=1870; canv[53]=new Array; subname[53]='DuPage'; canv[53][4049]=18547; canv[53][4053]=1364; canv[53][4054]=25758; canv[53][4208]=44; canv[53][4209]=38; canv[53][4581]=58; canv[54]=new Array; subname[54]='Will'; canv[54][4049]=25798; canv[54][4053]=1190; canv[54][4054]=25173; canv[54][4208]=38; canv[54][4209]=26; canv[54][4581]=41; canv[55]=new Array; subname[55]='Lake'; canv[55][4049]=21139; canv[55][4053]=1719; canv[55][4054]=23994; canv[55][4208]=179; canv[55][4209]=29; canv[55][4581]=62; canv[915]=new Array; subname[915]='JoDaviess'; canv[915][4049]=5497; canv[915][4053]=133; canv[915][4054]=4520; canv[915][4208]=2; canv[915][4209]=18; canv[915][4581]=7; canv[916]=new Array; subname[916]='Stephenson'; canv[916][4049]=10728; canv[916][4053]=349; canv[916][4054]=8963; canv[916][4208]=5; canv[916][4209]=140; canv[916][4581]=13; canv[917]=new Array; subname[917]='Winnebago'; canv[917][4049]=17707; canv[917][4053]=1794; canv[917][4054]=26632; canv[917][4208]=294; canv[917][4209]=77; canv[917][4581]=121; canv[918]=new Array; subname[918]='Boone'; canv[918][4049]=2239; canv[918][4053]=75; canv[918][4054]=5244; canv[918][4208]=1; canv[918][4209]=9; canv[918][4581]=7; canv[919]=new Array; subname[919]='McHenry'; canv[919][4049]=8260; canv[919][4053]=431; canv[919][4054]=9880; canv[919][4208]=6; canv[919][4209]=6; canv[919][4581]=11; canv[920]=new Array; subname[920]='Carroll'; canv[920][4049]=3812; canv[920][4053]=84; canv[920][4054]=4571; canv[920][4209]=25; canv[920][4581]=3; canv[921]=new Array; subname[921]='Ogle'; canv[921][4049]=5416; canv[921][4053]=205; canv[921][4054]=8224; canv[921][4208]=5; canv[921][4209]=56; canv[921][4581]=6; canv[922]=new Array; subname[922]='Whiteside'; canv[922][4049]=7010; canv[922][4053]=199; canv[922][4054]=11388; canv[922][4208]=5; canv[922][4209]=18; canv[922][4581]=6; canv[923]=new Array; subname[923]='Lee'; canv[923][4049]=7182; canv[923][4053]=153; canv[923][4054]=7802; canv[923][4208]=2; canv[923][4209]=15; canv[923][4581]=7; canv[924]=new Array; subname[924]='DeKalb'; canv[924][4049]=6923; canv[924][4053]=273; canv[924][4054]=9356; canv[924][4208]=18; canv[924][4209]=14; canv[924][4581]=10; canv[925]=new Array; subname[925]='Kane'; canv[925][4049]=24638; canv[925][4053]=962; canv[925][4054]=32934; canv[925][4208]=58; canv[925][4209]=30; canv[925][4581]=34; canv[926]=new Array; subname[926]='Kendall'; canv[926][4049]=2398; canv[926][4053]=56; canv[926][4054]=2749; canv[926][4209]=6; canv[927]=new Array; subname[927]='Rock Island'; canv[927][4049]=24676; canv[927][4053]=456; canv[927][4054]=21205; canv[927][4208]=137; canv[927][4209]=37; canv[927][4581]=38; canv[928]=new Array; subname[928]='Henry'; canv[928][4049]=10122; canv[928][4053]=637; canv[928][4054]=11376; canv[928][4208]=25; canv[928][4209]=24; canv[928][4581]=15; canv[929]=new Array; subname[929]='Bureau'; canv[929][4049]=10309; canv[929][4053]=187; canv[929][4054]=8721; canv[929][4208]=20; canv[929][4209]=29; canv[929][4581]=14; canv[930]=new Array; subname[930]='LaSalle'; canv[930][4049]=27500; canv[930][4053]=804; canv[930][4054]=19179; canv[930][4208]=41; canv[930][4209]=32; canv[930][4581]=31; canv[931]=new Array; subname[931]='Grundy'; canv[931][4049]=4755; canv[931][4053]=64; canv[931][4054]=4491; canv[931][4208]=2; canv[931][4209]=2; canv[931][4581]=1; canv[932]=new Array; subname[932]='Kankakee'; canv[932][4049]=13555; canv[932][4053]=321; canv[932][4054]=10873; canv[932][4208]=6; canv[932][4209]=27; canv[932][4581]=10; canv[933]=new Array; subname[933]='Iroquois'; canv[933][4049]=9434; canv[933][4053]=138; canv[933][4054]=6303; canv[933][4208]=4; canv[933][4209]=16; canv[933][4581]=3; canv[934]=new Array; subname[934]='Livingston'; canv[934][4049]=10024; canv[934][4053]=113; canv[934][4054]=8403; canv[934][4208]=2; canv[934][4209]=43; canv[934][4581]=4; canv[935]=new Array; subname[935]='Ford'; canv[935][4049]=4175; canv[935][4053]=90; canv[935][4054]=3342; canv[935][4209]=6; canv[935][4581]=3; canv[936]=new Array; subname[936]='McLean'; canv[936][4049]=19535; canv[936][4053]=697; canv[936][4054]=15450; canv[936][4208]=66; canv[936][4209]=116; canv[936][4581]=7; canv[937]=new Array; subname[937]='DeWitt'; canv[937][4049]=5339; canv[937][4053]=97; canv[937][4054]=4207; canv[937][4208]=3; canv[937][4209]=26; canv[937][4581]=1; canv[938]=new Array; subname[938]='Piatt'; canv[938][4049]=4200; canv[938][4053]=45; canv[938][4054]=3179; canv[938][4208]=3; canv[938][4209]=15; canv[938][4581]=1; canv[939]=new Array; subname[939]='Champaign'; canv[939][4049]=16474; canv[939][4053]=499; canv[939][4054]=13995; canv[939][4208]=24; canv[939][4209]=60; canv[939][4581]=18; canv[940]=new Array; subname[940]='Vermilion'; canv[940][4049]=24032; canv[940][4053]=678; canv[940][4054]=15643; canv[940][4208]=121; canv[940][4209]=162; canv[940][4581]=41; canv[941]=new Array; subname[941]='Edgar'; canv[941][4049]=7745; canv[941][4053]=107; canv[941][4054]=5953; canv[941][4208]=7; canv[941][4209]=20; canv[941][4581]=4; canv[942]=new Array; subname[942]='Douglas'; canv[942][4049]=4954; canv[942][4053]=134; canv[942][4054]=3108; canv[942][4208]=4; canv[942][4209]=32; canv[942][4581]=4; canv[943]=new Array; subname[943]='Coles'; canv[943][4049]=11081; canv[943][4053]=116; canv[943][4054]=7313; canv[943][4208]=5; canv[943][4209]=37; canv[943][4581]=7; canv[944]=new Array; subname[944]='Moultrie'; canv[944][4049]=4219; canv[944][4053]=48; canv[944][4054]=2353; canv[944][4208]=1; canv[944][4209]=18; canv[944][4581]=7; canv[945]=new Array; subname[945]='Cumberland'; canv[945][4049]=3128; canv[945][4053]=16; canv[945][4054]=2166; canv[945][4209]=12; canv[945][4581]=2; canv[946]=new Array; subname[946]='Clark'; canv[946][4049]=5659; canv[946][4053]=21; canv[946][4054]=4148; canv[946][4208]=22; canv[946][4209]=28; canv[946][4581]=3; canv[947]=new Array; subname[947]='Crawford'; canv[947][4049]=6081; canv[947][4053]=89; canv[947][4054]=4550; canv[947][4208]=2; canv[947][4209]=66; canv[947][4581]=12; canv[948]=new Array; subname[948]='Wabash'; canv[948][4049]=4280; canv[948][4053]=66; canv[948][4054]=2309; canv[948][4208]=5; canv[948][4209]=33; canv[948][4581]=2; canv[949]=new Array; subname[949]='White'; canv[949][4049]=5909; canv[949][4053]=41; canv[949][4054]=3320; canv[949][4208]=1; canv[949][4209]=24; canv[949][4581]=3; canv[950]=new Array; subname[950]='Gallatin'; canv[950][4049]=3469; canv[950][4053]=39; canv[950][4054]=1279; canv[950][4208]=2; canv[950][4209]=21; canv[950][4581]=3; canv[951]=new Array; subname[951]='Hardin'; canv[951][4049]=1610; canv[951][4053]=43; canv[951][4054]=1559; canv[951][4208]=5; canv[951][4209]=5; canv[951][4581]=1; canv[952]=new Array; subname[952]='Pope'; canv[952][4049]=1697; canv[952][4053]=12; canv[952][4054]=2011; canv[952][4209]=10; canv[952][4581]=2; canv[953]=new Array; subname[953]='Massac'; canv[953][4049]=2593; canv[953][4053]=64; canv[953][4054]=2851; canv[953][4208]=1; canv[953][4209]=14; canv[953][4581]=2; canv[954]=new Array; subname[954]='Johnson'; canv[954][4049]=2387; canv[954][4053]=37; canv[954][4054]=2424; canv[954][4208]=1; canv[954][4209]=9; canv[954][4581]=3; canv[955]=new Array; subname[955]='Saline'; canv[955][4049]=9725; canv[955][4053]=348; canv[955][4054]=6294; canv[955][4208]=34; canv[955][4209]=49; canv[955][4581]=23; canv[956]=new Array; subname[956]='Hamilton'; canv[956][4049]=4059; canv[956][4053]=17; canv[956][4054]=2513; canv[956][4208]=12; canv[956][4209]=9; canv[956][4581]=7; canv[957]=new Array; subname[957]='Edwards'; canv[957][4049]=1956; canv[957][4053]=36; canv[957][4054]=2203; canv[957][4208]=4; canv[957][4209]=14; canv[957][4581]=3; canv[958]=new Array; subname[958]='Wayne'; canv[958][4049]=5488; canv[958][4053]=35; canv[958][4054]=4097; canv[958][4208]=3; canv[958][4209]=26; canv[958][4581]=7; canv[959]=new Array; subname[959]='Richland'; canv[959][4049]=4318; canv[959][4053]=55; canv[959][4054]=2765; canv[959][4208]=2; canv[959][4209]=42; canv[960]=new Array; subname[960]='Clay'; canv[960][4049]=4565; canv[960][4053]=63; canv[960][4054]=3373; canv[960][4208]=4; canv[960][4209]=52; canv[960][4581]=7; canv[961]=new Array; subname[961]='Jasper'; canv[961][4049]=4390; canv[961][4053]=16; canv[961][4054]=2300; canv[961][4208]=1; canv[961][4209]=17; canv[961][4581]=2; canv[962]=new Array; subname[962]='Effingham'; canv[962][4049]=6503; canv[962][4053]=105; canv[962][4054]=2933; canv[962][4208]=3; canv[962][4209]=20; canv[962][4581]=5; canv[963]=new Array; subname[963]='Shelby'; canv[963][4049]=8093; canv[963][4053]=126; canv[963][4054]=4657; canv[963][4208]=3; canv[963][4209]=83; canv[963][4581]=7; canv[964]=new Array; subname[964]='Christian'; canv[964][4049]=11515; canv[964][4053]=542; canv[964][4054]=6096; canv[964][4208]=26; canv[964][4209]=43; canv[964][4581]=20; canv[965]=new Array; subname[965]='Montgomery'; canv[965][4049]=10456; canv[965][4053]=628; canv[965][4054]=5945; canv[965][4208]=18; canv[965][4209]=64; canv[965][4581]=15; canv[966]=new Array; subname[966]='Fayette'; canv[966][4049]=7053; canv[966][4053]=89; canv[966][4054]=5122; canv[966][4208]=3; canv[966][4209]=92; canv[966][4581]=1; canv[967]=new Array; subname[967]='Marion'; canv[967][4049]=10791; canv[967][4053]=217; canv[967][4054]=6276; canv[967][4208]=10; canv[967][4209]=75; canv[967][4581]=11; canv[968]=new Array; subname[968]='Jefferson'; canv[968][4049]=9495; canv[968][4053]=101; canv[968][4054]=5333; canv[968][4208]=9; canv[968][4209]=52; canv[968][4581]=15; canv[969]=new Array; subname[969]='Washington'; canv[969][4049]=4696; canv[969][4053]=117; canv[969][4054]=3076; canv[969][4208]=8; canv[969][4209]=27; canv[969][4581]=2; canv[970]=new Array; subname[970]='Clinton'; canv[970][4049]=7736; canv[970][4053]=169; canv[970][4054]=2548; canv[970][4208]=5; canv[970][4209]=6; canv[970][4581]=2; canv[971]=new Array; subname[971]='Bond'; canv[971][4049]=3630; canv[971][4053]=119; canv[971][4054]=3171; canv[971][4208]=2; canv[971][4209]=29; canv[971][4581]=7; canv[972]=new Array; subname[972]='Madison'; canv[972][4049]=35211; canv[972][4053]=1980; canv[972][4054]=19774; canv[972][4208]=102; canv[972][4209]=53; canv[972][4581]=118; canv[973]=new Array; subname[973]='St. Clair'; canv[973][4049]=47305; canv[973][4053]=2073; canv[973][4054]=22744; canv[973][4208]=254; canv[973][4209]=56; canv[973][4581]=139; canv[974]=new Array; subname[974]='Monroe'; canv[974][4049]=3993; canv[974][4053]=74; canv[974][4054]=2186; canv[974][4209]=4; canv[974][4581]=2; canv[975]=new Array; subname[975]='Randolph'; canv[975][4049]=8634; canv[975][4053]=240; canv[975][4054]=4747; canv[975][4208]=2; canv[975][4209]=19; canv[975][4581]=5; canv[976]=new Array; subname[976]='Perry'; canv[976][4049]=7400; canv[976][4053]=251; canv[976][4054]=3778; canv[976][4208]=11; canv[976][4209]=35; canv[976][4581]=27; canv[977]=new Array; subname[977]='Jackson'; canv[977][4049]=9730; canv[977][4053]=269; canv[977][4054]=7636; canv[977][4208]=18; canv[977][4209]=34; canv[977][4581]=28; canv[978]=new Array; subname[978]='Franklin'; canv[978][4049]=14754; canv[978][4053]=655; canv[978][4054]=7560; canv[978][4208]=189; canv[978][4209]=43; canv[978][4581]=89; canv[979]=new Array; subname[979]='Williamson'; canv[979][4049]=12961; canv[979][4053]=448; canv[979][4054]=8714; canv[979][4208]=56; canv[979][4209]=52; canv[979][4581]=34; canv[980]=new Array; subname[980]='Union'; canv[980][4049]=6157; canv[980][4053]=50; canv[980][4054]=2859; canv[980][4209]=18; canv[980][4581]=1; canv[981]=new Array; subname[981]='Alexander'; canv[981][4049]=5653; canv[981][4053]=129; canv[981][4054]=4729; canv[981][4208]=4; canv[981][4209]=9; canv[981][4581]=9; canv[982]=new Array; subname[982]='Pulaski'; canv[982][4049]=3446; canv[982][4053]=45; canv[982][4054]=3225; canv[982][4208]=1; canv[982][4209]=4; canv[982][4581]=5; canv[983]=new Array; subname[983]='Macoupin'; canv[983][4049]=14810; canv[983][4053]=1567; canv[983][4054]=7031; canv[983][4208]=134; canv[983][4209]=47; canv[983][4581]=51; canv[984]=new Array; subname[984]='Jersey'; canv[984][4049]=3807; canv[984][4053]=88; canv[984][4054]=2157; canv[984][4208]=3; canv[984][4209]=10; canv[984][4581]=4; canv[985]=new Array; subname[985]='Greene'; canv[985][4049]=6347; canv[985][4053]=94; canv[985][4054]=2857; canv[985][4208]=2; canv[985][4209]=27; canv[985][4581]=8; canv[986]=new Array; subname[986]='Calhoun'; canv[986][4049]=2229; canv[986][4053]=29; canv[986][4054]=1239; canv[986][4209]=3; canv[986][4581]=4; canv[987]=new Array; subname[987]='Pike'; canv[987][4049]=8013; canv[987][4053]=205; canv[987][4054]=4181; canv[987][4208]=5; canv[987][4209]=44; canv[987][4581]=4; canv[988]=new Array; subname[988]='Scott'; canv[988][4049]=3012; canv[988][4053]=44; canv[988][4054]=1740; canv[988][4208]=1; canv[988][4209]=7; canv[989]=new Array; subname[989]='Morgan'; canv[989][4049]=10170; canv[989][4053]=125; canv[989][4054]=7787; canv[989][4208]=6; canv[989][4209]=31; canv[989][4581]=11; canv[990]=new Array; subname[990]='Sangamon'; canv[990][4049]=32745; canv[990][4053]=742; canv[990][4054]=26856; canv[990][4208]=175; canv[990][4209]=65; canv[990][4581]=60; canv[991]=new Array; subname[991]='Macon'; canv[991][4049]=21638; canv[991][4053]=635; canv[991][4054]=16868; canv[991][4208]=104; canv[991][4209]=75; canv[991][4581]=26; canv[992]=new Array; subname[992]='Logan'; canv[992][4049]=8119; canv[992][4053]=108; canv[992][4054]=5850; canv[992][4208]=6; canv[992][4209]=22; canv[992][4581]=11; canv[993]=new Array; subname[993]='Menard'; canv[993][4049]=3453; canv[993][4053]=30; canv[993][4054]=2327; canv[993][4209]=13; canv[994]=new Array; subname[994]='Cass'; canv[994][4049]=5669; canv[994][4053]=58; canv[994][4054]=2745; canv[994][4208]=10; canv[994][4209]=20; canv[994][4581]=5; canv[995]=new Array; subname[995]='Brown'; canv[995][4049]=2822; canv[995][4053]=11; canv[995][4054]=1148; canv[995][4209]=12; canv[996]=new Array; subname[996]='Adams'; canv[996][4049]=21098; canv[996][4053]=379; canv[996][4054]=10134; canv[996][4208]=14; canv[996][4209]=25; canv[996][4581]=19; canv[997]=new Array; subname[997]='Schuyler'; canv[997][4049]=3782; canv[997][4053]=33; canv[997][4054]=2075; canv[997][4209]=36; canv[997][4581]=4; canv[998]=new Array; subname[998]='Mason'; canv[998][4049]=5681; canv[998][4053]=50; canv[998][4054]=2551; canv[998][4208]=1; canv[998][4209]=14; canv[998][4581]=3; canv[999]=new Array; subname[999]='Tazewell'; canv[999][4049]=13591; canv[999][4053]=160; canv[999][4054]=7260; canv[999][4208]=12; canv[999][4209]=22; canv[999][4581]=10; canv[1000]=new Array; subname[1000]='Woodford'; canv[1000][4049]=5244; canv[1000][4053]=71; canv[1000][4054]=3866; canv[1000][4208]=2; canv[1000][4209]=8; canv[1000][4581]=1; canv[1001]=new Array; subname[1001]='Marshall'; canv[1001][4049]=4133; canv[1001][4053]=29; canv[1001][4054]=3166; canv[1001][4208]=2; canv[1001][4209]=14; canv[1001][4581]=1; canv[1002]=new Array; subname[1002]='Putnam'; canv[1002][4049]=1554; canv[1002][4053]=41; canv[1002][4054]=1050; canv[1002][4208]=2; canv[1002][4209]=4; canv[1003]=new Array; subname[1003]='Stark'; canv[1003][4049]=2369; canv[1003][4053]=34; canv[1003][4054]=2119; canv[1003][4208]=1; canv[1003][4209]=7; canv[1003][4581]=3; canv[1004]=new Array; subname[1004]='Peoria'; canv[1004][4049]=37605; canv[1004][4053]=776; canv[1004][4054]=25166; canv[1004][4208]=55; canv[1004][4209]=37; canv[1004][4581]=77; canv[1005]=new Array; subname[1005]='Knox'; canv[1005][4049]=12282; canv[1005][4053]=327; canv[1005][4054]=12244; canv[1005][4208]=9; canv[1005][4209]=46; canv[1005][4581]=10; canv[1006]=new Array; subname[1006]='Fulton'; canv[1006][4049]=12144; canv[1006][4053]=569; canv[1006][4054]=7579; canv[1006][4208]=27; canv[1006][4209]=93; canv[1006][4581]=199; canv[1007]=new Array; subname[1007]='McDonough'; canv[1007][4049]=7608; canv[1007][4053]=115; canv[1007][4054]=6329; canv[1007][4208]=7; canv[1007][4209]=38; canv[1007][4581]=8; canv[1008]=new Array; subname[1008]='Hancock'; canv[1008][4049]=8808; canv[1008][4053]=50; canv[1008][4054]=4789; canv[1008][4208]=4; canv[1008][4209]=76; canv[1008][4581]=7; canv[1009]=new Array; subname[1009]='Henderson'; canv[1009][4049]=2372; canv[1009][4053]=66; canv[1009][4054]=1815; canv[1009][4209]=11; canv[1009][4581]=2; canv[1010]=new Array; subname[1010]='Warren'; canv[1010][4049]=5610; canv[1010][4053]=88; canv[1010][4054]=5498; canv[1010][4208]=3; canv[1010][4209]=47; canv[1010][4581]=12; canv[1011]=new Array; subname[1011]='Mercer'; canv[1011][4049]=4309; canv[1011][4053]=45; canv[1011][4054]=4436; canv[1011][4208]=4; canv[1011][4209]=37; canv[1011][4581]=4; canv[7488]=new Array; subname[7488]='Lawrence'; canv[7488][4049]=6100; canv[7488][4053]=48; canv[7488][4054]=4194; canv[7488][4208]=2; canv[7488][4209]=92; canv[7488][4581]=5; var canp=new Array; canp[52]=new Array; canp[52][1]=716283; canp[52][2]=812063; canp[52][9]=8971; canp[52][97]=753; canp[52][1070]=2101; canp[53]=new Array; canp[53][1]=10479; canp[53][2]=28016; canp[53][9]=181; canp[53][97]=23; canp[53][1070]=13; canp[54]=new Array; canp[54][1]=20877; canp[54][2]=26081; canp[54][9]=413; canp[54][97]=16; canp[54][1070]=18; canp[55]=new Array; canp[55][1]=12252; canp[55][2]=26814; canp[55][9]=339; canp[55][97]=32; canp[55][1070]=150; canp[915]=new Array; canp[915][1]=3856; canp[915][2]=6333; canp[915][9]=88; canp[915][97]=3; canp[915][1070]=3; canp[916]=new Array; canp[916][1]=5579; canp[916][2]=11992; canp[916][9]=62; canp[916][97]=7; canp[916][1070]=3; canp[917]=new Array; canp[917][1]=7684; canp[917][2]=33258; canp[917][9]=269; canp[917][97]=40; canp[917][1070]=121; canp[918]=new Array; canp[918][1]=1371; canp[918][2]=5965; canp[918][9]=30; canp[918][97]=2; canp[918][1070]=1; canp[919]=new Array; canp[919][1]=5596; canp[919][2]=10661; canp[919][9]=57; canp[919][97]=1; canp[919][1070]=4; canp[920]=new Array; canp[920][1]=1876; canp[920][2]=6197; canp[920][9]=41; canp[920][97]=4; canp[921]=new Array; canp[921][1]=2691; canp[921][2]=9808; canp[921][9]=43; canp[921][97]=3; canp[921][1070]=1; canp[922]=new Array; canp[922][1]=4079; canp[922][2]=13580; canp[922][9]=61; canp[922][97]=6; canp[922][1070]=2; canp[923]=new Array; canp[923][1]=4476; canp[923][2]=9238; canp[923][9]=38; canp[923][97]=3; canp[923][1070]=5; canp[924]=new Array; canp[924][1]=3940; canp[924][2]=11501; canp[924][9]=45; canp[924][97]=2; canp[924][1070]=15; canp[925]=new Array; canp[925][1]=16184; canp[925][2]=38236; canp[925][9]=220; canp[925][97]=18; canp[925][1070]=15; canp[926]=new Array; canp[926][1]=1154; canp[926][2]=3589; canp[926][9]=8; canp[926][1070]=1; canp[927]=new Array; canp[927][1]=14334; canp[927][2]=27246; canp[927][9]=132; canp[927][97]=19; canp[927][1070]=45; canp[928]=new Array; canp[928][1]=5858; canp[928][2]=14666; canp[928][9]=167; canp[928][97]=9; canp[928][1070]=7; canp[929]=new Array; canp[929][1]=6486; canp[929][2]=11557; canp[929][9]=62; canp[929][97]=16; canp[929][1070]=12; canp[930]=new Array; canp[930][1]=20807; canp[930][2]=24039; canp[930][9]=354; canp[930][97]=16; canp[930][1070]=12; canp[931]=new Array; canp[931][1]=3174; canp[931][2]=5126; canp[931][9]=23; canp[931][97]=4; canp[931][1070]=2; canp[932]=new Array; canp[932][1]=10247; canp[932][2]=11905; canp[932][9]=120; canp[932][97]=4; canp[932][1070]=3; canp[933]=new Array; canp[933][1]=5421; canp[933][2]=8453; canp[933][9]=38; canp[933][97]=7; canp[933][1070]=4; canp[934]=new Array; canp[934][1]=5737; canp[934][2]=11161; canp[934][9]=84; canp[934][97]=8; canp[934][1070]=2; canp[935]=new Array; canp[935][1]=2098; canp[935][2]=4668; canp[935][9]=26; canp[935][97]=1; canp[936]=new Array; canp[936][1]=10742; canp[936][2]=20780; canp[936][9]=240; canp[936][97]=16; canp[936][1070]=11; canp[937]=new Array; canp[937][1]=2631; canp[937][2]=6100; canp[937][9]=55; canp[937][97]=2; canp[937][1070]=2; canp[938]=new Array; canp[938][1]=1959; canp[938][2]=4565; canp[938][9]=23; canp[938][97]=7; canp[938][1070]=3; canp[939]=new Array; canp[939][1]=8915; canp[939][2]=19494; canp[939][9]=119; canp[939][97]=11; canp[939][1070]=11; canp[940]=new Array; canp[940][1]=12728; canp[940][2]=21616; canp[940][9]=259; canp[940][97]=55; canp[940][1070]=59; canp[941]=new Array; canp[941][1]=5325; canp[941][2]=7509; canp[941][9]=42; canp[941][97]=4; canp[941][1070]=6; canp[942]=new Array; canp[942][1]=2239; canp[942][2]=4890; canp[942][9]=40; canp[942][1070]=2; canp[943]=new Array; canp[943][1]=5071; canp[943][2]=11479; canp[943][9]=39; canp[943][97]=11; canp[943][1070]=7; canp[944]=new Array; canp[944][1]=2168; canp[944][2]=3310; canp[944][9]=9; canp[944][97]=1; canp[945]=new Array; canp[945][1]=1873; canp[945][2]=3242; canp[945][9]=21; canp[945][97]=2; canp[945][1070]=5; canp[946]=new Array; canp[946][1]=3621; canp[946][2]=5632; canp[946][9]=26; canp[946][97]=3; canp[946][1070]=6; canp[947]=new Array; canp[947][1]=3495; canp[947][2]=5989; canp[947][9]=32; canp[947][97]=2; canp[947][1070]=4; canp[948]=new Array; canp[948][1]=3955; canp[948][2]=2373; canp[948][9]=33; canp[948][97]=3; canp[948][1070]=5; canp[949]=new Array; canp[949][1]=3666; canp[949][2]=4177; canp[949][9]=28; canp[949][97]=3; canp[949][1070]=5; canp[950]=new Array; canp[950][1]=2343; canp[950][2]=2002; canp[950][9]=22; canp[950][97]=5; canp[950][1070]=1; canp[951]=new Array; canp[951][1]=933; canp[951][2]=1758; canp[951][9]=28; canp[951][97]=10; canp[951][1070]=3; canp[952]=new Array; canp[952][1]=679; canp[952][2]=2004; canp[952][9]=20; canp[952][97]=3; canp[953]=new Array; canp[953][1]=1241; canp[953][2]=3405; canp[953][9]=13; canp[953][97]=2; canp[953][1070]=12; canp[954]=new Array; canp[954][1]=1163; canp[954][2]=2892; canp[954][9]=30; canp[954][97]=2; canp[954][1070]=4; canp[955]=new Array; canp[955][1]=6337; canp[955][2]=7525; canp[955][9]=87; canp[955][97]=17; canp[955][1070]=17; canp[956]=new Array; canp[956][1]=3037; canp[956][2]=3275; canp[956][9]=75; canp[956][97]=5; canp[956][1070]=20; canp[957]=new Array; canp[957][1]=950; canp[957][2]=2861; canp[957][9]=14; canp[957][97]=1; canp[958]=new Array; canp[958][1]=3108; canp[958][2]=5189; canp[958][9]=57; canp[958][97]=5; canp[958][1070]=5; canp[959]=new Array; canp[959][1]=2550; canp[959][2]=4042; canp[959][9]=23; canp[959][97]=6; canp[959][1070]=2; canp[960]=new Array; canp[960][1]=2418; canp[960][2]=4522; canp[961]=new Array; canp[961][1]=3055; canp[961][2]=3201; canp[961][9]=14; canp[961][97]=2; canp[962]=new Array; canp[962][1]=4239; canp[962][2]=3882; canp[962][9]=85; canp[962][97]=3; canp[962][1070]=5; canp[963]=new Array; canp[963][1]=4071; canp[963][2]=7214; canp[963][9]=243; canp[964]=new Array; canp[964][1]=7345; canp[964][2]=9896; canp[964][9]=135; canp[964][97]=18; canp[964][1070]=37; canp[965]=new Array; canp[965][1]=7392; canp[965][2]=8999; canp[965][9]=123; canp[965][97]=13; canp[965][1070]=48; canp[966]=new Array; canp[966][1]=3998; canp[966][2]=6545; canp[966][9]=57; canp[966][97]=10; canp[966][1070]=6; canp[967]=new Array; canp[967][1]=5823; canp[967][2]=9110; canp[967][9]=85; canp[967][97]=24; canp[967][1070]=10; canp[968]=new Array; canp[968][1]=5905; canp[968][2]=7326; canp[968][9]=62; canp[968][97]=4; canp[968][1070]=4; canp[969]=new Array; canp[969][1]=2848; canp[969][2]=3638; canp[969][9]=22; canp[970]=new Array; canp[970][1]=6774; canp[970][2]=3031; canp[970][9]=39; canp[970][97]=5; canp[970][1070]=3; canp[971]=new Array; canp[971][1]=2298; canp[971][2]=4160; canp[971][9]=30; canp[971][97]=5; canp[971][1070]=1; canp[972]=new Array; canp[972][1]=23658; canp[972][2]=28028; canp[972][9]=540; canp[972][97]=61; canp[972][1070]=119; canp[973]=new Array; canp[973][1]=36374; canp[973][2]=31026; canp[973][9]=506; canp[973][97]=55; canp[973][1070]=76; canp[974]=new Array; canp[974][1]=2934; canp[974][2]=2721; canp[974][9]=8; canp[974][97]=2; canp[975]=new Array; canp[975][1]=6251; canp[975][2]=5739; canp[975][9]=93; canp[975][97]=7; canp[975][1070]=3; canp[976]=new Array; canp[976][1]=5029; canp[976][2]=4636; canp[976][9]=67; canp[976][97]=27; canp[976][1070]=7; canp[977]=new Array; canp[977][1]=5836; canp[977][2]=9180; canp[977][9]=75; canp[977][97]=5; canp[977][1070]=6; canp[978]=new Array; canp[978][1]=11369; canp[978][2]=9900; canp[978][9]=161; canp[978][97]=49; canp[978][1070]=143; canp[979]=new Array; canp[979][1]=10139; canp[979][2]=10913; canp[979][9]=166; canp[979][97]=29; canp[979][1070]=62; canp[980]=new Array; canp[980][1]=4149; canp[980][2]=3352; canp[980][9]=24; canp[980][97]=1; canp[980][1070]=4; canp[981]=new Array; canp[981][1]=3558; canp[981][2]=5666; canp[981][9]=21; canp[981][97]=3; canp[981][1070]=4; canp[982]=new Array; canp[982][1]=1726; canp[982][2]=3319; canp[982][9]=34; canp[982][97]=3; canp[982][1070]=10; canp[983]=new Array; canp[983][1]=11290; canp[983][2]=10699; canp[983][9]=350; canp[983][97]=18; canp[983][1070]=81; canp[984]=new Array; canp[984][1]=2473; canp[984][2]=2993; canp[984][9]=11; canp[984][97]=3; canp[985]=new Array; canp[985][1]=4076; canp[985][2]=4299; canp[985][9]=40; canp[985][97]=3; canp[985][1070]=3; canp[986]=new Array; canp[986][1]=1551; canp[986][2]=1594; canp[986][9]=31; canp[986][97]=2; canp[987]=new Array; canp[987][1]=4008; canp[987][2]=6705; canp[987][9]=110; canp[987][97]=5; canp[987][1070]=8; canp[988]=new Array; canp[988][1]=1730; canp[988][2]=2601; canp[988][9]=5; canp[988][97]=2; canp[989]=new Array; canp[989][1]=5805; canp[989][2]=10192; canp[989][9]=31; canp[989][97]=10; canp[989][1070]=8; canp[990]=new Array; canp[990][1]=21026; canp[990][2]=31957; canp[990][9]=174; canp[990][97]=36; canp[990][1070]=78; canp[991]=new Array; canp[991][1]=9932; canp[991][2]=24492; canp[991][9]=194; canp[991][97]=24; canp[991][1070]=12; canp[992]=new Array; canp[992][1]=5019; canp[992][2]=7631; canp[992][9]=60; canp[992][97]=5; canp[992][1070]=10; canp[993]=new Array; canp[993][1]=1742; canp[993][2]=3243; canp[993][9]=34; canp[993][97]=6; canp[994]=new Array; canp[994][1]=3461; canp[994][2]=4009; canp[994][9]=17; canp[994][97]=4; canp[994][1070]=3; canp[995]=new Array; canp[995][1]=1867; canp[995][2]=2289; canp[995][9]=6; canp[995][97]=2; canp[995][1070]=1; canp[996]=new Array; canp[996][1]=13215; canp[996][2]=15590; canp[996][9]=254; canp[996][97]=21; canp[996][1070]=13; canp[997]=new Array; canp[997][1]=2542; canp[997][2]=3011; canp[997][9]=16; canp[997][97]=6; canp[997][1070]=1; canp[998]=new Array; canp[998][1]=3246; canp[998][2]=3956; canp[998][9]=17; canp[998][1070]=2; canp[999]=new Array; canp[999][1]=6910; canp[999][2]=9409; canp[999][9]=248; canp[999][97]=16; canp[999][1070]=3; canp[1000]=new Array; canp[1000][1]=3311; canp[1000][2]=5140; canp[1000][9]=67; canp[1000][97]=1; canp[1000][1070]=5; canp[1001]=new Array; canp[1001][1]=2828; canp[1001][2]=4029; canp[1001][9]=7; canp[1001][1070]=1; canp[1002]=new Array; canp[1002][1]=869; canp[1002][2]=1387; canp[1002][9]=11; canp[1002][97]=1; canp[1002][1070]=2; canp[1003]=new Array; canp[1003][1]=1306; canp[1003][2]=2966; canp[1003][9]=19; canp[1003][97]=2; canp[1004]=new Array; canp[1004][1]=23150; canp[1004][2]=31024; canp[1004][9]=632; canp[1004][97]=76; canp[1004][1070]=31; canp[1005]=new Array; canp[1005][1]=5993; canp[1005][2]=16151; canp[1005][9]=173; canp[1005][97]=10; canp[1005][1070]=3; canp[1006]=new Array; canp[1006][1]=6591; canp[1006][2]=10600; canp[1006][9]=454; canp[1006][97]=24; canp[1006][1070]=11; canp[1007]=new Array; canp[1007][1]=4104; canp[1007][2]=8953; canp[1007][9]=69; canp[1007][97]=8; canp[1007][1070]=4; canp[1008]=new Array; canp[1008][1]=5447; canp[1008][2]=7795; canp[1008][9]=35; canp[1008][97]=8; canp[1008][1070]=5; canp[1009]=new Array; canp[1009][1]=1065; canp[1009][2]=2695; canp[1009][9]=26; canp[1009][97]=2; canp[1009][1070]=2; canp[1010]=new Array; canp[1010][1]=2681; canp[1010][2]=7915; canp[1010][9]=146; canp[1010][97]=7; canp[1010][1070]=4; canp[1011]=new Array; canp[1011][1]=2316; canp[1011][2]=5699; canp[1011][9]=51; canp[1011][97]=3; canp[1011][1070]=4; canp[7488]=new Array; canp[7488][1]=3806; canp[7488][2]=5851; canp[7488][9]=53; canp[7488][97]=8; canp[7488][1070]=8; mpidd[1]=10834; mpidd[2]=10834; </script> <script type="text/javascript"> function pageLoaded() { //alert('Page Loaded'); viewMapChange(); $( window ).resize(function() { setMapRatio(curView,1.725502); if (clayer[curView]) { leafmap[curView].fitBounds(clayer[curView].getBounds()); } else { leafmap[curView].fitBounds(geojsonLayer[curView].getBounds()); } }); } function setMapRatio(milk,mratio) { var mwidth=$('#map_canvas'+milk).outerWidth(); var mheight=Math.ceil(mwidth*mratio); if (mheight > 700) { mheight=700; } $('#map_canvas'+milk).height(mheight); } function checkCandidatesPanel() { var cp=document.getElementById('MapCandidatesDiv'); if (cp.style.display == 'none') { cp.style.display='block'; document.getElementById('MapCandidatesButton').value='-Candidates'; } else { cp.style.display='none'; document.getElementById('MapCandidatesButton').value='+Candidates'; } } function changeMapType() { var mtype=document.getElementById('WhichMap').value; if (mtype == 'vc' && compare[map] == undefined) { compareOfficesLoad(); } else { if (mtype == 'dr') { document.getElementById('SelDemographic').style.display='block'; } else { document.getElementById('SelDemographic').style.display='none'; } if (curType == 'V' || curType == 'P') { if (curType == 'P' && mtype == 'vd' && canpv.length == 0) { $.getJSON('https://www.ourcampaigns.com/ajax/racevtdresults.php?RaceID=2964', function(data){ for (var key in data['Candidates']) { if (data['Candidates'][key]['PartyID'] !== 'undefined' && typeof canptyv[data['Candidates'][key]['PartyID']] === 'undefined') { canptyv[data['Candidates'][key]['PartyID']]=key; canname[key]=data['Candidates'][key]['FirstName']+' '+data['Candidates'][key]['LastName']; } } for (var v in data['VTDResults']) { canpv[v]=new Array; for (var i=0; i < data['VTDResults'][v].length; i++) { if (typeof canpv[v][data['VTDResults'][v][i]['p']] === 'undefined') { canpv[v][data['VTDResults'][v][i]['p']]=parseInt(data['VTDResults'][v][i]['v']); } } } redoMap(curView); }); } else { redoMap(curView); } } else { var locs=init_bitmap(curView); //cument.getElementById('bitmap_holder'+curView).innerHTML='<img src="https://www.ourcampaigns.com/cgi-bin/mapdisplay.cgi?MapImageID='+curView+locs+'" border="0">'; $('#bitmap_holder'+curView+' img').attr('src','https://www.ourcampaigns.com/cgi-bin/mapdisplay.cgi?MapImageID='+curView+locs); } } } function changeMapCurve() { if (curType == 'V' || curType == 'P') { redoMap(curView); } } function changeMapCurveBitmap() { if (curType == 'V' || curType == 'P') { redoMap(curView); } else { var locs=init_bitmap(curView); //$('#bitmap_holder'+curView).css('height',$('#bitmap_holder'+curView+' img').height()); $('#bitmap_holder'+curView+' img').attr('src','https://www.ourcampaigns.com/cgi-bin/mapdisplay.cgi?MapImageID='+curView+locs); } } function leafletMap(milk) { //console.log(mpoly[milk]); setMapRatio(milk,1.725502); var maxmargin=0; var numpoly=0; for (i=0; i<mpoly[milk]['features'].length; i++) { var cid=mpoly[milk]['features'][i].geometry.properties.cid; if (canv[cid]) { var maxvotes=0; var secondvotes=0; //for (c=0; c<canids.length; c++) { for(var c in canv[cid]) { var v=0; if (canv[cid]) { v=canv[cid][c]; } if (v == null) { v=0; } if (v > maxvotes) { secondvotes=maxvotes; maxvotes=v; wincolor=cancolor[c]; } else if (v > secondvotes) { secondvotes=v; } } if (maxvotes > 0) { numpoly++; } if ((maxvotes-secondvotes) > maxmargin) { maxmargin=maxvotes-secondvotes; } } } var mymap = L.map('map_canvas'+milk); leafmap[milk]=mymap; var sweight=0.5; if (curType == 'P') { sweight=0.1; } geojsonLayer[milk]=L.geoJSON(mpoly[milk], { color: '#000000', weight: sweight, onEachFeature: onEachFeature, style: function (feature) { var curve=parseInt($('#curveslider').slider( "option", "value" ))/100; var cid=feature.geometry.properties.cid; cname[cid]=feature.geometry.properties.name; //console.log('cid: '+cid); var allvotes=0; var maxvotes=0; var secondvotes=0; var wincolor='#ffffff'; for(var c in canv[cid]) { //console.log('cid: '+cid+' c:'+c+' v:'+canv[cid][c]); var v=0; if (canv[cid]) { v=canv[cid][c]; } if (v == null) { v=0; } allvotes+=v; if (v > maxvotes) { secondvotes=maxvotes; maxvotes=v; wincolor=cancolor[c]; } else if (v > secondvotes) { secondvotes=v; } } var opacity=Math.pow((maxvotes-secondvotes)/maxmargin,curve); //console.log(maxvotes+' '+secondvotes+' '+maxmargin+' '+curve+' '+wincolor+' '+opacity); if (!turnover[cid]) { turnover[cid]='#000000'; } var stko=0.5; if (curType == 'P') { stko=0.1; } if (turnover[cid] != '#000000') { stko=0.5; } return { color:turnover[cid], weight:stko, fillColor: wincolor, fillOpacity: opacity }; } }).addTo(mymap); mymap.fitBounds(geojsonLayer[milk].getBounds()); L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}', { attribution: 'Data &copy; <a href="https://www.openstreetmap.org/">OpenStreetMap</a>, <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Tiles: <a href="https://www.mapbox.com/">Mapbox</a>', tileSize: 512, zoomOffset: -1, maxZoom: 18, id: 'mapbox/streets-v11', accessToken: 'sk.eyJ1IjoiZW50cm9waXN0IiwiYSI6ImNraG53Y2M0ZzBiNHoyeW1pNTB1Mjc0NXMifQ.eSKmJwV5Qy1g-WELf1rL1g' }).addTo(mymap); // calculate maxbubble size var center = mymap.getCenter(); var eastBound = mymap.getBounds().getEast(); var centerEast = L.latLng(center.lat, eastBound); var dist = center.distanceTo(centerEast); maxbubble[milk] = dist*.5; for(var c in canids) { if (canlat[canids[c]] != null && canlon[canids[c]] != null && cancolor[canids[c]] != null && canname[canids[c]] != null) { //var myIcon = new L.icon({ iconUrl: 'https://chart.apis.google.com/chart?cht=mm&chs=20x20&chco=ffffff,'+cancolor[canids[c]].substr(1)+',000000', iconSize:[20,20], iconAnchor:[10,20] }); //var myIcon = { path: "M-20,0a20,20 0 1,0 40,0a20,20 0 1,0 -40,0", fillColor: cancolor[canids[c]], fillOpacity: 1, anchor: new google.maps.Point(0, 0), strokeWeight: 1, scale: 0.5 } var iconSVG='<svg xmlns="http://www.w3.org/2000/svg" viewBox="-20 -40 60 60" width="40" height="40"><path fill="'+cancolor[canids[c]]+'" fill-opacity="1" d="M0,-36c-9.941,0 -18,8.059 -18,18c0,13.858 18,36 18,36c0,0 18,-22.142 18,-36c0,-9.941 -8.059,-18 -18,-18z M-4,18 L4,18 Z" stroke="#000" stroke-width="3"/> <text x="0" y="-5" fill="#000" font-family="Arial" font-weight="bold" font-size="20" text-anchor="middle" alignment-baseline="middle"> </text></svg>'; var iconSVGblob = new Blob([iconSVG], { type: "image/svg+xml" }); var iconSVGurl = URL.createObjectURL(iconSVGblob); var myIcon = new L.icon({ iconUrl: iconSVGurl, iconSize:[20,20], iconAnchor:[10,20] }); var marker = new L.Marker([canlat[canids[c]],canlon[canids[c]]],{icon: myIcon, title: canname[canids[c]] }).addTo(mymap); } } mpoly[224]=new Array(); $.getJSON( "/geojson/MapImage224.json", function( data ) { mpoly[224]=data; for(var i=0; i<mpoly[224].features.length; i++) { if (mpoly[224].features[i].geometry.properties.cid == 98) { clayer[milk]=L.GeoJSON.geometryToLayer(mpoly[224].features[i].geometry, {interactive: false, color:'#00ff00',opacity:0.8,weight:2,fillOpacity:0}); clayer[milk].addTo(mymap); setMapRatio(milk,1.725502); mymap.fitBounds(clayer[milk].getBounds()); break; } } }); } function onEachFeature(feature, layer) { layer.on({ mouseover: putRaceInfo, mouseout: remRaceInfo, click: goRaceInfo }); } function compareOfficesLoad() { var msel=document.getElementById('ViewMap'); var map=msel.value; map=parseInt(map.substr(1)); if (compare[map] == undefined) { $.getJSON('https://www.ourcampaigns.com/ajax/CompareOffices.php?RaceID=2910&MapImageID='+map, function(data){ compare[map]=data['compareOffices']; officeload[map]=new Array; racesubs[map]=new Array; compareOfficesPopup(map); }); } else { compareOfficesPopup(map); } } function compareOfficesPopup(map) { var html="<table>"; for(var i in compare[map]) { html+='<tr><td><a href="javascript:compareOfficesSelect(\''+compare[map][i]['OfficeID']+"','"+compare[map][i]['RDate']+'\')">'+compare[map][i]['Office']+"</a></td><td>"+compare[map][i]['RDate']+"</td></tr>\n"; offices[compare[map][i]['OfficeID']]=compare[map][i]['Office']; } $('#CompareOfficePopup').html(html+"</table>\n"); $('#CompareOfficePopup').show(); $('#CompareOfficeChange').show(); } function compareOfficesSelect(office,thedate) { var msel=document.getElementById('ViewMap'); var map=msel.value; map=parseInt(map.substr(1)); $('#CompareOfficePopup').hide(); $('#MapCompareOffice').val(office); $('#MapCompareDate').val(thedate); $('#CompareOfficeChange').val(offices[office]+' - '+thedate+' - Change'); if (officeload[map][office] == undefined) { $.getJSON('https://www.ourcampaigns.com/ajax/OfficeSubDataJSON.php?OfficeID='+office+'&MapImageID='+map+'&PollDate='+encodeURIComponent(thedate), function(data){ for(var i in data['race']) { var d=data['race'][i]; racesubs[map][d['RaceID']]=d; } officeload[map][office]=true; viewMapChange(); redoMap(curView); }); } else { viewMapChange(); redoMap(curView); } } function viewMapChange() { var msel=document.getElementById('ViewMap'); var map=msel.value; var newType=map.substr(0,1); if (curType == 'V' || curType == 'P') { //alert('Old GMap display none'); document.getElementById('map_canvas'+curView).style.display = 'none'; } else { //alert('Old BMap display none'); if (document.getElementById('bitmap_holder'+curView)) { document.getElementById('bitmap_holder'+curView).style.display = 'none'; } } if (newType == 'V' || newType == 'P') { map=parseInt(map.substr(1)); //console.log('newType:'+newType+' Map:'+map+' MPoly:'+mpoly[map]+' DoPoly:'+dopoly[map]); if (demog[map] == undefined) { $.getJSON('https://www.ourcampaigns.com/ajax/DemographicMapJSON.php?MapImageID='+map+'&TheDate='+encodeURIComponent('1932-11-08 23:00:00'), function(data){ demog[map]=data; }); } if (mpoly[map] == undefined) { if (newType == 'V') { mpoly[map]=new Array(); $.getJSON( "/geojson/MapImage"+map+".json", function( data ) { mpoly[map]=data; //viewMapChange(); leafletMap(map); }); } else { curType=newType; mpoly[map]=new Array(); //console.log("/geojson/vtd/VTDml"+map+"--.json"); $.getJSON( "/geojson/vtd/VTDml"+map+"--.json", function( data ) { mpoly[map]=data; //viewMapChange(); leafletMap(map); }); var headID = document.getElementById('DynamicJS'); var newScript2 = document.createElement('script'); newScript2.type = 'text/javascript'; newScript2.onload=function() { if (mpoly[map]) { redoMap(map); } } newScript2.src = '/racevtdresults.php?RaceID=2910'; headID.appendChild(newScript2); } } document.getElementById('map_canvas'+map).style.display = 'block'; curType=newType; curView=map; } else { map=parseInt(map.substr(1)); var bmh=document.getElementById('bitmap_holder'+map); if (bmh) { if (bmh.innerHTML == '') { var locs=init_bitmap(map); bmh.innerHTML='<img src="https://www.ourcampaigns.com/cgi-bin/mapdisplay.cgi?MapImageID='+map+locs+'" border="0">'; } bmh.style.display = 'block'; curType=''; curView=map; } } } function init_bitmap(milk) { var loc=''; var mtype=document.getElementById('WhichMap').value; //var curve=parseInt(document.getElementById('MapCurve').value)/100; var curve=parseInt($('#curveslider').slider( "option", "value" ))/100; var maxmargin=0; var maxavotes=0; for (i=1; i<mploc[milk].length; i++) { if (mploc[milk][i]) { var maxvotes=0; var secondvotes=0; //for (c=0; c<canids.length; c++) { for(var c in canids) { if (document.getElementById('MpCn'+canids[c]).checked) { var v=0; if (canv[mploc[milk][i]]) { v=canv[mploc[milk][i]][canids[c]]; } if (v == null) { v=0; } if (v > maxvotes) { secondvotes=maxvotes; maxvotes=v; wincolor=cancolor[canids[c]]; } else if (v > secondvotes) { secondvotes=v; } } } if ((maxvotes-secondvotes) > maxmargin) { maxmargin=maxvotes-secondvotes; } if (maxvotes > maxavotes) { maxavotes=maxvotes; } } } if (mpoly[milk] != undefined) { for (i=1; i<mploc[milk].length; i++) { if (mploc[milk][i]) { var allvotes=0; var allvotesp=0; var maxvotes=0; var secondvotes=0; var wincolor='#ffffff'; //for (c=0; c<canids.length; c++) { for(var c in canids) { if (document.getElementById('MpCn'+canids[c]).checked) { var v=0; if (canv[mploc[milk][i]]) { v=canv[mploc[milk][i]][canids[c]]; } if (v == null) { v=0; } allvotes+=v; if (mtype == 'vd') { allvotesp+=canp[mploc[milk][i]][canpty[c]]; } else { if (v > maxvotes) { secondvotes=maxvotes; maxvotes=v; wincolor=cancolor[canids[c]]; } else if (v > secondvotes) { secondvotes=v; } } } } if (mtype == 'vs') { var opacity=Math.pow((maxvotes-secondvotes)/maxmargin,curve); } else if (mtype == 'vm') { var opacity=Math.pow((maxvotes-secondvotes)/allvotes,curve); } else if (mtype == 'vp') { var opacity=Math.pow(maxvotes/allvotes,curve); } else if (mtype == 'vt') { wincolor='#000000'; var opacity=Math.pow(allvotes/maxavotes,curve); } else if (mtype == 'vl') { var mgn=((maxvotes-secondvotes)/allvotes) * 100; if (mgn == 0) { var opacity=0; } else if (mgn < 4) { var opacity=0.1; } else if (mgn < 9) { var opacity=0.3; } else if (mgn < 15) { var opacity=0.6; } else { var opacity=0.9; } } else if (mtype == 'vd') { for(var c in canids) { if (document.getElementById('MpCn'+canids[c]).checked) { var v=0; if (canv[mploc[milk][i]]) { v=canv[mploc[milk][i]][canids[c]]; } if (v == null) { v=0; } percent_change=((v/allvotes)-(canp[mploc[milk][i]][canpty[c]]/allvotesp))*100; if (percent_change > maxchange) { maxchange=percent_change; wincolor=cancolor[canids[c]]; } } } var opacity=Math.pow(maxchange,curve); } var ucolor=wincolor.toUpperCase(); var rcolor=255-Math.floor((255-parseInt(hexR[ucolor.substr(1,1)])*16+parseInt(hexR[ucolor.substr(2,1)]))*opacity); var gcolor=255-Math.floor((255-parseInt(hexR[ucolor.substr(3,1)])*16+parseInt(hexR[ucolor.substr(4,1)]))*opacity); var bcolor=255-Math.floor((255-parseInt(hexR[ucolor.substr(5,1)])*16+parseInt(hexR[ucolor.substr(6,1)]))*opacity); var ocolor=hexA[Math.floor(rcolor/16)]+hexA[Math.floor(rcolor%16)]+hexA[Math.floor(gcolor/16)]+hexA[Math.floor(gcolor%16)]+hexA[Math.floor(bcolor/16)]+hexA[Math.floor(bcolor%16)]; loc+='&L'+mploc[milk][i]+'='+ocolor; } } } return loc; } function init_map(milk) { var mtype=document.getElementById('WhichMap').value; //var curve=parseInt(document.getElementById('MapCurve').value)/100; var curve=parseInt($('#curveslider').slider( "option", "value" ))/100; var sw = new google.maps.LatLng(mnlt[milk],mnlo[milk]); var ne = new google.maps.LatLng(mxlt[milk],mxlo[milk]); var mapb = new google.maps.LatLngBounds(sw,ne); var myOptions = { zoom: 8, center: sw, mapTypeId: google.maps.MapTypeId.ROADMAP }; var mc=document.getElementById('map_canvas'+milk); if (mc == null) { var ni = document.getElementById('SubMaps'); var newcanvas = document.createElement('canvas'); newcanvas.setAttribute('id','map_canvas'+milk); newcanvas.setAttribute('width','100%'); newcanvas.setAttribute('height','300px'); ni.appendChild(newcanvas); mc=document.getElementById('map_canvas'+milk); } var map = new google.maps.Map(mc, myOptions); myFitBounds(map,mapb); //map.fitBounds(mapb); dopoly[milk]=new Array; var polyevt=new Array; var maxmargin=0; var numpoly=0; if (mpoly[milk] != undefined) { for (i=0; i<mpoly[milk].length; i++) { if (mpcid[milk][i]) { var maxvotes=0; var secondvotes=0; //for (c=0; c<canids.length; c++) { for(var c in canids) { var v=0; if (canv[mpcid[milk][i]]) { v=canv[mpcid[milk][i]][canids[c]]; } if (v == null) { v=0; } if (v > maxvotes) { secondvotes=maxvotes; maxvotes=v; wincolor=cancolor[canids[c]]; } else if (v > secondvotes) { secondvotes=v; } } if (maxvotes > 0) { numpoly++; } if ((maxvotes-secondvotes) > maxmargin) { maxmargin=maxvotes-secondvotes; } } } for (i=0; i<mpoly[milk].length; i++) { if (mpcid[milk][i]) { var allvotes=0; var maxvotes=0; var secondvotes=0; var wincolor='#ffffff'; //for (c=0; c<canids.length; c++) { for(var c in canids) { var v=0; if (canv[mpcid[milk][i]]) { v=canv[mpcid[milk][i]][canids[c]]; } if (v == null) { v=0; } allvotes+=v; if (v > maxvotes) { secondvotes=maxvotes; maxvotes=v; wincolor=cancolor[canids[c]]; } else if (v > secondvotes) { secondvotes=v; } } var opacity=Math.pow((maxvotes-secondvotes)/maxmargin,curve); //alert(wincolor+" "+opacity+" "+maxvotes+" "+allvotes); if (!turnover[mpcid[milk][i]]) { turnover[mpcid[milk][i]]='#000000'; } var zindex=0; if (turnover[mpcid[milk][i]] != '#000000') { zindex=10; } var sweight=1.5; if (curType == 'P') { sweight=0.1; } if (opacity == 0) { opacity=0.1; wincolor='#ffffff'; } dopoly[milk][i] = new google.maps.Polygon({ paths: mpoly[milk][i], strokeColor: turnover[mpcid[milk][i]], strokeOpacity: 0.9, strokeWeight: sweight, zIndex: zindex, fillColor: wincolor, fillOpacity: opacity }); dopoly[milk][i].set('cid',mpcid[milk][i]); google.maps.event.addListener(dopoly[milk][i], 'mouseover', function(event) { putRaceInfo(event.latLng,this); }); google.maps.event.addListener(dopoly[milk][i], 'mouseout', function(event) { remRaceInfo(event.latLng,this); }); google.maps.event.addListener(dopoly[milk][i], 'mousemove', function(event) { moveRaceInfo(event.latLng,this); }); google.maps.event.addListener(dopoly[milk][i], 'click', function(event) { goRaceInfo(event.latLng,this); }); dopoly[milk][i].setMap(map); } } for(var c in canids) { if (canlat[canids[c]] != null && canlon[canids[c]] != null && cancolor[canids[c]] != null && canname[canids[c]] != null) { var myLatlng = new google.maps.LatLng(canlat[canids[c]],canlon[canids[c]]); var myIcon = { path: "M-20,0a20,20 0 1,0 40,0a20,20 0 1,0 -40,0", fillColor: cancolor[canids[c]], fillOpacity: 1, anchor: new google.maps.Point(0, 0), strokeWeight: 1, scale: 0.5 } var marker = new google.maps.Marker({ position: myLatlng, map: map, icon: myIcon, iconSize:[20,20], iconAnchor:[10,20], title: canname[canids[c]] }); } } for (i=0; i<mpoly[224].length; i++) { if (mpcid[224][i]=='98') { tmp = new google.maps.Polyline({ path: mpoly[224][i], strokeColor: "#00ff00", strokeOpacity: 0.9, strokeWeight: 2.0, zIndex: 20 }); tmp.setMap(map); var sw = new google.maps.LatLng(lmnlt[224][i],lmnlo[224][i]); var ne = new google.maps.LatLng(lmxlt[224][i],lmxlo[224][i]); var mapb = new google.maps.LatLngBounds(sw,ne); myFitBounds(map,mapb); //map.fitBounds(mapb); } } } } function redoMap(milk) { var msel=document.getElementById('ViewMap'); var map=msel.value; map=parseInt(map.substr(1)); var mtype=document.getElementById('WhichMap').value; //var curve=parseInt(document.getElementById('MapCurve').value)/100; var curve=parseInt($('#curveslider').slider( "option", "value" ))/100; var maxmargin=0; var maxavotes=0; var racevotes=0; for(var c in canids) { if (document.getElementById('MpCn'+canids[c]).checked) { racevotes+=parseInt(canvotes[canids[c]]); } } //console.log('racevotes: '+racevotes); if (geojsonLayer[milk] !== undefined) { if ((mtype == 'bm' || mtype == 'bv') && bubbles[milk] === undefined) { bubbles[milk]=new Array; } for (var i in geojsonLayer[milk]._layers) { var cid=geojsonLayer[milk]._layers[i].feature.geometry.properties.cid; var maxvotes=0; var secondvotes=0; var allvotes=0; //for (c=0; c<canids.length; c++) { for(var c in canids) { if (document.getElementById('MpCn'+canids[c]).checked) { var v=0; if (canv[cid]) { v=canv[cid][canids[c]]; } if (v == null) { v=0; } allvotes+=v; if (v > maxvotes) { secondvotes=maxvotes; maxvotes=v; wincolor=cancolor[canids[c]]; } else if (v > secondvotes) { secondvotes=v; } } } if ((maxvotes-secondvotes) > maxmargin) { maxmargin=maxvotes-secondvotes; } if (maxvotes > maxavotes) { maxavotes=maxvotes; } } for (var i in geojsonLayer[milk]._layers) { var cid=geojsonLayer[milk]._layers[i].feature.geometry.properties.cid; var allvotes=0; var allvotesp=0; var maxvotes=0; var secondvotes=0; var maxchange=0; var wincolor='#ffffff'; //for (c=0; c<canids.length; c++) { for(var c in canids) { if (document.getElementById('MpCn'+canids[c]).checked) { var v=0; if (canv[cid]) { v=canv[cid][canids[c]]; } if (v == null) { v=0; } allvotes+=v; if (mtype == 'vd') { if (curType == 'P') { if (canpv[cid] && canpv[cid][canpty[canids[c]]]) { allvotesp+=canpv[cid][canpty[canids[c]]]; } } else { if (canp[cid] && canp[cid][canpty[canids[c]]]) { allvotesp+=canp[cid][canpty[canids[c]]]; } } } else if (mtype == 'vc') { if (curType == 'P') { //if (canpv[cid] && canpv[cid][canpty[canids[c]]]) { allvotesp+=canpv[cid][canpty[canids[c]]]; } } else { for(var key in racesubs[map]) { if (racesubs[map][key]['Subs'][cid] !== undefined) { for(var oc in racesubs[map][key]['Candidates']) { if (racesubs[map][key]['Candidates'][oc]['PartyID'] == canpty[canids[c]]) { allvotesp+=racesubs[map][key]['Subs'][cid][oc]; } } } } } } else { if (v > maxvotes) { secondvotes=maxvotes; maxvotes=v; wincolor=cancolor[canids[c]]; } else if (v > secondvotes) { secondvotes=v; } } } } if (mtype == 'vs') { var opacity=Math.pow((maxvotes-secondvotes)/maxmargin,curve); //if (numpoly==1) { opacity=Math.pow((maxvotes-secondvotes)/allvotes,curve); } //if (maxmargin == (maxvotes-secondvotes)) { opacity=0.5; } } else if (mtype == 'bm') { var bsize=(maxvotes-secondvotes)/maxavotes; var bopacity=0.8; var opacity=0; } else if (mtype == 'bv') { var bsize=allvotes/maxavotes; var bopacity=Math.pow((maxvotes-secondvotes)/allvotes,curve); //var bopacity=Math.pow((maxvotes-secondvotes)/maxmargin,curve); var opacity=0; } else if (mtype == 'vm') { var opacity=Math.pow((maxvotes-secondvotes)/allvotes,curve); } else if (mtype == 'vp') { var opacity=Math.pow(maxvotes/allvotes,curve); } else if (mtype == 'vx') { var wincolorr=0; var wincolorg=0; var wincolorb=0; for(var c in canids) { if (document.getElementById('MpCn'+canids[c]).checked) { var v=0; if (canv[cid]) { v=canv[cid][canids[c]]; } if (v == null) { v=0; } if (cancolor[canids[c]] === undefined || cancolor[canids[c]] == '') { cancolor[canids[c]]='#888888'; } var cpct=v/allvotes; wincolorr+=parseInt(cancolor[canids[c]].substr(1,2),16)*cpct; wincolorg+=parseInt(cancolor[canids[c]].substr(3,2),16)*cpct; wincolorb+=parseInt(cancolor[canids[c]].substr(5,2),16)*cpct; } } var wincolor='#'+toHex(Math.round(wincolorr))+toHex(Math.round(wincolorg))+toHex(Math.round(wincolorb)); var opacity=0.8; } else if (mtype == 'vt') { wincolor='#000000'; var opacity=Math.pow(allvotes/maxavotes,curve); } else if (mtype == 'vl') { var mgn=((maxvotes-secondvotes)/allvotes) * 100; if (mgn == 0) { var opacity=0; } else if (mgn < 4) { var opacity=0.1; } else if (mgn < 9) { var opacity=0.3; } else if (mgn < 15) { var opacity=0.6; } else { var opacity=0.9; } } else if (mtype == 'vd' && curType == 'P') { for(var c in canids) { if (document.getElementById('MpCn'+canids[c]).checked) { var v=0; if (canv[cid]) { v=canv[cid][canids[c]]; } if (v == null) { v=0; } if (canpv[cid]) { percent_change=((v/allvotes)-(canpv[cid][canpty[canids[c]]]/allvotesp)); } else { percent_change=0; } if (percent_change > maxchange) { maxchange=percent_change; wincolor=cancolor[canids[c]]; } } } var opacity=Math.pow(maxchange,curve); } else if (mtype == 'vd') { for(var c in canids) { if (document.getElementById('MpCn'+canids[c]).checked) { var v=0; if (canv[cid]) { v=canv[cid][canids[c]]; } if (v == null) { v=0; } if (canp[cid]) { percent_change=((v/allvotes)-(canp[cid][canpty[canids[c]]]/allvotesp)); } else { percent_change=0; } if (percent_change > maxchange) { maxchange=percent_change; wincolor=cancolor[canids[c]]; } } } var opacity=Math.pow(maxchange,curve); } else if (mtype == 'vc') { for(var c in canids) { if (document.getElementById('MpCn'+canids[c]).checked) { var v=0; if (canv[cid]) { v=canv[cid][canids[c]]; } if (v == null) { v=0; } var canold=0; for(var key in racesubs[map]) { if (racesubs[map][key]['Subs'][cid] !== undefined) { for(var oc in racesubs[map][key]['Candidates']) { if (racesubs[map][key]['Candidates'][oc]['PartyID'] == canpty[canids[c]]) { canold+=racesubs[map][key]['Subs'][cid][oc]; } } } } if (canold) { percent_change=((v/allvotes)-(canold/allvotesp)); } else { percent_change=0; } if (percent_change > maxchange) { maxchange=percent_change; wincolor=cancolor[canids[c]]; } } } var opacity=Math.pow(maxchange,curve); } else if (mtype == 'vn') { for(var c in canids) { if (document.getElementById('MpCn'+canids[c]).checked) { var v=0; if (canv[cid]) { v=canv[cid][canids[c]]; } if (v == null) { v=0; } percent_change=((v/allvotes)-(canvotes[canids[c]]/racevotes)); if (percent_change > maxchange) { maxchange=percent_change; wincolor=cancolor[canids[c]]; } } } var opacity=Math.pow(maxchange,curve); } else if (mtype == 'dr') { var demosel=document.getElementById('SelDemographic').value; var demoval=demosel.split(': '); wincolor='#000000'; opacity=Math.pow(parseInt(demog[milk][cid]['Demographics'][demoval[0]][demoval[1]])/parseInt(demog[milk][cid]['Demographics']['Population']['Population']),curve); //console.log(opacity); } var sweight=0.5; if (curType == 'P') { sweight=0.1; } if (mtype == 'bm' || mtype == 'bv') { var radius=(Math.sqrt(bsize)/3.141529)*maxbubble[milk]*curve; if (bubbles[milk][i] === undefined) { if (!isNaN(geojsonLayer[milk]._layers[i].feature.geometry.properties.centroidlat)) { var pcenter=L.latLng(geojsonLayer[milk]._layers[i].feature.geometry.properties.centroidlat, geojsonLayer[milk]._layers[i].feature.geometry.properties.centroidlon); } else { var pcenter=geojsonLayer[milk]._layers[i].getBounds().getCenter(); } bubbles[milk][i]=L.circle(pcenter, { opacity:0, fillColor: wincolor, fillOpacity: bopacity, radius: radius, cid: cid }).addTo(leafmap[milk]); //bubbles[milk][i].feature.geometry.properties.cid=cid; bubbles[milk][i].on({ mouseover: putRaceInfo, mouseout: remRaceInfo, click: goRaceInfo }); } else { bubbles[milk][i].setStyle({fillOpacity: bopacity}); bubbles[milk][i].setRadius(radius); } } else { if (bubbles[milk] && bubbles[milk][i] !== undefined) { bubbles[milk][i].setStyle({fillOpacity: 0}); } if (opacity < 0.001) { opacity=0.4; wincolor='#ffffff'; } } geojsonLayer[milk]._layers[i].setStyle({fillColor:wincolor, fillOpacity:opacity, weight:sweight }); } } } function toHex(d) { return ("0"+(Number(d).toString(16))).slice(-2).toUpperCase(); } function putRaceInfo(e) { if (e.target.feature !== undefined) { var feature=e.target.feature; var cid=feature.geometry.properties.cid; } else { var cid=e.target.options.cid; } var msel=document.getElementById('ViewMap'); var map=msel.value; var newType=map.substr(0,1); if (newType == 'P') { var tcname=cname[cid]; } else { var tcname=subname[cid]; } var contentString='<table class="maprestblb" style="background-color:white;"><tr><th colspan="8" style="background-color:#333366;color:white;text-align:center;"><b>'+tcname+'</b></th></tr>'; var most=999999999999; var mostid=0; var didcan=[]; var mtype=document.getElementById('WhichMap').value; var milk=curView; if (mtype == 'vn') { var totalvotes=0; for(var i in canv[cid]) { if (document.getElementById('MpCn'+i).checked) { totalvotes+=canv[cid][i]; } } for(var j in canv[cid]) { if (document.getElementById('MpCn'+j) && document.getElementById('MpCn'+j).checked) { var newmost=-100; var pct=0; var delta=0; for(var i in canv[cid]) { if (document.getElementById('MpCn'+i) && document.getElementById('MpCn'+i).checked) { pct=Math.round((canv[cid][i]/totalvotes)*10000)/100; delta=(Math.round((pct-(canvotes[i]/3407926.000000*100))*100)/100); if (didcan[i] != 'Y' && delta <= most && delta >= newmost) { newmost=delta; mostid=i; } } } most=newmost; didcan[mostid]='Y'; pct=Math.round((canv[cid][mostid]/totalvotes)*10000)/100; delta=(Math.round((pct-(canvotes[mostid]/3407926.000000*100))*100)/100); contentString+='<tr><td bgcolor="'+cancolor[mostid]+'">&nbsp;</td><td>'+canname[mostid]+'</td><td align="right">'+pct+'%</td><td align="right">'+canv[cid][mostid]+'</td>'; if (delta >= 0) { delta='+'+delta; } contentString+='<td align="right">'+delta+'%</td>'; contentString+='</tr>'; } } } else if (mtype == 'vd') { var totalvotes=0; allvotesp=0; if (curType == 'P') { var tcan=canpv; } else { var tcan=canp; } for(var i in canv[cid]) { if (document.getElementById('MpCn'+i).checked) { totalvotes+=canv[cid][i]; if (tcan[cid] && tcan[cid][canpty[i]]) { allvotesp+=tcan[cid][canpty[i]]; } } } for(var j in canv[cid]) { if (document.getElementById('MpCn'+j).checked) { var newmost=-100; var pct=0; var delta=0; for(var i in canv[cid]) { if (document.getElementById('MpCn'+i).checked) { pct=Math.round((canv[cid][i]/totalvotes)*10000)/100; if (tcan[cid][canpty[i]]) { delta=(Math.round((pct-(tcan[cid][canpty[i]]/allvotesp*100))*100)/100); } else { delta=pct; } //delta=(Math.round((pct-(canvotes[i]/3407926.000000*100))*100)/100); if (didcan[i] != 'Y' && delta <= most && delta >= newmost) { newmost=delta; mostid=i; } } } most=newmost; didcan[mostid]='Y'; pct=Math.round((canv[cid][mostid]/totalvotes)*10000)/100; var pvotes=tcan[cid][canpty[mostid]]; var ppct=Math.round(pvotes/allvotesp*10000)/100; if (typeof pvotes === 'undefined') { pvotes=0; ppct=0; } if (tcan[cid][canpty[mostid]]) { delta=(Math.round((pct-(pvotes/allvotesp*100))*100)/100); } else { delta=pct; } if (curType == 'P') { var tname=canname[canptyv[canpty[mostid]]]; } else { var tname=canname[canptyv[canpty[mostid]]]; } if (typeof tname === 'undefined') { tname='n/a'; } contentString+='<tr><td bgcolor="'+cancolor[mostid]+'">&nbsp;</td><td>'+canname[mostid]+'</td><td align="right">'+pct+'%</td><td align="right">'+canv[cid][mostid]+'</td>'; contentString+='<td style="border-left:1px solid black;">'+tname+'</td>'; contentString+='<td align="right">'+ppct+'%</td>'; contentString+='<td align="right">'+pvotes+'</td>'; if (delta >= 0) { delta='+'+delta; } contentString+='<td align="right" style="border-left:1px solid black;">'+delta+'%</td>'; contentString+='</tr>'; } } } else if (mtype != 'dr') { for(var j in canv[cid]) { if (document.getElementById('MpCn'+j) && document.getElementById('MpCn'+j).checked) { var newmost=0; var totalvotes=0; for(var i in canv[cid]) { if (document.getElementById('MpCn'+i) && document.getElementById('MpCn'+i).checked) { totalvotes+=canv[cid][i]; if (didcan[i] != 'Y' && canv[cid][i] <= most && canv[cid][i] >= newmost) { newmost=canv[cid][i]; mostid=i; } } } most=newmost; didcan[mostid]='Y'; var pct=Math.round((canv[cid][mostid]/totalvotes)*10000)/100; contentString+='<tr><td bgcolor="'+cancolor[mostid]+'">&nbsp;</td><td>'+canname[mostid]+'</td><td align="right">'+pct+'%</td><td align="right">'+canv[cid][mostid]+'</td>'; contentString+='</tr>'; } } } else { var demosel=document.getElementById('SelDemographic').value; var demoval=demosel.split(': '); var demopct=parseInt(demog[milk][cid]['Demographics'][demoval[0]][demoval[1]])/parseInt(demog[milk][cid]['Demographics']['Population']['Population'])*100; contentString+='<tr><td>&nbsp;</td><td>'+demosel+'</td><td align="right">'+demopct.toFixed(2)+'%</td></tr>'; } contentString+='</table>'; $('#MapLocDetails').html(contentString); $('#MapLocDetails').show(); } function remRaceInfo(e) { $('#MapLocDetails').hide(); } function goRaceInfo(e) { if (e.target.feature !== undefined) { var feature=e.target.feature; var cid=feature.geometry.properties.cid; } else { var cid=e.target.options.cid; } if (raceid[cid] > 0) { window.location='RaceDetail.html?RaceID='+raceid[cid]; } else if (curType == 'P') { window.location='VotingDistrictEdit.html?VotingDistrictID='+cid; } else { window.location='ContainerDetail.html?ContainerID='+cid; } } function infoWinKilled() { infowindow=null; } function rollToMap(cid) { for (m=0; m<mpoly.length; m++) { var milk=mpidd[m+1]; if (mpoly[milk]) { for (i=0; i<mpoly[milk].length; i++) { if (mpcid[milk][i] == cid) { pcolor=dopoly[milk][i].strokeColor; dopoly[milk][i].setOptions({strokeColor:'#ffffff',zIndex:20}); } } } } } function rollOutToMap(cid) { for (m=0; m<mpoly.length; m++) { var milk=mpidd[m+1]; if (mpoly[milk]) { for (i=0; i<mpoly[milk].length; i++) { if (mpcid[milk][i] == cid) { dopoly[milk][i].setOptions({strokeColor:pcolor,zIndex:0}); } } } } } function loadDemographics(milk) { } </script> </IF> <script language="Javascript"> <!-- var cand={ "candidates": [ { "cid": "4049", "color": "#0000FF" }, { "cid": "4054", "color": "#FF0000" }, { "cid": "4053", "color": "#F400A1" }, { "cid": "4208", "color": "#BA0000" }, { "cid": "4209", "color": "#776600" }, { "cid": "4581", "color": "#FFC0CB" } ] }; </script> <table class="infotable" cellspacing="0" cellpadding="0" width="100%"> <tr bgcolor="#993333"><td class="Headline1" align="center" colspan="2"><a href="javascript:toggleMPGPanel()" class="Headline1">MATCHUP POLL GRAPH</a></td></tr> <!-- <tr><td class="Text1" colspan="2" align="center"><a href="https://www.ourcampaigns.com/cgi-bin/pollgraph.cgi?RaceID=2910&Width=600&Height=400&NoGraphMOE=&NoPollsters=0" target="_blank"><img name="PollGraph" src="/cgi-bin/pollgraph.cgi?RaceID=2910&NoGraphMOE=&NoPollsters=0" width="200" height="100" border="0"></a><br> --> <tr><td class="Switch0" colspan="2" align="center"> <div id="PollGraphDiv" style="width:400px;height:120px;overflow-x:scroll;"><canvas id="PollGraph" width="400" height="100" border="0" onmousedown="PGMDown(event)" onmouseup="PGMUp(event)">Poll Graph</canvas></div> <br> </td></tr> <tr><td align="left" class="Switch0">10/01/1932</td> <td align="right" class="Switch0">10/31/1932</td></tr> </table> <div id="MPGPanel" style="display:none"> <form name="PollGraphForm" method="post" action="RaceDetailTest.html?RaceID=2910&MPGPanel=Y"> <table border="0" width="100%"><tr><td valign="top" class="Text1" bgcolor="#7094D8"> <input type="checkbox" name="NoGraphMOE" id="NoGraphMOE" onclick="drawPollGraph()" value="Y">Graph Poll MoE/Time<br> <input type="checkbox" name="NoInternalPoll" id="NoInternalPoll" onclick="drawPollGraph()" value="Y">Remove Internal Polls<br> <input type="checkbox" name="RemBias" id="RemBias" onclick="drawPollGraph()" value="Y">Remove Firm Bias<br> <input type="text" name="GDM" id="GDM" onblur="drawPollGraph()" size="4" value="3">Graph Distance<br> <input type="text" name="GSQ" id="GSQ" onblur="drawPollGraph()" size="4" value="1.3">Graph Falloff<br> <input type="text" name="GDN" id="GDN" onblur="drawPollGraph()" size="4" value="32">Graph Days<br> <input type="text" name="GDO" id="GDO" onblur="drawPollGraph()" size="4" value="0">Graph Day Offset<br> </td> <td valign="top" class="Text1" bgcolor="#7094D8">Ignore Pollsters:<br> <input type="checkbox" name="NoPollster347" id="NoPollster347" onclick="drawPollGraph()" value="Y">Literary Digest<br> </td> </tr></table></form> </div> <script type="text/javascript"> var zoom=1; var offset=0; var gsq=1.3; var gdm=3; var domoe=true; var pdat={ "polls": [ { "id": "61972", "firmid": "347", "startdate": "705922", "enddate": "705952", "moe": "0.222700", "internalfor": "0", "test": "1 - 1", "results": [ {"cid": "4581","pid": "97","color": "#FFC0CB","value": "0.08"}, {"cid": "4209","pid": "1","color": "#776600","value": "0.4"}, {"cid": "4208","pid": "46","color": "#BA0000","value": "1.19"}, {"cid": "4053","pid": "9","color": "#F400A1","value": "3.96"}, {"cid": "4054","pid": "2","color": "#FF0000","value": "39.48"}, {"cid": "4049","pid": "1","color": "#0000FF","value": "54.73"} ] } ] }; var pfb=[]; pfb[347]=new Array; pfb[347][1]=-9.5882; pfb[347][2]=8.0000; pfb[347][5]=0.1905; pfb[347][9]=1.1216; pfb[347][10]=5.3834; pfb[347][38]=-0.1112; pfb[347][46]=0.1266; pfb[347][56]=0.9171; pfb[347][97]=-0.0422; pfb[347][224]=0.0423; pfb[347][242]=1.3635; pfb[347][251]=0.1696; pfb[347][275]=0.6301; pfb[347][451]=0.1488; pfb[347][454]=0.0864; pfb[347][1068]=0.0236; pfb[347][1070]=0.0992; pfb[347][1071]=0.2844; pfb[347][1115]=2.2830; pfb[347][1188]=0.0635; pfb[347][1482]=-0.1311; pfb[347][1502]=0.0011; pfb[347][2047]=0.8364; pfb[347][2050]=1.9696; pfb[347][2146]=0.2417; pfb[347][2147]=0.1204; pfb[347][2148]=-0.0086; pfb[347][2159]=11.8349; pfb[347][2161]=3.2707; pfb[347][2162]=9.2927; pfb[347][2545]=-4.3885; if (typeof console == "undefined") { var console = { log: function() {} }; } var pgmzoom=false; var pgmx=0; var pgmy=0; var pgmxo=0; var pgmyo=0; function drawPollGraph(){ var pgdiv=document.getElementById('PollGraphDiv'); pgdiv.scrollLeft=pgdiv.scrollWidth; var canvas = document.getElementById('PollGraph'); var didrb=0; if (canvas.getContext){ var domoe=document.getElementById('NoGraphMOE').checked; var nointernal=document.getElementById('NoInternalPoll').checked; var rembias=document.getElementById('RemBias').checked; gdm=parseFloat(document.getElementById('GDM').value); if (gdm == 0) { gdm=3; document.getElementById('GDM').value='3'; } gsq=parseFloat(document.getElementById('GSQ').value); if (gsq == 0) { gsq=1.3; document.getElementById('GSQ').value='1.3'; } gdn=parseFloat(document.getElementById('GDN').value); if (gdn == 0) { gdn=32; document.getElementById('GDN').value='32'; } gdo=parseFloat(document.getElementById('GDO').value); if (gdo == 0) { document.getElementById('GDO').value='0'; } //var xmult=300/gdn; var xmult=6.000000; var ctx = canvas.getContext('2d'); ctx.fillStyle = "#FFFFFF"; ctx.fillRect (0, 0, 400, 99); for (var i=10; i<100; i+=10) { var y=100-Math.floor(i*1.79436569172797); if (y>0) { if (i == 50) { ctx.strokeStyle = '#999999'; } else { ctx.strokeStyle = '#eeeeee'; } ctx.beginPath(); ctx.moveTo(0,y); ctx.lineTo(400,y); ctx.stroke(); } } var pxa=0; var pya=0; var pxb=0; var pyb=0; var cc=0; var ppx=new Array; var ppy=new Array; var padl=0.5; var tmp=0.1; //console.log(''+pdat.polls.length); for (var pc=0; pc < pdat.polls.length; pc++) { ppx[pc]=new Array; ppy[pc]=new Array; var tpmr=0; if (pdat.polls[pc].results == null) { tpmr=0; } else { tpmr=pdat.polls[pc].results.length; } for (cc=0; cc < tpmr; cc++) { ctx.fillStyle = pdat.polls[pc].results[cc].color; //ctx.strokeStyle = pdat.polls[pc].results[cc].color; tmp=parseFloat(pdat.polls[pc].results[cc].value); if (rembias && pfb[pdat.polls[pc].firmid][pdat.polls[pc].results[cc].pid]!=undefined) { tmp-=pfb[pdat.polls[pc].firmid][pdat.polls[pc].results[cc].pid]; if (tmp < 0) { tmp=0; } } pxa=Math.floor(((pdat.polls[pc].startdate-(705922+gdo))+1)*xmult); pya=Math.floor(((55.7300-tmp)+parseFloat(pdat.polls[pc].moe))*1.79436569172797); pxb=Math.floor(((pdat.polls[pc].enddate-(705922+gdo))+2)*xmult)-1; pyb=Math.floor(((55.7300-tmp)-parseFloat(pdat.polls[pc].moe))*1.79436569172797); // if (didrb < 4) { console.log('pxa='+pxa+' pya='+pya+' pxb='+pxb+' pyb='+pyb); didrb++; } padl=(pyb-pya)/10; if (!document.getElementById('NoPollster'+pdat.polls[pc].firmid).checked) { if (!nointernal || pdat.polls[pc].internalfor == 0) { if (domoe) { ctx.globalAlpha = 0.06; ctx.fillRect(pxa,pya,(pxb-pxa),(pyb-pya)); ctx.fillRect(pxa,pya+Math.floor(padl),(pxb-pxa),(pyb-pya)-Math.floor(padl*2)); ctx.fillRect(pxa,pya+Math.floor(padl*2),(pxb-pxa),(pyb-pya)-Math.floor(padl*4)); ctx.fillRect(pxa,pya+Math.floor(padl*3),(pxb-pxa),(pyb-pya)-Math.floor(padl*6)); ctx.fillRect(pxa,pya+Math.floor(padl*4),(pxb-pxa),(pyb-pya)-Math.floor(padl*8)); ctx.stroke(); try { ctx.globalAlpha = 0.4; ctx.beginPath(); ctx.arc(Math.floor(pxa+((pxb-pxa)/2)),Math.floor((55.7300-tmp)*1.79436569172797),2,0,Math.PI+(Math.PI*4)/2, false); ctx.fill(); } catch(e) { } } else { ctx.globalAlpha = 0.4; try { ctx.beginPath(); ctx.arc(Math.floor(pxa+((pxb-pxa)/2)),Math.floor((55.7300-tmp)*1.79436569172797),2,0,Math.PI+(Math.PI*4)/2, false); ctx.fill(); } catch(e) { } } } } ppx[pc][cc]=Math.floor(pxa+((pxb-pxa)/2)); ppy[pc][cc]=Math.floor((55.7300-tmp)*1.79436569172797); //console.log('ppx['+pc+']['+cc+']='+Math.floor(pxa+((pxb-pxa)/2))+'; ppy['+pc+']['+cc+']='+Math.floor((55.7300-tmp)*1.79436569172797)); } } var ly; var dy=1.4; ctx.globalAlpha = 1; for (var ic=0; ic < cand.candidates.length; ic++) { ly=-1.5; ctx.strokeStyle = cand.candidates[ic].color; ctx.beginPath(); for (var i=0; i < 400; i++) { dy=0; for (var pc=0; pc < pdat.polls.length; pc++) { if (!document.getElementById('NoPollster'+pdat.polls[pc].firmid).checked) { for (cc=0; cc < pdat.polls[pc].results.length; cc++) { if (pdat.polls[pc].results[cc].cid == cand.candidates[ic].cid) { if (!nointernal || pdat.polls[pc].internalfor == 0) { if (ly < 1) { ly=ppy[pc][cc]; ctx.moveTo(0,ly); } else if (Math.abs(i-ppx[pc][cc]) < 20) { ddy=(1/Math.pow(Math.abs(i-ppx[pc][cc])+gdm,gsq))/3; //if (ddy > .5) { ddy=.5; } else if (ddy <-.5) { ddy=-.5; } dy=dy+((ppy[pc][cc]-(ly+dy))*ddy); } } } } } } ly+=dy; if (ly < 1) { ly=1; } if (ly > 99) { ly=99; } try { ctx.lineTo(i,Math.floor(ly)); } catch(e) { } } ctx.stroke(); } } } function toggleMPGPanel() { var d=document.getElementById('MPGPanel'); if (d.style.display=='none') { d.style.display='block'; } else { d.style.display='none'; } } function PGMDown(e) { if (!e) { var e = window.event; } pgmx=e.clientX; pgmy=e.clientY; document.getElementById('PollGraph').onmousemove=PGMDrag; } function PGMUp() { document.getElementById('PollGraph').onmousemove=''; } function PGMDrag(e) { if (!e) { var e = window.event; } gdn=parseInt(document.getElementById('GDN').value); gdo=parseInt(document.getElementById('GDO').value); dy=e.clientY-pgmy; gdn+=dy; if (gdn < 1) { gdn=1; } else if (gdn > 32) { gdn=32; } document.getElementById('GDN').value=''+gdn; dx=pgmx-e.clientX; gdo+=(gdn/300)*dx; if (gdo < 0) { gdo=0; } else if ((gdo+gdn) > 32) { gdo=(32-gdn); } document.getElementById('GDO').value=''+Math.round(gdo); pgmy=e.clientY; pgmx=e.clientX; drawPollGraph(); } </script> </td></tr></table> <br> <form method="post" action="RaceDetail.html?RaceID=2910"> <table class="infotable" cellspacing="0" cellpadding="0" width="100%"> <tr bgcolor="#993333"><td colspan="7"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="42"><img src="../images/spacer.gif" width="40" height="15"></td> <td class="Headline1" align="center">CANDIDATES</td> <td width="42"></td></tr></table></td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Photo</td><td class="Switch0" align="center" valign="bottom"><a href="CandidateDetail.html?CandidateID=4049" class="Headline1"><img src="../images/candidates/b4/C4049D1933-01-01.jpg" width="75" border="0"></td> <td class="Switch0" align="center" valign="bottom"><a href="CandidateDetail.html?CandidateID=4054" class="Headline1"><img src="../images/candidates/b4/C4054D1932-01-01.jpg" width="75" border="0"></td> <td class="Switch0" align="center" valign="bottom"><a href="CandidateDetail.html?CandidateID=4053" class="Headline1"><img src="../images/candidates/b4/C4053D1937-01-01.jpg" width="75" border="0"></td> <td class="Switch0" align="center" valign="bottom"><a href="CandidateDetail.html?CandidateID=4208" class="Headline1"><img src="../images/candidates/b4/C4208D1930-01-01.jpg" width="75" border="0"></td> <td class="Switch0" align="center" valign="bottom"><a href="CandidateDetail.html?CandidateID=4209" class="Headline1"><img src="../images/candidates/b4/C4209D1925-01-01.jpg" width="75" border="0"></td> <td class="Switch0" align="center" valign="bottom"><a href="CandidateDetail.html?CandidateID=4581" class="Headline1"><img src="../images/candidates/b4/C4581D1928-01-01.jpg" width="75" border="0"></td> <td class="Switch0" colspan="1">&nbsp;</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Name</td> <td align="center" bgcolor="#6084C8" class="Headline1"> <a href="RaceDetail.html?RaceID=94435" class="Headline1">Gov.</a> <a href="CandidateDetail.html?CandidateID=4049" class="Headline1">Franklin D. Roosevelt</a></td> <td align="center" bgcolor="#6084C8" class="Headline1"> (I) <a href="RaceDetail.html?RaceID=1835" class="Headline1">President</a> <a href="CandidateDetail.html?CandidateID=4054" class="Headline1">Herbert C. Hoover</a></td> <td align="center" bgcolor="#6084C8" class="Headline1"> <a href="RaceDetail.html?RaceID=1835" class="Headline1"></a> <a href="CandidateDetail.html?CandidateID=4053" class="Headline1">Norman M. Thomas</a></td> <td align="center" bgcolor="#6084C8" class="Headline1"> <a href="RaceDetail.html?RaceID=291804" class="Headline1">General Secretary</a> <a href="CandidateDetail.html?CandidateID=4208" class="Headline1">William Z. Foster</a></td> <td align="center" bgcolor="#6084C8" class="Headline1"> <a href="RaceDetail.html?RaceID=253533" class="Headline1">Rep.</a> <a href="CandidateDetail.html?CandidateID=4209" class="Headline1">William D. Upshaw</a></td> <td align="center" bgcolor="#6084C8" class="Headline1"> <a href="RaceDetail.html?RaceID=253533" class="Headline1"></a> <a href="CandidateDetail.html?CandidateID=4581" class="Headline1">Verne L. Reynolds</a></td> <td class="Switch0" colspan="1">&nbsp;</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Party</td><td class="Text1" align="center" bgcolor="#0000FF"><a href="PartyDetail.html?PartyID=1" class="Headline1">Democratic</a></td> <td class="Text1" align="center" bgcolor="#FF0000"><a href="PartyDetail.html?PartyID=2" class="Headline1">Republican</a></td> <td class="Text1" align="center" bgcolor="#F400A1"><a href="PartyDetail.html?PartyID=9" class="Headline1">Socialist</a></td> <td class="Text1" align="center" bgcolor="#BA0000"><a href="PartyDetail.html?PartyID=46" class="Headline1">Communist</a></td> <td class="Text1" align="center" bgcolor="#776600"><a href="PartyDetail.html?PartyID=38" class="Headline1">Prohibition</a></td> <td class="Text1" align="center" bgcolor="#FFC0CB"><a href="PartyDetail.html?PartyID=97" class="Text1">Socialist Labor</a></td> <td class="Switch0" colspan="1">&nbsp;</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Campaign Logo</td><td class="Switch0" align="center"></td> <td class="Switch0" align="center"></td> <td class="Switch0" align="center"></td> <td class="Switch0" align="center"></td> <td class="Switch0" align="center"></td> <td class="Switch0" align="center"></td> <td class="Switch0" colspan="1">&nbsp;</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Certified Votes</td><td class="Switch0" align="center"><img src="../images/occoolcheck.gif"> 1,882,304 (55.23%)</td> <td class="Switch0" align="center"> 1,432,756 (42.04%)</td> <td class="Switch0" align="center"> 67,258 (1.97%)</td> <td class="Switch0" align="center"> 15,582 (0.46%)</td> <td class="Switch0" align="center"> 6,388 (0.19%)</td> <td class="Switch0" align="center"> 3,638 (0.11%)</td> <td class="Switch0" colspan="1">&nbsp;</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Margin</td><td class="Switch0" align="center">0 (0.00%)</td> <td class="Switch0" align="center">-449,548 (-13.19%)</td> <td class="Switch0" align="center">-1,815,046 (-53.26%)</td> <td class="Switch0" align="center">-1,866,722 (-54.78%)</td> <td class="Switch0" align="center">-1,875,916 (-55.05%)</td> <td class="Switch0" align="center">-1,878,666 (-55.13%)</td> <td class="Switch0" colspan="1">&nbsp;</td></tr> <tr><td bgcolor="#333366" align="right"><a href="RaceDetail.html?RaceID=2910&ShowPD=Y" class="Headline1">Predict Avg.</a></td><td class="Switch0" align="center">0.00%</td> <td class="Switch0" align="center">0.00%</td> <td class="Switch0" align="center">0.00%</td> <td class="Switch0" align="center">0.00%</td> <td class="Switch0" align="center">0.00%</td> <td class="Switch0" align="center">0.00%</td> <td class="Switch0" colspan="1">&nbsp;</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Cash On Hand</td><td class="Switch0" align="center" valign="top"> <a href="FinanceReportEdit.html?FinanceReportID=&RaceLink=2910&CandidateLink=4049" class="Text1"> $--</a> </td> <td class="Switch0" align="center" valign="top"> <a href="FinanceReportEdit.html?FinanceReportID=&RaceLink=2910&CandidateLink=4054" class="Text1"> $--</a> </td> <td class="Switch0" align="center" valign="top"> <a href="FinanceReportEdit.html?FinanceReportID=&RaceLink=2910&CandidateLink=4053" class="Text1"> $--</a> </td> <td class="Switch0" align="center" valign="top"> <a href="FinanceReportEdit.html?FinanceReportID=&RaceLink=2910&CandidateLink=4208" class="Text1"> $--</a> </td> <td class="Switch0" align="center" valign="top"> <a href="FinanceReportEdit.html?FinanceReportID=&RaceLink=2910&CandidateLink=4209" class="Text1"> $--</a> </td> <td class="Switch0" align="center" valign="top"> <a href="FinanceReportEdit.html?FinanceReportID=&RaceLink=2910&CandidateLink=4581" class="Text1"> $--</a> </td> <td class="Switch0" colspan="1">&nbsp;</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Website</td><td class="Switch0" align="center"> </td> <td class="Switch0" align="center"> </td> <td class="Switch0" align="center"> </td> <td class="Switch0" align="center"> </td> <td class="Switch0" align="center"> </td> <td class="Switch0" align="center"> </td> <td class="Switch0" colspan="1">&nbsp;</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Entry Date</td><td class="Switch0" align="center"> -- </td> <td class="Switch0" align="center"> -- </td> <td class="Switch0" align="center"> -- </td> <td class="Switch0" align="center"> -- </td> <td class="Switch0" align="center"> -- </td> <td class="Switch0" align="center"> -- </td> <td class="Switch0" colspan="1">&nbsp;</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Bar</td><td colspan="7"><table width="100%" cellspacing="0" cellpadding="0" border="0"><td style="width:55.23%;height:15px;" bgcolor="#0000FF"></td><td style="width:42.04%;height:15px;" bgcolor="#FF0000"></td><td style="width:1.97%;height:15px;" bgcolor="#F400A1"></td><td style="width:0.46%;height:15px;" bgcolor="#BA0000"></td><td style="width:0.19%;height:15px;" bgcolor="#776600"></td><td style="width:0.11%;height:15px;" bgcolor="#FFC0CB"></td></table></td></tr> <tr bgcolor="#993333"><td colspan="7"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr> <td width="42"><img src="../images/spacer.gif" width="40" height="15"></td><td class="Headline1" align="center"><a href="RaceDetail.html?RaceID=2910&ShowAllMUPoll=Y" class="Headline1">MATCHUP POLLS (1 from 1 pollsters)</a></td> <td width="42"><a href="PollEdit.html?AttachTo=Race&AttachID=2910"><img src="../images/ButtonAdd.gif" width="40" height="15" border="0"></a></td></tr></table></td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1"><a href="PollAvgDetail.html?RaceID=2910" class="Headline1" target="_blank">Adj Poll Avg</a></td><td class="Switch1" align="center">64.32%<img src="/images/spacer.gif">-- </td> <td class="Switch1" align="center">31.48%<img src="/images/spacer.gif">-- </td> <td class="Switch1" align="center">2.84%<img src="/images/spacer.gif">-- </td> <td class="Switch1" align="center">1.06%<img src="/images/spacer.gif">-- </td> <td class="Switch1" align="center">0.51%<img src="/images/spacer.gif">-- </td> <td class="Switch1" align="center">0.12%<img src="/images/spacer.gif">-- </td> <td class="Switch0" colspan="1">&nbsp;</td></tr> </tr> <tr bgcolor="#7094D8"> <td bgcolor="#333366" align="right" class="Headline1" width="100"><a href="PollEdit.html?PollID=61972" class="Headline1"><font size="-2">Literary Digest&nbsp;</font></a><br><font size="-2">10/01/32-10/31/32</font></td> <td align="center" class="Text1"><span style="white-space:nowrap;">54.73% <span style="color:#000000;"><img src="/images/spacer.gif">--</span></span> </td> <td align="center" class="Text1"><span style="white-space:nowrap;">39.48% <span style="color:#000000;"><img src="/images/spacer.gif">--</span></span> </td> <td align="center" class="Text1"><span style="white-space:nowrap;">3.96% <span style="color:#000000;"><img src="/images/spacer.gif">--</span></span> </td> <td align="center" class="Text1"><span style="white-space:nowrap;">1.19% <span style="color:#000000;"><img src="/images/spacer.gif">--</span></span> </td> <td align="center" class="Text1"><span style="white-space:nowrap;">0.40% <span style="color:#000000;"><img src="/images/spacer.gif">--</span></span> </td> <td align="center" class="Text1"><span style="white-space:nowrap;">0.08% <span style="color:#000000;"><img src="/images/spacer.gif">--</span></span> </td> </tr> <tr bgcolor="#993333"><td colspan="7"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr> <td width="42"><img src="../images/spacer.gif" width="40" height="15"></td><td class="Headline1" align="center"><a href="javascript:showAllEndorse()" class="Headline1">ENDORSEMENTS</a></td> <td width="42"><a href="EndorsementEdit.html?RaceLink=2910"><img src="../images/ButtonAdd.gif" width="40" height="15" border="0"></a></td></tr></table></td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1" width="100">Endorsements</td><td class="Switch0" align="center" valign="top"><div class="endorsediv"><table border="0"> <tr bgcolor="#6084C8"><td align="center" bgcolor="#0000FF" class="Text1">D</td> <td align="left"><a href="CandidateDetail.html?CandidateID=26840" class="Text1" style=" ">Harold L. Ickes</a> <a href="http://www.time.com/time/magazine/article/0,9171,745778-4,00.html" target="_blank" class="Text1">&#x1F517;</a> </td></tr> </table></div></td> <td class="Switch0" align="center" valign="top"><div class="endorsediv"><table border="0"> </table></div></td> <td class="Switch0" align="center" valign="top"><div class="endorsediv"><table border="0"> <tr bgcolor="#7094D8"><td align="center" bgcolor="#0000FF" class="Text1">D</td> <td align="left"><a href="CandidateDetail.html?CandidateID=8673" class="Text1" style=" ">Paul H. Douglas</a> <a href="http://www.harvardsquarelibrary.org/unitarians/douglas_p.html" target="_blank" class="Text1">&#x1F517;</a> </td></tr> </table></div></td> <td class="Switch0" align="center" valign="top"><div class="endorsediv"><table border="0"> </table></div></td> <td class="Switch0" align="center" valign="top"><div class="endorsediv"><table border="0"> </table></div></td> <td class="Switch0" align="center" valign="top"><div class="endorsediv"><table border="0"> </table></div></td> <td class="Switch0" colspan="1">&nbsp;</td></tr> </IF> </table> </form> <br> <br> <table class="infotable" cellspacing="0" cellpadding="0" width="100%"> <tr bgcolor="#993333"><td colspan="5"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr> <td width="42"><img src="../images/spacer.gif" width="40" height="15"></td><td class="Headline1" align="center"><a href="RaceDetail.html?RaceID=2910&ShowAllEvent=Y" class="Headline1">EVENTS</a></td> <td width="42"></td></tr></table></td></tr> <tr bgcolor="#333366" align="center"> <td class="Headline1">Start Date</td> <td class="Headline1">End Date</td> <td class="Headline1">Type</td> <td class="Headline1">Title</td> <td class="Headline1">Contributor</td> </tr> </table> <br> <script language="javascript"> <!-- function adVideoShow(code,codetype) { d=document.getElementById('AdVideoPlay'); if (codetype == 'Y') { d.innerHTML='<iframe width="250" height="175" src="https://www.youtube.com/embed/'+code+'" frameborder="0" allowfullscreen></iframe>'; } else if (codetype == 'V') { d.innerHTML='<iframe src="https://player.vimeo.com/video/'+code+'" width="250" height="175" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe><a href="javascript:adVideoHide()">X</a>'; } else if (codetype == 'B') { d.innerHTML='<embed src="https://c.brightcove.com/services/viewer/federated_f8/1485951475" bgcolor="#FFFFFF" flashVars="videoId='+code+'&playerId=1485951475&viewerSecureGatewayURL=https://console.brightcove.com/services/amfgateway&servicesURL=https://services.brightcove.com/services&cdnURL=https://admin.brightcove.com&domain=embed&autoStart=false&" base="https://admin.brightcove.com" name="flashObj" width="250" height="175" seamlesstabbing="false" type="application/x-shockwave-flash" swLiveConnect="true" pluginspage="https://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed><a href="javascript:adVideoHide()">X</a>'; } else if (codetype == 'I') { d.innerHTML='<object height="175" width="250" data="https://www.iqmediacorp.com/IQMedia_Player_v1.34.swf" type="application/x-shockwave-flash" name="HYETA" id="HUY"> <param value="https://www.iqmediacorp.com/IQMedia_Player_v1.34.swf" name="movie"><param value="true" name="allowfullscreen"><param value="always" name="allowscriptaccess"><param value="high" name="quality"><param value="transparent" name="wmode"><param value="userId=07175c0e-2b70-4325-be6d-611910730968&amp;IsRawMedia=false&amp;embedId='+code+'&amp;PageName=ClipPlayer&amp;EB=false&amp;ServicesBaseURL=2&amp;PlayerFromLocal=false&amp;autoPlayback=false" name="flashvars"></object></IF><a href="javascript:adVideoHide()">X</a>'; } else if (codetype == 'F') { d.innerHTML='<div class="fb-video" style="min-height:175px" data-href="https://www.facebook.com/facebook/videos/'+code+'/" data-width="250" data-show-text="false"></div>'; (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.6"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); } d.style.display='block'; } function adVideoHide() { document.getElementById('AdVideoPlay').style.display='none'; } //--> </script> <div id="fb-root"></div> <table class="infotable" cellspacing="0" cellpadding="0" width="100%"> <tr bgcolor="#993333"><td colspan="8"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr> <td width="42"><img src="../images/spacer.gif" width="40" height="15"></td><td class="Headline1" align="center">VIDEO ADVERTISEMENTS</td> <td width="42"><a href="AdVideoEdit.html?RaceLink=2910"><img src="../images/ButtonAdd.gif" width="40" height="15" border="0"></a></td></tr></table></td></tr> <tr bgcolor="#333366"><td style="width:260px;" valign="top"><div id="AdVideoPlay" style="display:none;"></div></td><td valign="top"><table class="infotable" cellspacing="0" cellpadding="0" style="width:99%"> <tr bgcolor="#333366" align="center"> <th class="Headline1" style="width:10%">Start Date</th> <th class="Headline1" style="width:20%;">Candidate</th> <th class="Headline1" style="width:10%;">Category</th> <th class="Headline1" style="width:10%;">Ad Tone</th> <th class="Headline1" style="width:5%;">Lng</th> <th class="Headline1" style="width:25%;">Title</th> <th class="Headline1" style="width:10%;">Run Time</th> <th class="Headline1" style="width:10%;">Contributor</th> </tr> </table> <div style="width:100%;height:100%;overflow:auto;"><table class="infotable" cellspacing="0" cellpadding="0" width="100%"> </table></div></td></tr> </table> <br> <table class="infotable" cellspacing="0" cellpadding="0" width="100%"> <tr bgcolor="#993333"><td colspan="4"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr> <td width="42"><img src="../images/spacer.gif" width="40" height="15"></td><td class="Headline1" align="center">BOOKS</td> <td width="42"><a href="BookEdit.html?AttachTo=Race&AttachID=2910"><img src="../images/ButtonAdd.gif" width="40" height="15" border="0"></a></td></tr></table></td></tr> <tr bgcolor="#333366" align="center"> <td class="Headline1">Title</td> <td class="Headline1">Purchase</td> <td class="Headline1">Contributor</td> </tr> </table> <br> <table class="infotable" cellspacing="0" cellpadding="0" width="100%"> <tr bgcolor="#993333"><td colspan="3"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr> <td width="42"><img src="../images/spacer.gif" width="40" height="15"></td><td class="Headline1" align="center">INFORMATION LINKS</td> <td width="42"></td></tr></table></td></tr> </table> <br> <table class="infotable" cellspacing="0" cellpadding="0" width="100%"> <tr bgcolor="#993333"><td colspan="5"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr> <td width="42"><img src="../images/spacer.gif" width="40" height="15"></td><td class="Headline1" align="center"><a href="RaceDetail.html?RaceID=2910&ShowAllNews=Y" class="Headline1">NEWS</a></td> <td width="42"></td></tr></table></td></tr> <tr bgcolor="#333366" align="center"> <td class="Headline1">Date</td> <td class="Headline1">Category</td> <td class="Headline1">Headline</td> <td class="Headline1">Article</td> <td class="Headline1">Contributor</td> </tr> </table> <br> <script language="javascript"> <!-- var epid=0; var etype=''; var doffset=0; function emotePanel(type,id,e) { if (!e) { var e = window.event; } if (e.pageX || e.pageY) { posx=e.pageX; posy=e.pageY; } else if (e.clientX || e.clientY) { posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft; posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop; } epid=id; etype=type; var p=document.getElementById('EmoteSelect'); p.style.left=(posx - 10) + 'px'; p.style.top=(posy - 5) + 'px'; p.style.display='block'; return false; } function emote(num) { var p=document.getElementById('EmoteSelect'); p.style.display='none'; if (num > 0) { var ajax = new Ajax(); ajax.send_params = 'TYPE='+etype+'&DID='+epid+'&EM='+num; ajax.send_url = 'https://www.ourcampaigns.com/ajax/SetEmote.html'; ajax.send_method = 'GET'; ajax.response_handler = function(resp) { if (resp != '') { document.getElementById('Emote'+etype+epid).innerHTML=resp; } } ajax.sendRequest(); } } function emoteView(type,id,num,e) { if (!e) { var e = window.event; } if (e.pageX || e.pageY) { posx=e.pageX; posy=e.pageY; } else if (e.clientX || e.clientY) { posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft; posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop; } var p=document.getElementById('EmotePeople'); p.style.left=(posx - 10) + 'px'; p.style.top=(posy - 5) + 'px'; var ajax = new Ajax(); ajax.send_params = 'TYPE='+type+'&DID='+id+'&EM='+num; ajax.send_url = 'https://www.ourcampaigns.com/ajax/EmoteViewPeople.html'; ajax.send_method = 'GET'; ajax.response_handler = function(resp) { if (resp != '') { var p=document.getElementById('EmotePeople'); p.innerHTML=resp; p.style.display='block'; } } ajax.sendRequest(); } function emoteBlur(id,num) { var p=document.getElementById('EmotePeople'); p.style.display='none'; } function prevDiscussion(num) { if (doffset > 0) { var ajax = new Ajax(); var odo=doffset; doffset-=num; if (doffset < 0) { doffset=0; } if (doffset < 26) { var ppdiv=document.getElementById('PrevPageDiv'); if (ppdiv) { ppdiv.style.display='none'; } } if (doffset == 0) { var pmdiv=document.getElementById('PreviousMsgTR'); if (pmdiv) { pmdiv.style.display='none'; } } document.getElementById('PreviousCount').innerHTML=''+doffset; ajax.send_params = 'IsAjax=Y&To=Race&RaceID=2910&ODO='+odo+'&DOffset='+doffset+'&IgnoreIDs=0&Sub=0&ArchiveCount=0&Page=RaceDetail.html'; ajax.send_url = 'https://www.ourcampaigns.com/discussion.html'; ajax.send_method = 'GET'; ajax.response_handler = function(resp) { if (resp != '') { var md=document.getElementById('DiscussDiv'); var newdiv=document.createElement('div'); newdiv.innerHTML=resp+' '; md.insertBefore(newdiv,md.firstChild); twttr.widgets.load(); } } ajax.sendRequest(); } } //--> </script> <div id="EmoteSelect" style="display:none;position:absolute;background-color:white;border:2px solid red;padding:4px;width:100px;z-index:300;"><b>Add Your 2&cent;</b><br><a href="javascript:emote(1)">Agree</a><br><a href="javascript:emote(2)">Disagree</a><br> <a href="javascript:emote(4)">Laugh</a><br><a href="javascript:emote(5)">Groan</a><br><a href="javascript:emote(3)">Troll</a><br><a href="javascript:emote(7)">Befuddled</a><br><a href="javascript:emote(6)">Work Complete</a><br><a href="javascript:emote(8)">Prediction</a><br><a href="javascript:emote(0)">[close]</a><br> </div> <div id="EmotePeople" style="display:none;position:absolute;background-color:white;border:2px solid red;padding:4px;width:100px;" onmouseout="emoteBlur()"> </div> <table class="infotable" cellspacing="0" cellpadding="0"><tr><th colspan="3">DISCUSSION</td></tr> <tr><td colspan="3"><div id="DiscussDiv" class="Switch0"> </td></tr> </table> <script language="JavaScript"> <!-- var fitem=''; function noChangeF(itm) { fitem=itm.value; } function noChangeU(itm) { itm.value=fitem; } function upIRV(fid,vnum) { var snum=vnum-1; var f1=eval('document.UserPoll'+fid+'.UPO'+snum); var f2=eval('document.UserPoll'+fid+'.UPO'+vnum); var fi1=eval('document.UserPoll'+fid+'.UPOI'+snum); var fi2=eval('document.UserPoll'+fid+'.UPOI'+vnum); var ftmp=f1.value; f1.value=f2.value; f2.value=ftmp; ftmp=fi1.value; fi1.value=fi2.value; fi2.value=ftmp; } function pubvotewin(upid) { var prw=window.open('userpollpub.html?UserPollID='+upid,'PubVote','scrollbars=yes,width=500,height=350'); } function quoteMsg(msgid,userid) { f=document.DiscussForm; f.DiscussText.value=f.DiscussText.value + '<q ' + userid + '>' + document.getElementById('MsgC'+msgid).innerHTML + '</q>\n'; } //--> </script> </IF> </td></tr></table> <div align="right"> </div> </td> </tr> </table> </body> </html> <script> if (typeof window.drawLeanGraph === 'undefined') { function drawLeanGraph() {} } </script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10