CINXE.COM
Our Campaigns - MS - District 05 Race - Nov 06, 1888
<!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 - MS - District 05 Race - Nov 06, 1888</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=483259"><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"> MS - District 05</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=27" class="Text1">Mississippi</a> > <a href="ContainerDetail.html?ContainerID=740" class="Text1">MS - District 05</a> </td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Office</td><td class="Switch0">House of Representatives </td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Honorific</td><td class="Switch0">Representative - Abbr: Rep.</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Type</td><td class="Switch0"> General Election</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Filing Deadline</td><td class="Switch0"> June 01, 1888 - 12:00pm Central</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Polls Open</td><td class="Switch0"> November 06, 1888 - 06:00am Central</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Polls Close</td><td class="Switch0"> November 06, 1888 - 07:00pm Central</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Term Start</td><td class="Switch0"> March 04, 1889 - 12:00pm</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Term End</td><td class="Switch0"> March 03, 1891 - 12:00pm</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Contributor</td><td class="Switch0"><a href="UserDetail.html?UserID=334" class="Text1">Thomas Walker</a></td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Last Modified</td><td class="Switch0"><a href="UserDetail.html?UserID=334" class="Text1">Thomas Walker</a> October 29, 2008 02:31pm</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Data Sources</td><td class="Switch0">United States Congressional Elections, 1788-1997 The Official Results Michael J. Dubin</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"></td> <td bgcolor="#333366" align="right" class="Headline1">Party</td><td bgcolor="#0000FF"><a href="PartyDetail.html?PartyID=1" class="Headline1">Democratic</a></td> <td bgcolor="#333366" align="right" class="Headline1">Won</td><td class="Switch0"><a href="RaceDetail.html?RaceID=483258" class="Text1">11/02/1886</a></td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Name</td><td class="Switch0"><a href="CandidateDetail.html?CandidateID=199836" class="Text1">Chapman L. Anderson</a></td> <td bgcolor="#333366" align="right" class="Headline1">Votes</td><td class="Switch0">4,289 (99.37%)</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Term</td><td class="Switch0">03/04/1887 - 03/03/1889</td> <td bgcolor="#333366" align="right" class="Headline1">Margin</td><td class="Switch0">4,262 (+98.75%)</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"></td> <td bgcolor="#333366" align="right" class="Headline1">Party</td><td bgcolor="#0000FF"><a href="PartyDetail.html?PartyID=" class="Headline1">Democratic</a></td> <td bgcolor="#333366" align="right" class="Headline1">Won</td><td class="Switch0"><a href="RaceDetail.html?RaceID=483260" class="Text1">11/04/1890</a></td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Name</td><td class="Switch0"><a href="CandidateDetail.html?CandidateID=199838" class="Text1">Joseph H. Beeman</a></td> <td bgcolor="#333366" align="right" class="Headline1">Votes</td><td class="Switch0">6,306 (100.00%)</td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Term</td><td class="Switch0">03/04/1891 - 03/03/1893</td> <td bgcolor="#333366" align="right" class="Headline1">Margin</td><td class="Switch0">6,306 (+100.00%)</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> </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=483259&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_canvas502643" style="width:100%; height:300px;display:none;"></div> </div> <div id="MapLocDetails" style="display:none;width:100%;"></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; var pcolor=''; var curMap=0; var curView=0; var curType=''; canids["1"]=199836; canname["199836"]='Chapman L.'+" "+'Anderson'; cancolor["199836"]='#0000FF'; canpty["199836"]='1'; canvotes["199836"]='16265'; canlon["199836"]='-89.5875764'; canlat["199836"]='33.0576295'; canids["2"]=199837; canname["199837"]='F. M.'+" "+'Cook'; cancolor["199837"]='#FF0000'; canpty["199837"]='2'; canvotes["199837"]='3994'; canlon["199837"]='0.0000000'; canlat["199837"]='0.0000000'; canname["30530"]=''+" "+'Scattering'; canptyv["84"]=30530; canname["199836"]='Chapman L.'+" "+'Anderson'; canptyv["1"]=199836; var canv=new Array; var canp=new Array; function pageLoaded() { //alert('Page Loaded'); viewMapChange(); $( window ).resize(function() { setMapRatio(curView,0.959772); 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=483258', 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.959772); 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[10304]=new Array(); $.getJSON( "/geojson/MapImage10304.json", function( data ) { mpoly[10304]=data; for(var i=0; i<mpoly[10304].features.length; i++) { if (mpoly[10304].features[i].geometry.properties.cid == 740) { clayer[milk]=L.GeoJSON.geometryToLayer(mpoly[10304].features[i].geometry, {interactive: false, color:'#00ff00',opacity:0.8,weight:2,fillOpacity:0}); clayer[milk].addTo(mymap); setMapRatio(milk,0.959772); 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=483259&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('1888-11-06 19: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=483259'; 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[10304].length; i++) { if (mpcid[10304][i]=='740') { tmp = new google.maps.Polyline({ path: mpoly[10304][i], strokeColor: "#00ff00", strokeOpacity: 0.9, strokeWeight: 2.0, zIndex: 20 }); tmp.setMap(map); var sw = new google.maps.LatLng(lmnlt[10304][i],lmnlo[10304][i]); var ne = new google.maps.LatLng(lmxlt[10304][i],lmxlo[10304][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]/20259.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]/20259.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]/20259.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> <table class="infotable" cellspacing="0" cellpadding="0" width="100%"> <tr bgcolor="#993333"><td class="Headline1" align="center" style="text-transform:uppercase;">MS CDs 1883-1903 MAP</td></tr> <tr><td class="Switch0"> <script type="text/javascript"> var mymap; var multipolygon; function pageLoaded() { //alert('Page Loaded'); leafletMap(); $( window ).resize(function() { var ratio=lldistance(31.43346,-90.75984,33.37512,-90.75984,'K')/lldistance(31.43346,-90.75984,31.43346,-88.3888,'K'); setMapRatio(ratio); mymap.fitBounds([[31.43346,-90.75984],[33.37512,-88.3888]]); }); } function setMapRatio(mratio) { var mwidth=$('#map_canvas').outerWidth(); var mheight=Math.ceil(mwidth*mratio); if (mheight > 400) { mheight=400; } $('#map_canvas').height(mheight); } function lldistance(lat1, lon1, lat2, lon2, unit) { var radlat1 = Math.PI * lat1/180 var radlat2 = Math.PI * lat2/180 var theta = lon1-lon2 var radtheta = Math.PI * theta/180 var dist = Math.sin(radlat1) * Math.sin(radlat2) + Math.cos(radlat1) * Math.cos(radlat2) * Math.cos(radtheta); if (dist > 1) { dist = 1; } dist = Math.acos(dist) dist = dist * 180/Math.PI dist = dist * 60 * 1.1515 if (unit=="K") { dist = dist * 1.609344 } if (unit=="N") { dist = dist * 0.8684 } return dist } function leafletMap() { mymap = L.map('map_canvas'); var ratio=lldistance(31.43346,-90.75984,33.37512,-90.75984,'K')/lldistance(31.43346,-90.75984,31.43346,-88.3888,'K'); setMapRatio(ratio); mymap.fitBounds([[31.43346,-90.75984],[33.37512,-88.3888]]); var jsonpoly=JSON.parse('{"type":"FeatureCollection","properties":{"id":"999","name":"Test"},"features":[{"type":"Feature","geometry":{"type":"MultiPolygon","properties":{"id":"99999"},"coordinates":[[[[-88.94347,31.43346],[-88.94336,31.82457],[-89.65311,31.78065],[-89.65305,31.78373],[-89.6545,31.78375],[-89.65473,31.80625],[-89.65443,32.01368],[-89.66209,32.04724],[-89.73007,32.04707],[-89.72972,32.13446],[-89.73123,32.13449],[-89.73128,32.14066],[-89.73006,32.35273],[-89.78412,32.58689],[-89.78114,32.59023],[-89.78242,32.59701],[-89.76864,32.59996],[-89.76718,32.6023],[-89.77144,32.60432],[-89.77091,32.60615],[-89.7665,32.60811],[-89.76347,32.60614],[-89.7613,32.6067],[-89.7588,32.61401],[-89.75538,32.61708],[-89.74106,32.62588],[-89.73944,32.62994],[-89.73592,32.62997],[-89.73614,32.63311],[-89.73031,32.63376],[-89.73002,32.88477],[-89.84043,32.88541],[-89.83954,32.8797],[-89.96588,32.87957],[-89.97207,32.87283],[-89.97232,32.86762],[-89.97683,32.86676],[-89.97688,32.86517],[-89.98002,32.86615],[-89.9833,32.86453],[-89.98128,32.86236],[-89.98256,32.86004],[-89.98462,32.85985],[-89.98535,32.85638],[-89.98282,32.85624],[-89.98617,32.85453],[-89.98587,32.85297],[-89.98844,32.85031],[-89.98805,32.84702],[-89.99276,32.84674],[-89.99041,32.8453],[-89.99504,32.83443],[-90.00606,32.82909],[-90.00782,32.83177],[-90.00953,32.82786],[-90.01351,32.8312],[-90.01763,32.8269],[-90.0166,32.82562],[-90.01839,32.82543],[-90.01782,32.82322],[-90.01913,32.82308],[-90.01815,32.81992],[-90.02016,32.81337],[-90.01756,32.81275],[-90.02092,32.80605],[-90.01738,32.80353],[-90.018,32.80067],[-90.02098,32.79856],[-90.02044,32.79604],[-90.02369,32.79497],[-90.0234,32.79364],[-90.0209,32.79355],[-90.02294,32.78721],[-90.02221,32.78529],[-90.02484,32.7846],[-90.02411,32.78265],[-90.0269,32.77936],[-90.02544,32.77867],[-90.0263,32.77675],[-90.0318,32.77524],[-90.02972,32.77091],[-90.03189,32.77064],[-90.03105,32.76901],[-90.03303,32.76821],[-90.03094,32.76576],[-90.03284,32.76368],[-90.0307,32.76334],[-90.03319,32.76206],[-90.03243,32.76013],[-90.03956,32.75897],[-90.0381,32.75441],[-90.04008,32.75247],[-90.03883,32.75173],[-90.04039,32.7492],[-90.03953,32.74753],[-90.0424,32.74414],[-90.04692,32.74286],[-90.04674,32.74019],[-90.04926,32.73865],[-90.04852,32.73659],[-90.05056,32.73478],[-90.05695,32.7357],[-90.05703,32.7317],[-90.06117,32.73305],[-90.06142,32.73117],[-90.06613,32.72913],[-90.07019,32.7316],[-90.07626,32.72936],[-90.07626,32.72764],[-90.07426,32.72769],[-90.0748,32.72542],[-90.07786,32.72613],[-90.08062,32.71853],[-90.08395,32.71977],[-90.08479,32.71688],[-90.08947,32.71567],[-90.08755,32.71327],[-90.09034,32.71123],[-90.0899,32.70933],[-90.09507,32.70734],[-90.09418,32.70486],[-90.09916,32.70047],[-90.10084,32.70024],[-90.1046,32.70413],[-90.10734,32.70067],[-90.10991,32.70092],[-90.11048,32.70385],[-90.11525,32.70461],[-90.11533,32.70197],[-90.12125,32.70213],[-90.12136,32.7],[-90.12824,32.69947],[-90.13154,32.70252],[-90.13725,32.69865],[-90.1362,32.69677],[-90.13782,32.69602],[-90.13731,32.69325],[-90.13536,32.69199],[-90.1381,32.68968],[-90.13588,32.6891],[-90.13631,32.68769],[-90.14143,32.68542],[-90.14552,32.69174],[-90.14841,32.68989],[-90.14877,32.69138],[-90.1512,32.68993],[-90.15228,32.6917],[-90.15453,32.69158],[-90.15524,32.68765],[-90.16027,32.68728],[-90.1626,32.68479],[-90.16774,32.68367],[-90.17343,32.68],[-90.1805,32.6801],[-90.18071,32.67849],[-90.18336,32.67799],[-90.18169,32.67643],[-90.18477,32.67369],[-90.18924,32.67167],[-90.19265,32.67236],[-90.1933,32.67034],[-90.19208,32.66954],[-90.19346,32.66783],[-90.1923,32.66638],[-90.19652,32.66577],[-90.19779,32.66407],[-90.20621,32.66657],[-90.20937,32.66377],[-90.21365,32.66231],[-90.21812,32.66313],[-90.22234,32.65997],[-90.22711,32.66821],[-90.22824,32.66542],[-90.22981,32.66716],[-90.23322,32.6672],[-90.2343,32.66574],[-90.23885,32.66585],[-90.23842,32.66356],[-90.2418,32.66468],[-90.24337,32.66166],[-90.2454,32.66193],[-90.2454,32.66063],[-90.24337,32.66035],[-90.24458,32.65896],[-90.24946,32.6625],[-90.25445,32.66108],[-90.25608,32.66293],[-90.26233,32.66044],[-90.26426,32.65708],[-90.26661,32.65664],[-90.26793,32.65809],[-90.27115,32.65788],[-90.27194,32.66024],[-90.27437,32.65787],[-90.27424,32.66058],[-90.27768,32.66054],[-90.27955,32.65527],[-90.28369,32.65495],[-90.28244,32.65381],[-90.28458,32.64795],[-90.28299,32.64616],[-90.28707,32.64252],[-90.28864,32.64232],[-90.28967,32.64463],[-90.29462,32.6444],[-90.29557,32.64697],[-90.29987,32.645],[-90.3015,32.64681],[-90.31119,32.6404],[-90.31127,32.63895],[-90.30918,32.63813],[-90.31089,32.63579],[-90.31,32.63369],[-90.31541,32.63234],[-90.31522,32.6267],[-90.31754,32.62434],[-90.32473,32.62237],[-90.32219,32.6201],[-90.322,32.61667],[-90.33182,32.61364],[-90.33263,32.6125],[-90.32993,32.61145],[-90.33528,32.60707],[-90.3437,32.60581],[-90.34554,32.61321],[-90.34968,32.61334],[-90.35307,32.61166],[-90.3517,32.60828],[-90.35489,32.60308],[-90.35852,32.60256],[-90.35722,32.60611],[-90.36339,32.60368],[-90.36451,32.60246],[-90.36352,32.59784],[-90.36808,32.59548],[-90.36832,32.60165],[-90.3708,32.60267],[-90.37366,32.59742],[-90.38144,32.59614],[-90.37725,32.59314],[-90.38144,32.59332],[-90.38266,32.58929],[-90.38837,32.58758],[-90.38769,32.58565],[-90.3854,32.58531],[-90.38599,32.58419],[-90.39281,32.58213],[-90.39546,32.58564],[-90.39803,32.58364],[-90.39833,32.58007],[-90.40255,32.57801],[-90.40414,32.57497],[-90.40685,32.57621],[-90.41045,32.57421],[-90.41121,32.57589],[-90.40942,32.57719],[-90.41227,32.57971],[-90.41383,32.57851],[-90.41501,32.58002],[-90.41776,32.57708],[-90.42157,32.58325],[-90.4255,32.58326],[-90.42871,32.58595],[-90.43035,32.58377],[-90.43432,32.58596],[-90.44521,32.58434],[-90.44315,32.58202],[-90.44808,32.57851],[-90.4503,32.57966],[-90.45133,32.57859],[-90.44955,32.57466],[-90.4519,32.57329],[-90.45266,32.56814],[-90.45492,32.56589],[-90.45115,32.56304],[-90.45417,32.56154],[-90.45342,32.55946],[-90.45576,32.55698],[-90.45902,32.55756],[-90.45811,32.56004],[-90.46248,32.55894],[-90.46515,32.54759],[-90.47103,32.54884],[-90.47258,32.5467],[-90.47151,32.54327],[-90.48171,32.5442],[-90.48477,32.54256],[-90.48736,32.53707],[-90.4924,32.53386],[-90.49145,32.53135],[-90.49872,32.5274],[-90.49721,32.52549],[-90.49813,32.52415],[-90.50162,32.5254],[-90.50308,32.52278],[-90.5063,32.52234],[-90.50682,32.52404],[-90.51032,32.52239],[-90.5145,32.5255],[-90.51584,32.52281],[-90.52354,32.51933],[-90.52011,32.51738],[-90.52171,32.51548],[-90.5248,32.51698],[-90.52567,32.51571],[-90.52303,32.51403],[-90.52071,32.50955],[-90.52263,32.5081],[-90.52106,32.50501],[-90.52231,32.50327],[-90.53027,32.51117],[-90.53677,32.50719],[-90.5404,32.50916],[-90.54127,32.50795],[-90.54003,32.50631],[-90.54225,32.50537],[-90.54656,32.51048],[-90.55382,32.50757],[-90.5539,32.53191],[-90.58792,32.53176],[-90.58802,32.54607],[-90.65459,32.54604],[-90.65553,32.58977],[-90.69025,32.58939],[-90.68995,32.61866],[-90.7201,32.61886],[-90.72113,32.6229],[-90.71995,32.62442],[-90.71234,32.62379],[-90.70628,32.62616],[-90.70262,32.62384],[-90.69873,32.62424],[-90.6923,32.6327],[-90.6914,32.63628],[-90.69475,32.64113],[-90.71282,32.64235],[-90.71654,32.64427],[-90.72327,32.65378],[-90.72415,32.66033],[-90.71213,32.67838],[-90.71221,32.68744],[-90.70442,32.69078],[-90.69717,32.68788],[-90.69503,32.68099],[-90.69488,32.67109],[-90.69082,32.66615],[-90.68417,32.66375],[-90.67584,32.66513],[-90.66768,32.67098],[-90.66532,32.6745],[-90.66375,32.68601],[-90.66441,32.68913],[-90.67139,32.69646],[-90.68868,32.70537],[-90.69775,32.70721],[-90.71374,32.70731],[-90.71774,32.709],[-90.72334,32.71365],[-90.73388,32.7187],[-90.74264,32.72923],[-90.74162,32.73345],[-90.73523,32.74381],[-90.73667,32.75425],[-90.73439,32.75718],[-90.72958,32.75722],[-90.71763,32.74799],[-90.70942,32.74743],[-90.69951,32.75013],[-90.6905,32.75756],[-90.68976,32.76588],[-90.69679,32.77304],[-90.70767,32.77779],[-90.71542,32.78986],[-90.71584,32.79341],[-90.71445,32.79979],[-90.71051,32.8061],[-90.70023,32.81326],[-90.69481,32.81413],[-90.69459,32.81565],[-90.7001,32.81817],[-90.70555,32.81599],[-90.70861,32.81805],[-90.71602,32.81443],[-90.72198,32.81596],[-90.72312,32.81905],[-90.72676,32.81979],[-90.72849,32.81837],[-90.72803,32.8158],[-90.73023,32.81495],[-90.72963,32.8133],[-90.73291,32.81003],[-90.73939,32.80895],[-90.74145,32.80948],[-90.74862,32.81822],[-90.75399,32.81799],[-90.75963,32.81401],[-90.75984,32.83569],[-90.65663,32.92251],[-90.65805,33.09651],[-90.55434,33.09711],[-90.51254,33.13354],[-90.51538,33.1362],[-90.51516,33.13891],[-90.51069,33.13916],[-90.50631,33.13517],[-90.50256,33.13865],[-90.49867,33.14669],[-90.49197,33.14667],[-90.49467,33.16485],[-90.48741,33.1746],[-90.4799,33.17571],[-90.47015,33.17014],[-90.46187,33.16921],[-90.45635,33.17228],[-90.45074,33.18082],[-90.44001,33.18963],[-90.43005,33.19121],[-90.42152,33.18778],[-90.41461,33.1905],[-90.41393,33.19199],[-90.41921,33.19652],[-90.41844,33.20053],[-90.42054,33.20183],[-90.4173,33.2014],[-90.4061,33.20794],[-90.40147,33.21678],[-90.40239,33.22505],[-90.41324,33.23532],[-90.41109,33.24004],[-90.41225,33.24418],[-90.40957,33.2453],[-90.38635,33.24529],[-90.37843,33.2419],[-90.37408,33.24281],[-90.37499,33.23945],[-90.37383,33.23846],[-90.36611,33.23975],[-90.37007,33.24079],[-90.3674,33.24413],[-90.36841,33.24612],[-90.37535,33.24677],[-90.37172,33.25093],[-90.37092,33.25793],[-90.367,33.26086],[-90.37079,33.26513],[-90.36999,33.2705],[-90.37312,33.27351],[-90.37666,33.28137],[-90.36799,33.28105],[-90.36593,33.27964],[-90.36482,33.27577],[-90.36316,33.2764],[-90.35967,33.28144],[-90.36224,33.28652],[-90.35748,33.29651],[-90.34632,33.30392],[-90.34297,33.30941],[-90.33531,33.30743],[-90.33465,33.30344],[-90.33112,33.30287],[-90.32941,33.3038],[-90.32635,33.31186],[-90.32328,33.31187],[-90.31916,33.30927],[-90.31502,33.31023],[-90.3177,33.31735],[-90.31044,33.3204],[-90.30348,33.31637],[-90.30602,33.31133],[-90.30483,33.30957],[-90.30279,33.30951],[-90.29943,33.31327],[-90.29495,33.31488],[-90.29039,33.31188],[-90.28644,33.31268],[-90.28645,33.31445],[-90.29169,33.31901],[-90.29199,33.32267],[-90.28951,33.32807],[-90.28299,33.33271],[-90.28029,33.33699],[-90.27998,33.34305],[-90.28331,33.35028],[-90.28673,33.35598],[-90.29503,33.36178],[-90.30844,33.36404],[-90.31453,33.36198],[-90.31806,33.36304],[-90.32256,33.36794],[-90.32151,33.37512],[-89.74826,33.21425],[-89.74837,33.21709],[-89.74423,33.2184],[-89.74377,33.21988],[-89.74522,33.229],[-89.74291,33.22957],[-89.73937,33.2379],[-89.73395,33.23793],[-89.7342,33.24063],[-89.7297,33.24377],[-89.7278,33.25254],[-89.72477,33.2535],[-89.7215,33.25799],[-89.72311,33.25936],[-89.71712,33.26055],[-89.71573,33.25843],[-89.71295,33.25904],[-89.70957,33.26344],[-89.71189,33.26495],[-89.70949,33.26525],[-89.70962,33.26697],[-89.713,33.26774],[-89.70644,33.26994],[-89.70772,33.27118],[-89.70573,33.27159],[-89.70617,33.27329],[-89.70298,33.27615],[-89.70374,33.27878],[-89.70194,33.27853],[-89.7026,33.28048],[-89.70001,33.2818],[-89.70189,33.28299],[-89.7016,33.28551],[-89.31641,33.28562],[-89.31916,32.93165],[-89.01773,32.93127],[-89.01769,32.92639],[-88.96531,32.92657],[-88.96523,32.91911],[-88.9305,32.91924],[-88.93055,32.92668],[-88.91442,32.92656],[-88.91452,32.57696],[-88.3888,32.57812],[-88.47323,31.89386],[-88.46491,31.70548],[-88.44944,31.43585],[-88.61808,31.43425]]]]}}]}'); multipolygon = L.geoJSON(jsonpoly, {color:'#FF0000',opacity:0.8,weight:2,fillColor:'#0000FF',fillOpacity:0.1} ); multipolygon.addTo(mymap); 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); var iconSVG='<svg xmlns="http://www.w3.org/2000/svg" viewBox="-20 -40 60 60" width="40" height="40"><path fill="#0000FF" 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([33.057629,-89.587576],{icon: myIcon, title:"Chapman L. Anderson" }).addTo(mymap); var iconSVG='<svg xmlns="http://www.w3.org/2000/svg" viewBox="-20 -40 60 60" width="40" height="40"><path fill="#FF0000" 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([0.000000,0.000000],{icon: myIcon, title:"F. M. Cook" }).addTo(mymap); } </script> <div align="center"><div id="map_canvas" style="width:100%; height:300px;"></div></div> </td></tr></table> </IF> <script language="Javascript"> <!-- var cand={ "candidates": [ { "cid": "199836", "color": "#0000FF" }, { "cid": "199837", "color": "#FF0000" } ] }; </script> <script> function drawPollGraph(){ } </script> </td></tr></table> <br> <form method="post" action="RaceDetail.html?RaceID=483259"> <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">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=199836" class="Headline1"></td> <td class="Switch0" align="center" valign="bottom"><a href="CandidateDetail.html?CandidateID=199837" class="Headline1"></td> <td class="Switch0" colspan="5"> </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=483258" class="Headline1">Rep.</a> <a href="CandidateDetail.html?CandidateID=199836" class="Headline1">Chapman L. Anderson</a></td> <td align="center" bgcolor="#6084C8" class="Headline1"> <a href="RaceDetail.html?RaceID=483258" class="Headline1"></a> <a href="CandidateDetail.html?CandidateID=199837" class="Headline1">F. M. Cook</a></td> <td class="Switch0" colspan="5"> </td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Party</td><td class="Text1" align="center" bgcolor="#0000FF"><a href="PartyDetail.html?PartyID=1" class="Headline1">Democratic</a></td> <td class="Text1" align="center" bgcolor="#FF0000"><a href="PartyDetail.html?PartyID=2" class="Headline1">Republican</a></td> <td class="Switch0" colspan="5"> </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" colspan="5"> </td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Certified Votes</td><td class="Switch0" align="center"><img src="../images/occoolcheck.gif"> 16,265 (80.29%)</td> <td class="Switch0" align="center"> 3,994 (19.72%)</td> <td class="Switch0" colspan="5"> </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">-12,271 (-60.57%)</td> <td class="Switch0" colspan="5"> </td></tr> <tr><td bgcolor="#333366" align="right"><a href="RaceDetail.html?RaceID=483259&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" colspan="5"> </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=483259&CandidateLink=199836" class="Text1"> $--</a> </td> <td class="Switch0" align="center" valign="top"> <a href="FinanceReportEdit.html?FinanceReportID=&RaceLink=483259&CandidateLink=199837" class="Text1"> $--</a> </td> <td class="Switch0" colspan="5"> </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" colspan="5"> </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" colspan="5"> </td></tr> <tr><td bgcolor="#333366" align="right" class="Headline1">Bar</td><td colspan="3"><table width="100%" cellspacing="0" cellpadding="0" border="0"><td style="width:80.29%;height:15px;" bgcolor="#0000FF"></td><td style="width:19.71%;height:15px;" bgcolor="#FF0000"></td></table></td></tr> <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"><a href="RaceDetail.html?RaceID=483259&ShowAllMUPoll=Y" class="Headline1">MATCHUP POLLS (0 from 0 pollsters)</a></td> <td width="42"><a href="PollEdit.html?AttachTo=Race&AttachID=483259"><img src="../images/ButtonAdd.gif" width="40" height="15" border="0"></a></td></tr></table></td></tr> <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"><a href="javascript:showAllEndorse()" class="Headline1">ENDORSEMENTS</a></td> <td width="42"><a href="EndorsementEdit.html?RaceLink=483259"><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"> </table></div></td> <td class="Switch0" align="center" valign="top"><div class="endorsediv"><table border="0"> </table></div></td> <td class="Switch0" colspan="5"> </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=483259&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=483259"><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=483259"><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=483259&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=483259&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>