CINXE.COM
Our Campaigns - NE US Senate Race - Nov 03, 1936
<!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 - NE US Senate Race - Nov 03, 1936</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=30900"><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>"A comprehensive, collaborative elections resource." </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"> NE US Senate</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"> > <a href="ContainerDetail.html?ContainerID=1" class="Text1">United States</a> > <a href="ContainerDetail.html?ContainerID=20" class="Text1">Nebraska</a> > <a href="ContainerDetail.html?ContainerID=247" class="Text1">Senate Class II</a> </td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Office</td><td class="Switch0">Senate </td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Honorific</td><td class="Switch0">Senator - Abbr: Sen.</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"> March 01, 1936 - 12:00am Central</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Polls Open</td><td class="Switch0"> November 03, 1936 - 06:00am Central</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Polls Close</td><td class="Switch0"> November 03, 1936 - 08:00pm Central</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Term Start</td><td class="Switch0"> January 03, 1937 - 12:00pm</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Term End</td><td class="Switch0"> January 03, 1943 - 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=240" class="Text1">Wishful Thinking</a> June 24, 2003 08:14pm</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"> <img src="../images/candidates/b16/C16028D1930-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=30903" class="Text1">11/04/1930</a></td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Name</td><td class="Switch0"><a href="CandidateDetail.html?CandidateID=16028" class="Text1">George W. Norris</a></td> <td bgcolor="#333366" align="right" class="Headline1">Votes</td><td class="Switch0">247,118 (56.84%)</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Term</td><td class="Switch0">01/03/1931 - 01/03/1937</td> <td bgcolor="#333366" align="right" class="Headline1">Margin</td><td class="Switch0">74,323 (+17.09%)</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"> <img src="../images/candidates/Candidate16019.jpg" height="75"></td> <td bgcolor="#333366" align="right" class="Headline1">Party</td><td bgcolor="#FF0000"><a href="PartyDetail.html?PartyID=" class="Headline1">Republican</a></td> <td bgcolor="#333366" align="right" class="Headline1">Won</td><td class="Switch0"><a href="RaceDetail.html?RaceID=30890" class="Text1">11/03/1942</a></td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Name</td><td class="Switch0"><a href="CandidateDetail.html?CandidateID=16019" class="Text1">Kenneth S. Wherry</a></td> <td bgcolor="#333366" align="right" class="Headline1">Votes</td><td class="Switch0">186,207 (48.97%)</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Term</td><td class="Switch0">01/03/1943 - 01/03/1949</td> <td bgcolor="#333366" align="right" class="Headline1">Margin</td><td class="Switch0">77,308 (+20.33%)</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 14, 1936</td> <td class="Switch0"><a href="RaceDetail.html?RaceID=839932" class="Text1">NE US Senate - D Primary</a></td> <td class="Switch0"><div class="endorsediv"> Terry McGovern Carpenter </div></td> <td><table border="1"><tr> <td><span style="background-color:#0000FF">D</span> 131,538</td> </tr></table></td> </tr> <tr bgcolor="#6084C8" valign="top"> <td class="Switch0">Apr 14, 1936</td> <td class="Switch0"><a href="RaceDetail.html?RaceID=839933" class="Text1">NE US Senate - R Primary</a></td> <td class="Switch0"><div class="endorsediv"> Robert G. Simmons </div></td> <td><table border="1"><tr> <td><span style="background-color:#FF0000">R</span> 115,270</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=30900&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_canvas31" style="width:100%; height:300px;"></div> <div id="bitmap_holder31"></div> <div id="map_canvas527085" 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="V31">NE Counties - Vector</option> <option value="B31">NE Counties - Bitmap</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="MpCn16028" value="Y" checked="checked" onclick="changeMapType()"></td><td bgcolor="#878787"> </td><td>George W. Norris</td></tr> <tr><td><input type="checkbox" id="MpCn16046" value="Y" checked="checked" onclick="changeMapType()"></td><td bgcolor="#FF0000"> </td><td>Robert G. Simmons</td></tr> <tr><td><input type="checkbox" id="MpCn15837" value="Y" checked="checked" onclick="changeMapType()"></td><td bgcolor="#0000FF"> </td><td>Terry McGovern Carpenter</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> <iframe src="https://www.ourcampaigns.com/RaceMap.html?RaceID=30900" width="420" height="360"></iframe> <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[31]=new Array(0,4395,4396,4397,4398,4399,4400,4401,4402,4403,4404,4405,4406,4407,4408,4409,4410,4411,4412,4413,4414,4415,4416,4417,4418,4419,4420,4421,4422,4423,4424,4425,4426,4427,4428,4429,4430,4431,4432,4433,4434,4435,4436,4437,4438,4439,4440,4441,4442,4443,4444,4445,4446,4447,4448,4449,4450,4451,4452,4453,4454,4455,4456,4457,4458,4459,4460,4461,4462,4463,4464,4465,4466,4467,4468,4469,4470,4471,4472,4473,4474,4475,4476,4477,4478,4479,4480,4481,4482,4483,4484,4485,4486,4487); var pcolor=''; var curMap=0; var curView=31; var curType='V'; canids["1"]=16028; canname["16028"]='George W.'+" "+'Norris'; cancolor["16028"]='#878787'; canpty["16028"]='5'; canvotes["16028"]='258700'; canlon["16028"]='-100.6248741'; canlat["16028"]='40.1966701'; canids["2"]=16046; canname["16046"]='Robert G.'+" "+'Simmons'; cancolor["16046"]='#FF0000'; canpty["16046"]='2'; canvotes["16046"]='223276'; canlon["16046"]='-103.6671662'; canlat["16046"]='41.8666341'; canids["3"]=15837; canname["15837"]='Terry McGovern'+" "+'Carpenter'; cancolor["15837"]='#0000FF'; canpty["15837"]='1'; canvotes["15837"]='108391'; canlon["15837"]='-103.6616105'; canlat["15837"]='41.8474677'; canname["16028"]='George W.'+" "+'Norris'; canptyv["2"]=16028; canname["16054"]='Gilbert M.'+" "+'Hitchcock'; canptyv["1"]=16054; canname["16055"]='Beatrice F.'+" "+'Craig'; canptyv["5"]=16055; var canv=new Array; canv[4395]=new Array; subname[4395]='Adams'; canv[4395][15837]=1416; canv[4395][16028]=5794; canv[4395][16046]=3233; canv[4396]=new Array; subname[4396]='Antelope'; canv[4396][15837]=1042; canv[4396][16028]=2297; canv[4396][16046]=3032; canv[4397]=new Array; subname[4397]='Arthur'; canv[4397][15837]=81; canv[4397][16028]=163; canv[4397][16046]=291; canv[4398]=new Array; subname[4398]='Banner'; canv[4398][15837]=387; canv[4398][16028]=73; canv[4398][16046]=179; canv[4399]=new Array; subname[4399]='Blaine'; canv[4399][15837]=109; canv[4399][16028]=280; canv[4399][16046]=324; canv[4400]=new Array; subname[4400]='Boone'; canv[4400][15837]=999; canv[4400][16028]=2146; canv[4400][16046]=2646; canv[4401]=new Array; subname[4401]='Box Butte'; canv[4401][15837]=1632; canv[4401][16028]=1544; canv[4401][16046]=1435; canv[4402]=new Array; subname[4402]='Boyd'; canv[4402][15837]=433; canv[4402][16028]=1230; canv[4402][16046]=1181; canv[4403]=new Array; subname[4403]='Brown'; canv[4403][15837]=408; canv[4403][16028]=900; canv[4403][16046]=1251; canv[4404]=new Array; subname[4404]='Buffalo'; canv[4404][15837]=2029; canv[4404][16028]=4400; canv[4404][16046]=4259; canv[4405]=new Array; subname[4405]='Burt'; canv[4405][15837]=857; canv[4405][16028]=2404; canv[4405][16046]=2390; canv[4406]=new Array; subname[4406]='Butler'; canv[4406][15837]=1267; canv[4406][16028]=3167; canv[4406][16046]=2217; canv[4407]=new Array; subname[4407]='Cass'; canv[4407][15837]=1290; canv[4407][16028]=3743; canv[4407][16046]=3338; canv[4408]=new Array; subname[4408]='Cedar'; canv[4408][15837]=1072; canv[4408][16028]=3215; canv[4408][16046]=2207; canv[4409]=new Array; subname[4409]='Chase'; canv[4409][15837]=410; canv[4409][16028]=1177; canv[4409][16046]=875; canv[4410]=new Array; subname[4410]='Cherry'; canv[4410][15837]=735; canv[4410][16028]=1377; canv[4410][16046]=1722; canv[4411]=new Array; subname[4411]='Cheyenne'; canv[4411][15837]=1519; canv[4411][16028]=1654; canv[4411][16046]=1193; canv[4412]=new Array; subname[4412]='Clay'; canv[4412][15837]=666; canv[4412][16028]=2616; canv[4412][16046]=2565; canv[4413]=new Array; subname[4413]='Colfax'; canv[4413][15837]=1174; canv[4413][16028]=2038; canv[4413][16046]=1706; canv[4414]=new Array; subname[4414]='Cuming'; canv[4414][15837]=1058; canv[4414][16028]=2431; canv[4414][16046]=2140; canv[4415]=new Array; subname[4415]='Custer'; canv[4415][15837]=1780; canv[4415][16028]=4609; canv[4415][16046]=4642; canv[4416]=new Array; subname[4416]='Dakota'; canv[4416][15837]=1016; canv[4416][16028]=1927; canv[4416][16046]=1066; canv[4417]=new Array; subname[4417]='Dawes'; canv[4417][15837]=1263; canv[4417][16028]=1850; canv[4417][16046]=1831; canv[4418]=new Array; subname[4418]='Dawson'; canv[4418][15837]=1331; canv[4418][16028]=2897; canv[4418][16046]=3311; canv[4419]=new Array; subname[4419]='Deuel'; canv[4419][15837]=353; canv[4419][16028]=755; canv[4419][16046]=659; canv[4420]=new Array; subname[4420]='Dixon'; canv[4420][15837]=669; canv[4420][16028]=2133; canv[4420][16046]=1819; canv[4421]=new Array; subname[4421]='Dodge'; canv[4421][15837]=2415; canv[4421][16028]=4363; canv[4421][16046]=4153; canv[4422]=new Array; subname[4422]='Douglas'; canv[4422][15837]=23098; canv[4422][16028]=48276; canv[4422][16046]=32681; canv[4423]=new Array; subname[4423]='Dundy'; canv[4423][15837]=341; canv[4423][16028]=995; canv[4423][16046]=966; canv[4424]=new Array; subname[4424]='Fillmore'; canv[4424][15837]=752; canv[4424][16028]=2427; canv[4424][16046]=2770; canv[4425]=new Array; subname[4425]='Franklin'; canv[4425][15837]=655; canv[4425][16028]=2023; canv[4425][16046]=1371; canv[4426]=new Array; subname[4426]='Frontier'; canv[4426][15837]=344; canv[4426][16028]=1740; canv[4426][16046]=1367; canv[4427]=new Array; subname[4427]='Furnas'; canv[4427][15837]=597; canv[4427][16028]=2217; canv[4427][16046]=2522; canv[4428]=new Array; subname[4428]='Gage'; canv[4428][15837]=1778; canv[4428][16028]=5922; canv[4428][16046]=4704; canv[4429]=new Array; subname[4429]='Garden'; canv[4429][15837]=403; canv[4429][16028]=630; canv[4429][16046]=885; canv[4430]=new Array; subname[4430]='Garfield'; canv[4430][15837]=271; canv[4430][16028]=560; canv[4430][16046]=595; canv[4431]=new Array; subname[4431]='Gosper'; canv[4431][15837]=166; canv[4431][16028]=1140; canv[4431][16046]=445; canv[4432]=new Array; subname[4432]='Grant'; canv[4432][15837]=207; canv[4432][16028]=206; canv[4432][16046]=257; canv[4433]=new Array; subname[4433]='Greeley'; canv[4433][15837]=866; canv[4433][16028]=1468; canv[4433][16046]=1083; canv[4434]=new Array; subname[4434]='Hall'; canv[4434][15837]=2327; canv[4434][16028]=4221; canv[4434][16046]=5033; canv[4435]=new Array; subname[4435]='Hamilton'; canv[4435][15837]=618; canv[4435][16028]=2172; canv[4435][16046]=2523; canv[4436]=new Array; subname[4436]='Harlan'; canv[4436][15837]=357; canv[4436][16028]=1921; canv[4436][16046]=1440; canv[4437]=new Array; subname[4437]='Hayes'; canv[4437][15837]=183; canv[4437][16028]=674; canv[4437][16046]=584; canv[4438]=new Array; subname[4438]='Hitchcock'; canv[4438][15837]=364; canv[4438][16028]=1454; canv[4438][16046]=1143; canv[4439]=new Array; subname[4439]='Holt'; canv[4439][15837]=1050; canv[4439][16028]=3092; canv[4439][16046]=3312; canv[4440]=new Array; subname[4440]='Hooker'; canv[4440][15837]=74; canv[4440][16028]=143; canv[4440][16046]=253; canv[4441]=new Array; subname[4441]='Howard'; canv[4441][15837]=646; canv[4441][16028]=2355; canv[4441][16046]=1243; canv[4442]=new Array; subname[4442]='Jefferson'; canv[4442][15837]=889; canv[4442][16028]=3758; canv[4442][16046]=2643; canv[4443]=new Array; subname[4443]='Johnson'; canv[4443][15837]=484; canv[4443][16028]=2011; canv[4443][16046]=1919; canv[4444]=new Array; subname[4444]='Kearney'; canv[4444][15837]=327; canv[4444][16028]=2391; canv[4444][16046]=900; canv[4445]=new Array; subname[4445]='Keith'; canv[4445][15837]=801; canv[4445][16028]=1245; canv[4445][16046]=1018; canv[4446]=new Array; subname[4446]='Keya Paha'; canv[4446][15837]=138; canv[4446][16028]=427; canv[4446][16046]=766; canv[4447]=new Array; subname[4447]='Kimball'; canv[4447][15837]=851; canv[4447][16028]=522; canv[4447][16046]=630; canv[4448]=new Array; subname[4448]='Knox'; canv[4448][15837]=1205; canv[4448][16028]=3479; canv[4448][16046]=2655; canv[4449]=new Array; subname[4449]='Lancaster'; canv[4449][15837]=4176; canv[4449][16028]=19803; canv[4449][16046]=19440; canv[4450]=new Array; subname[4450]='Lincoln'; canv[4450][15837]=2353; canv[4450][16028]=4607; canv[4450][16046]=3732; canv[4451]=new Array; subname[4451]='Logan'; canv[4451][15837]=191; canv[4451][16028]=315; canv[4451][16046]=345; canv[4452]=new Array; subname[4452]='Loup'; canv[4452][15837]=81; canv[4452][16028]=313; canv[4452][16046]=375; canv[4453]=new Array; subname[4453]='McPherson'; canv[4453][15837]=103; canv[4453][16028]=155; canv[4453][16046]=306; canv[4454]=new Array; subname[4454]='Madison'; canv[4454][15837]=2133; canv[4454][16028]=4168; canv[4454][16046]=4661; canv[4455]=new Array; subname[4455]='Merrick'; canv[4455][15837]=991; canv[4455][16028]=1371; canv[4455][16046]=2401; canv[4456]=new Array; subname[4456]='Morrill'; canv[4456][15837]=1348; canv[4456][16028]=951; canv[4456][16046]=1077; canv[4457]=new Array; subname[4457]='Nance'; canv[4457][15837]=658; canv[4457][16028]=1300; canv[4457][16046]=1654; canv[4458]=new Array; subname[4458]='Nemaha'; canv[4458][15837]=910; canv[4458][16028]=2704; canv[4458][16046]=2406; canv[4459]=new Array; subname[4459]='Nuckolls'; canv[4459][15837]=725; canv[4459][16028]=2310; canv[4459][16046]=2022; canv[4460]=new Array; subname[4460]='Otoe'; canv[4460][15837]=1162; canv[4460][16028]=3113; canv[4460][16046]=4016; canv[4461]=new Array; subname[4461]='Pawnee'; canv[4461][15837]=448; canv[4461][16028]=1845; canv[4461][16046]=1924; canv[4462]=new Array; subname[4462]='Perkins'; canv[4462][15837]=416; canv[4462][16028]=1206; canv[4462][16046]=765; canv[4463]=new Array; subname[4463]='Phelps'; canv[4463][15837]=290; canv[4463][16028]=2749; canv[4463][16046]=1375; canv[4464]=new Array; subname[4464]='Pierce'; canv[4464][15837]=867; canv[4464][16028]=1648; canv[4464][16046]=1788; canv[4465]=new Array; subname[4465]='Platte'; canv[4465][15837]=2203; canv[4465][16028]=4403; canv[4465][16046]=2526; canv[4466]=new Array; subname[4466]='Polk'; canv[4466][15837]=502; canv[4466][16028]=2132; canv[4466][16046]=2047; canv[4467]=new Array; subname[4467]='Red Willow'; canv[4467][15837]=753; canv[4467][16028]=3078; canv[4467][16046]=1755; canv[4468]=new Array; subname[4468]='Richardson'; canv[4468][15837]=1391; canv[4468][16028]=4510; canv[4468][16046]=3371; canv[4469]=new Array; subname[4469]='Rock'; canv[4469][15837]=275; canv[4469][16028]=512; canv[4469][16046]=843; canv[4470]=new Array; subname[4470]='Saline'; canv[4470][15837]=1254; canv[4470][16028]=4285; canv[4470][16046]=2370; canv[4471]=new Array; subname[4471]='Sarpy'; canv[4471][15837]=967; canv[4471][16028]=2168; canv[4471][16046]=1324; canv[4472]=new Array; subname[4472]='Saunders'; canv[4472][15837]=1843; canv[4472][16028]=4179; canv[4472][16046]=3274; canv[4473]=new Array; subname[4473]='Scotts Bluff'; canv[4473][15837]=5066; canv[4473][16028]=1713; canv[4473][16046]=3069; canv[4474]=new Array; subname[4474]='Seward'; canv[4474][15837]=815; canv[4474][16028]=3129; canv[4474][16046]=2860; canv[4475]=new Array; subname[4475]='Sheridan'; canv[4475][15837]=1252; canv[4475][16028]=1358; canv[4475][16046]=1761; canv[4476]=new Array; subname[4476]='Sherman'; canv[4476][15837]=599; canv[4476][16028]=2216; canv[4476][16046]=1170; canv[4477]=new Array; subname[4477]='Sioux'; canv[4477][15837]=681; canv[4477][16028]=307; canv[4477][16046]=574; canv[4478]=new Array; subname[4478]='Stanton'; canv[4478][15837]=718; canv[4478][16028]=1308; canv[4478][16046]=1126; canv[4479]=new Array; subname[4479]='Thayer'; canv[4479][15837]=776; canv[4479][16028]=2829; canv[4479][16046]=2361; canv[4480]=new Array; subname[4480]='Thomas'; canv[4480][15837]=143; canv[4480][16028]=246; canv[4480][16046]=330; canv[4481]=new Array; subname[4481]='Thurston'; canv[4481][15837]=990; canv[4481][16028]=1706; canv[4481][16046]=1009; canv[4482]=new Array; subname[4482]='Valley'; canv[4482][15837]=654; canv[4482][16028]=1542; canv[4482][16046]=1787; canv[4483]=new Array; subname[4483]='Washington'; canv[4483][15837]=1179; canv[4483][16028]=2275; canv[4483][16046]=2050; canv[4484]=new Array; subname[4484]='Wayne'; canv[4484][15837]=522; canv[4484][16028]=1957; canv[4484][16046]=1936; canv[4485]=new Array; subname[4485]='Webster'; canv[4485][15837]=491; canv[4485][16028]=2147; canv[4485][16046]=1618; canv[4486]=new Array; subname[4486]='Wheeler'; canv[4486][15837]=192; canv[4486][16028]=320; canv[4486][16046]=363; canv[4487]=new Array; subname[4487]='York'; canv[4487][15837]=970; canv[4487][16028]=3165; canv[4487][16046]=4092; var canp=new Array; canp[4395]=new Array; canp[4395][1]=2994; canp[4395][2]=4798; canp[4395][5]=295; canp[4396]=new Array; canp[4396][1]=2076; canp[4396][2]=3076; canp[4396][5]=172; canp[4397]=new Array; canp[4397][1]=202; canp[4397][2]=236; canp[4397][5]=86; canp[4398]=new Array; canp[4398][1]=237; canp[4398][2]=355; canp[4398][5]=30; canp[4399]=new Array; canp[4399][1]=168; canp[4399][2]=407; canp[4399][5]=29; canp[4400]=new Array; canp[4400][1]=2097; canp[4400][2]=3036; canp[4400][5]=190; canp[4401]=new Array; canp[4401][1]=1304; canp[4401][2]=1712; canp[4401][5]=115; canp[4402]=new Array; canp[4402][1]=882; canp[4402][2]=1649; canp[4402][5]=51; canp[4403]=new Array; canp[4403][1]=925; canp[4403][2]=1434; canp[4403][5]=90; canp[4404]=new Array; canp[4404][1]=3213; canp[4404][2]=3896; canp[4404][5]=263; canp[4405]=new Array; canp[4405][1]=1654; canp[4405][2]=1879; canp[4405][5]=64; canp[4406]=new Array; canp[4406][1]=2750; canp[4406][2]=2198; canp[4406][5]=169; canp[4407]=new Array; canp[4407][1]=2393; canp[4407][2]=3412; canp[4407][5]=205; canp[4408]=new Array; canp[4408][1]=1778; canp[4408][2]=3917; canp[4408][5]=79; canp[4409]=new Array; canp[4409][1]=625; canp[4409][2]=1008; canp[4409][5]=101; canp[4410]=new Array; canp[4410][1]=1583; canp[4410][2]=1735; canp[4410][5]=168; canp[4411]=new Array; canp[4411][1]=1377; canp[4411][2]=1921; canp[4411][5]=108; canp[4412]=new Array; canp[4412][1]=1704; canp[4412][2]=3645; canp[4412][5]=289; canp[4413]=new Array; canp[4413][1]=1758; canp[4413][2]=1663; canp[4413][5]=40; canp[4414]=new Array; canp[4414][1]=1600; canp[4414][2]=2642; canp[4414][5]=47; canp[4415]=new Array; canp[4415][1]=3340; canp[4415][2]=5716; canp[4415][5]=582; canp[4416]=new Array; canp[4416][1]=823; canp[4416][2]=2126; canp[4416][5]=63; canp[4417]=new Array; canp[4417][1]=1487; canp[4417][2]=2192; canp[4417][5]=146; canp[4418]=new Array; canp[4418][1]=2076; canp[4418][2]=3444; canp[4418][5]=277; canp[4419]=new Array; canp[4419][1]=420; canp[4419][2]=599; canp[4419][5]=50; canp[4420]=new Array; canp[4420][1]=1015; canp[4420][2]=2851; canp[4420][5]=86; canp[4421]=new Array; canp[4421][1]=3738; canp[4421][2]=4360; canp[4421][5]=280; canp[4422]=new Array; canp[4422][1]=33126; canp[4422][2]=27515; canp[4422][5]=1285; canp[4423]=new Array; canp[4423][1]=572; canp[4423][2]=1353; canp[4423][5]=64; canp[4424]=new Array; canp[4424][1]=1999; canp[4424][2]=2734; canp[4424][5]=220; canp[4425]=new Array; canp[4425][1]=1446; canp[4425][2]=2124; canp[4425][5]=189; canp[4426]=new Array; canp[4426][1]=813; canp[4426][2]=2067; canp[4426][5]=79; canp[4427]=new Array; canp[4427][1]=1375; canp[4427][2]=2759; canp[4427][5]=250; canp[4428]=new Array; canp[4428][1]=3370; canp[4428][2]=5638; canp[4428][5]=445; canp[4429]=new Array; canp[4429][1]=655; canp[4429][2]=1113; canp[4429][5]=99; canp[4430]=new Array; canp[4430][1]=480; canp[4430][2]=688; canp[4430][5]=40; canp[4431]=new Array; canp[4431][1]=418; canp[4431][2]=888; canp[4431][5]=42; canp[4432]=new Array; canp[4432][1]=264; canp[4432][2]=272; canp[4432][5]=10; canp[4433]=new Array; canp[4433][1]=1172; canp[4433][2]=1828; canp[4433][5]=128; canp[4434]=new Array; canp[4434][1]=2649; canp[4434][2]=5310; canp[4434][5]=174; canp[4435]=new Array; canp[4435][1]=1458; canp[4435][2]=3033; canp[4435][5]=150; canp[4436]=new Array; canp[4436][1]=970; canp[4436][2]=2140; canp[4436][5]=138; canp[4437]=new Array; canp[4437][1]=371; canp[4437][2]=923; canp[4437][5]=61; canp[4438]=new Array; canp[4438][1]=811; canp[4438][2]=1229; canp[4438][5]=111; canp[4439]=new Array; canp[4439][1]=1982; canp[4439][2]=3651; canp[4439][5]=236; canp[4440]=new Array; canp[4440][1]=212; canp[4440][2]=273; canp[4440][5]=8; canp[4441]=new Array; canp[4441][1]=1332; canp[4441][2]=2158; canp[4441][5]=59; canp[4442]=new Array; canp[4442][1]=1556; canp[4442][2]=4575; canp[4442][5]=204; canp[4443]=new Array; canp[4443][1]=1217; canp[4443][2]=2320; canp[4443][5]=150; canp[4444]=new Array; canp[4444][1]=984; canp[4444][2]=1923; canp[4444][5]=124; canp[4445]=new Array; canp[4445][1]=1006; canp[4445][2]=1258; canp[4445][5]=101; canp[4446]=new Array; canp[4446][1]=545; canp[4446][2]=790; canp[4446][5]=37; canp[4447]=new Array; canp[4447][1]=649; canp[4447][2]=955; canp[4447][5]=60; canp[4448]=new Array; canp[4448][1]=2190; canp[4448][2]=3583; canp[4448][5]=102; canp[4449]=new Array; canp[4449][1]=10230; canp[4449][2]=12992; canp[4449][5]=1546; canp[4450]=new Array; canp[4450][1]=2230; canp[4450][2]=3288; canp[4450][5]=208; canp[4451]=new Array; canp[4451][1]=349; canp[4451][2]=436; canp[4451][5]=69; canp[4452]=new Array; canp[4452][1]=151; canp[4452][2]=366; canp[4452][5]=34; canp[4453]=new Array; canp[4453][1]=142; canp[4453][2]=223; canp[4453][5]=37; canp[4454]=new Array; canp[4454][1]=3195; canp[4454][2]=3834; canp[4454][5]=143; canp[4455]=new Array; canp[4455][1]=1116; canp[4455][2]=2572; canp[4455][5]=220; canp[4456]=new Array; canp[4456][1]=938; canp[4456][2]=1617; canp[4456][5]=76; canp[4457]=new Array; canp[4457][1]=1041; canp[4457][2]=1909; canp[4457][5]=122; canp[4458]=new Array; canp[4458][1]=1855; canp[4458][2]=2659; canp[4458][5]=143; canp[4459]=new Array; canp[4459][1]=1580; canp[4459][2]=2593; canp[4459][5]=179; canp[4460]=new Array; canp[4460][1]=2337; canp[4460][2]=3009; canp[4460][5]=213; canp[4461]=new Array; canp[4461][1]=1517; canp[4461][2]=2082; canp[4461][5]=128; canp[4462]=new Array; canp[4462][1]=653; canp[4462][2]=970; canp[4462][5]=78; canp[4463]=new Array; canp[4463][1]=1176; canp[4463][2]=2251; canp[4463][5]=92; canp[4464]=new Array; canp[4464][1]=1426; canp[4464][2]=1926; canp[4464][5]=94; canp[4465]=new Array; canp[4465][1]=2390; canp[4465][2]=3820; canp[4465][5]=88; canp[4466]=new Array; canp[4466][1]=1268; canp[4466][2]=2384; canp[4466][5]=228; canp[4467]=new Array; canp[4467][1]=1108; canp[4467][2]=2892; canp[4467][5]=76; canp[4468]=new Array; canp[4468][1]=2720; canp[4468][2]=4581; canp[4468][5]=129; canp[4469]=new Array; canp[4469][1]=461; canp[4469][2]=848; canp[4469][5]=58; canp[4470]=new Array; canp[4470][1]=2995; canp[4470][2]=3566; canp[4470][5]=120; canp[4471]=new Array; canp[4471][1]=1636; canp[4471][2]=2041; canp[4471][5]=76; canp[4472]=new Array; canp[4472][1]=3297; canp[4472][2]=4318; canp[4472][5]=180; canp[4473]=new Array; canp[4473][1]=2296; canp[4473][2]=3155; canp[4473][5]=207; canp[4474]=new Array; canp[4474][1]=1808; canp[4474][2]=3518; canp[4474][5]=162; canp[4475]=new Array; canp[4475][1]=1577; canp[4475][2]=1783; canp[4475][5]=188; canp[4476]=new Array; canp[4476][1]=1218; canp[4476][2]=1667; canp[4476][5]=138; canp[4477]=new Array; canp[4477][1]=417; canp[4477][2]=839; canp[4477][5]=59; canp[4478]=new Array; canp[4478][1]=1211; canp[4478][2]=1330; canp[4478][5]=71; canp[4479]=new Array; canp[4479][1]=1738; canp[4479][2]=3050; canp[4479][5]=155; canp[4480]=new Array; canp[4480][1]=258; canp[4480][2]=297; canp[4480][5]=17; canp[4481]=new Array; canp[4481][1]=1181; canp[4481][2]=1838; canp[4481][5]=45; canp[4482]=new Array; canp[4482][1]=982; canp[4482][2]=1882; canp[4482][5]=160; canp[4483]=new Array; canp[4483][1]=2092; canp[4483][2]=2165; canp[4483][5]=78; canp[4484]=new Array; canp[4484][1]=1147; canp[4484][2]=2315; canp[4484][5]=91; canp[4485]=new Array; canp[4485][1]=1174; canp[4485][2]=2554; canp[4485][5]=140; canp[4486]=new Array; canp[4486][1]=207; canp[4486][2]=614; canp[4486][5]=18; canp[4487]=new Array; canp[4487][1]=1837; canp[4487][2]=3927; canp[4487][5]=377; mpidd[1]=31; mpidd[2]=31; </script> <script type="text/javascript"> function pageLoaded() { //alert('Page Loaded'); viewMapChange(); $( window ).resize(function() { setMapRatio(curView,0.448137); 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=30903', 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,0.448137); 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 © <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 == 247) { 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,0.448137); 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=30900&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('1936-11-03 20: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=30900'; 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]=='247') { 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]/590367.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]/590367.000000*100))*100)/100); contentString+='<tr><td bgcolor="'+cancolor[mostid]+'"> </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]/590367.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]+'"> </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]+'"> </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> </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": "16028", "color": "#878787" }, { "cid": "16046", "color": "#FF0000" }, { "cid": "15837", "color": "#0000FF" } ] }; </script> <script> function drawPollGraph(){ } </script> </td></tr></table> <br> <form method="post" action="RaceDetail.html?RaceID=30900"> <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">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=16028" class="Headline1"><img src="../images/candidates/b16/C16028D1930-01-01.jpg" width="75" border="0"></td> <td class="Switch0" align="center" valign="bottom"><a href="CandidateDetail.html?CandidateID=16046" class="Headline1"></td> <td class="Switch0" align="center" valign="bottom"><a href="CandidateDetail.html?CandidateID=15837" class="Headline1"><img src="../images/candidates/b15/C15837D0000-00-00.jpg" width="75" border="0"></td> <td class="Switch0" colspan="4"> </td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Name</td> <td align="center" bgcolor="#6084C8" class="Headline1"> (I) <a href="RaceDetail.html?RaceID=30903" class="Headline1">Sen.</a> <a href="CandidateDetail.html?CandidateID=16028" class="Headline1">George W. Norris</a></td> <td align="center" bgcolor="#6084C8" class="Headline1"> <a href="RaceDetail.html?RaceID=379703" class="Headline1">Rep.</a> <a href="CandidateDetail.html?CandidateID=16046" class="Headline1">Robert G. Simmons</a></td> <td align="center" bgcolor="#6084C8" class="Headline1"> <a href="RaceDetail.html?RaceID=379704" class="Headline1">Rep.</a> <a href="CandidateDetail.html?CandidateID=15837" class="Headline1">Terry McGovern Carpenter</a></td> <td class="Switch0" colspan="4"> </td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Party</td><td class="Text1" align="center" bgcolor="#878787"><a href="PartyDetail.html?PartyID=5" class="Headline1">Independent</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="#0000FF"><a href="PartyDetail.html?PartyID=1" class="Headline1">Democratic</a></td> <td class="Switch0" colspan="4"> </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" colspan="4"> </td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1"> <span style="font-size:11px;">Uncertified</span> Votes</td><td class="Switch0" align="center"><img src="../images/occoolcheck.gif"> 258,700 (43.82%)</td> <td class="Switch0" align="center"> 223,276 (37.82%)</td> <td class="Switch0" align="center"> 108,391 (18.36%)</td> <td class="Switch0" colspan="4"> </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">-35,424 (-6.00%)</td> <td class="Switch0" align="center">-150,309 (-25.46%)</td> <td class="Switch0" colspan="4"> </td></tr> <tr><td bgcolor="#333366" align="right"><a href="RaceDetail.html?RaceID=30900&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" colspan="4"> </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=30900&CandidateLink=16028" class="Text1"> $--</a> </td> <td class="Switch0" align="center" valign="top"> <a href="FinanceReportEdit.html?FinanceReportID=&RaceLink=30900&CandidateLink=16046" class="Text1"> $--</a> </td> <td class="Switch0" align="center" valign="top"> <a href="FinanceReportEdit.html?FinanceReportID=&RaceLink=30900&CandidateLink=15837" class="Text1"> $--</a> </td> <td class="Switch0" colspan="4"> </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" colspan="4"> </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" colspan="4"> </td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Bar</td><td colspan="4"><table width="100%" cellspacing="0" cellpadding="0" border="0"><td style="width:43.82%;height:15px;" bgcolor="#878787"></td><td style="width:37.82%;height:15px;" bgcolor="#FF0000"></td><td style="width:18.36%;height:15px;" bgcolor="#0000FF"></td></table></td></tr> <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"><a href="RaceDetail.html?RaceID=30900&ShowAllMUPoll=Y" class="Headline1">MATCHUP POLLS (0 from 0 pollsters)</a></td> <td width="42"><a href="PollEdit.html?AttachTo=Race&AttachID=30900"><img src="../images/ButtonAdd.gif" width="40" height="15" border="0"></a></td></tr></table></td></tr> <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"><a href="javascript:showAllEndorse()" class="Headline1">ENDORSEMENTS</a></td> <td width="42"><a href="EndorsementEdit.html?RaceLink=30900"><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="#7094D8"><td align="center" bgcolor="#878787" class="Text1">I</td> <td align="left"><a href="UserDetail.html?UserID=9951" class="Text1" style=" "><b>E Pluribus Unum</b></a> </td></tr> <tr bgcolor="#6084C8"><td align="center" bgcolor="#DD22FF" class="Text1">Laf-W</td> <td align="left"><a href="UserDetail.html?UserID=2005" class="Text1" style=" "><b>Craverguy</b></a> </td></tr> <tr bgcolor="#7094D8"><td align="center" class="Text1"> </td> <td align="center" class="Text1"> Nebraska Democratic Party </td></tr> <tr bgcolor="#6084C8"><td align="center" bgcolor="#0000FF" class="Text1">D</td> <td align="left"><a href="CandidateDetail.html?CandidateID=4049" class="Text1" style=" ">Franklin D. Roosevelt</a> </td></tr> </table></div></td> <td class="Switch0" align="center" valign="top"><div class="endorsediv"><table border="0"> <tr bgcolor="#7094D8"><td align="center" bgcolor="#FF0000" class="Text1">R</td> <td align="left"><a href="UserDetail.html?UserID=6977" class="Text1" style=" "><b>Impy</b></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" colspan="4"> </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=30900&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&IsRawMedia=false&embedId='+code+'&PageName=ClipPlayer&EB=false&ServicesBaseURL=2&PlayerFromLocal=false&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=30900"><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=30900"><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=30900&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=30900&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¢</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>