<!DOCTYPE html>
<html>
<head>
<title>**YOUR PAGE TITLE HERE**</title> <!--Edit Title to reflect your map name. The next few lines load css and java necessary to run Mapbox and/or the tutorial-->
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v2.2.0/mapbox-gl-geocoder.min.js'></script>
<link rel='stylesheet' href='https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v2.2.0/mapbox-gl-geocoder.css' type='text/css' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.0/mapbox-gl.css' rel='stylesheet' />
<!-- ***MUST EDIT BELOW*** -->
<link href ='https://***INSERT YOUR URL FOR THE cinyc-mapbox-v4.css FILE HERE***' rel='stylesheet' />

<!--HTML doesn't need to be edited. Editing starts after next <script> tag-->
<div id='map'>
<!--Initialize Menu System-->
<nav id ='menu'></nav>
<nav id = 'colorAmenu'></nav>
<nav id = 'isolatemenu'></nav>
<nav id = 'JMCisolatemenu'></nav>
<nav id = 'PopPCTisolatemenu'></nav>
<nav id = 'PopPCTisolatemenu2'></nav>
<nav id = 'PopNUMisolatemenu'></nav>
<nav id = 'PopNUMisolatemenu2'></nav>
<nav id = 'Marginisolatemenu'></nav>
<nav id = 'Marginisolatemenu2'></nav>
<nav id = 'Margin7isolatemenu'></nav>
<nav id = 'Margin7isolatemenu2'></nav>
<nav id = 'colorMlmenu'></nav>
<nav id = 'colorMhmenu'></nav>
<nav id = 'colorMPPmenu'></nav>
<nav id = 'colorMPPhmenu'></nav>
<nav id = 'colorMPNmenu'></nav>
<nav id = 'colorMPNhmenu'></nav>
<nav id = 'ma1'></nav><nav id = 'ma2'></nav><nav id = 'ma3'></nav><nav id = 'ma4'></nav><nav id = 'ma5'></nav><nav id = 'ma6'></nav><nav id = 'ma7'></nav><nav id = 'ma8'></nav><nav id = 'ma9'></nav><nav id = 'ma10'></nav>
<nav id = 'mb1'></nav><nav id = 'mb2'></nav><nav id = 'mb3'></nav><nav id = 'mb4'></nav><nav id = 'mb5'></nav><nav id = 'mb6'></nav><nav id = 'mb7'></nav><nav id = 'mb8'></nav><nav id = 'mb9'></nav><nav id = 'mb10'></nav>
<nav id = 'mb11'></nav><nav id = 'mb12'></nav><nav id = 'mb13'></nav><nav id = 'mb14'></nav><nav id = 'mb15'></nav><nav id = 'mb16'></nav><nav id = 'mb17'></nav><nav id = 'mb18'></nav><nav id = 'mb19'></nav><nav id = 'mb20'></nav>
<nav id = 'mb21'></nav><nav id = 'mb22'></nav><nav id = 'mb23'></nav><nav id = 'mb24'></nav><nav id = 'mb25'></nav><nav id = 'mb26'></nav><nav id = 'mb27'></nav><nav id = 'mb28'></nav><nav id = 'mb29'></nav><nav id = 'mb30'></nav>
<nav id = 'mb31'></nav><nav id = 'mb32'></nav><nav id = 'mb33'></nav><nav id = 'mb34'></nav><nav id = 'mb35'></nav><nav id = 'mb36'></nav><nav id = 'mb37'></nav><nav id = 'mb38'></nav><nav id = 'mb39'></nav><nav id = 'mb40'></nav>
<nav id = 'mb41'></nav><nav id = 'mb42'></nav><nav id = 'mb43'></nav><nav id = 'mb44'></nav><nav id = 'mb45'></nav><nav id = 'mb46'></nav><nav id = 'mb47'></nav><nav id = 'mb48'></nav><nav id = 'mb49'></nav><nav id = 'mb50'></nav>
<nav id = 'mb51'></nav><nav id = 'mb52'></nav><nav id = 'mb53'></nav><nav id = 'mb54'></nav><nav id = 'mb55'></nav><nav id = 'mb56'></nav><nav id = 'mb57'></nav><nav id = 'mb58'></nav><nav id = 'mb59'></nav><nav id = 'mb60'></nav>
<nav id = 'mb61'></nav><nav id = 'mb62'></nav><nav id = 'mb63'></nav><nav id = 'mb64'></nav><nav id = 'mb65'></nav><nav id = 'mb66'></nav><nav id = 'mb67'></nav><nav id = 'mb68'></nav><nav id = 'mb69'></nav><nav id = 'mb70'></nav>
<nav id = 'mb71'></nav><nav id = 'mb72'></nav><nav id = 'mb73'></nav><nav id = 'mb74'></nav><nav id = 'mb75'></nav><nav id = 'mb76'></nav><nav id = 'mb77'></nav><nav id = 'mb78'></nav><nav id = 'mb79'></nav><nav id = 'mb80'></nav>
<nav id = 'mb81'></nav><nav id = 'mb82'></nav><nav id = 'mb83'></nav><nav id = 'mb84'></nav><nav id = 'mb85'></nav><nav id = 'mb86'></nav><nav id = 'mb87'></nav><nav id = 'mb88'></nav><nav id = 'mb89'></nav><nav id = 'mb90'></nav>
<nav id = 'mb91'></nav><nav id = 'mb92'></nav><nav id = 'mb93'></nav><nav id = 'mb94'></nav><nav id = 'mb95'></nav><nav id = 'mb96'></nav><nav id = 'mb97'></nav><nav id = 'mb98'></nav><nav id = 'mb99'></nav><nav id = 'mb100'></nav>
<nav id = 'mb101'></nav><nav id = 'mb102'></nav><nav id = 'mb103'></nav><nav id = 'mb104'></nav><nav id = 'mb105'></nav><nav id = 'mb106'></nav><nav id = 'mb107'></nav><nav id = 'mb108'></nav><nav id = 'mb109'></nav><nav id = 'mb110'></nav>
<!--Initialize Interactive Legend-->
<div class='mylegend'>
<div class='legend-title'><span id='legend-title'></span></div>
<div class='legend-scale'>
<tr><ul class='legend-labels' id="Legend-A">
<li><span id = 'color-value-0-0' style=''></span></li>
<li><span id = 'color-value-10' style=''></span></li>
<li><span id = 'color-value-20' style=''></span></li>
<li><span id = 'color-value-30' style=''></span></li>
<li><span id = 'color-value-40' style=''></span></li>
<li><span id = 'color-value-50' style=''></span></li>
<li><span id = 'color-value-60' style=''></span></li>
<li><span id = 'color-value-70' style=''></span></li>
<li><span id = 'color-value-80' style=''></span></li>
<li><span id = 'color-value-90' style=''></span></li>
<li><span id = 'color-value-100'style=''></span></li>
<li><span id = 'color-value-1-10'style=''></span></li>
<ul class ='legend-candidates'><cn id='legend-CandidateA'></cn><dn id = 'legend-A-pct'></dn></ul></ul></tr>
<tr><ul class='legend-labels'id = 'Legend-B'>
<li><span id = 'color-value-1-0' style=''></span></li>
<li><span id = 'color-value-110' style=''></span></li>
<li><span id = 'color-value-120' style=''></span></li>
<li><span id = 'color-value-130' style=''></span></li>
<li><span id = 'color-value-140' style=''></span></li>
<li><span id = 'color-value-150' style=''></span></li>
<li><span id = 'color-value-160' style=''></span></li>
<li><span id = 'color-value-170' style=''></span></li>
<li><span id = 'color-value-180' style=''></span></li>
<li><span id = 'color-value-190' style=''></span></li>
<li><span id = 'color-value-200' style=''></span></li>
<li><span id = 'color-value-2-10'style=''></span></li>
<ul class ='legend-candidates'><cn id='legend-CandidateB'></cn><dn id = 'legend-B-pct'></dn></ul></ul></tr>
<tr><ul class='legend-labels' id = 'Legend-C'>
<li><span id = 'color-value-2-0' style=''></span></li>
<li><span id = 'color-value-210' style=''></span></li>
<li><span id = 'color-value-220' style=''></span></li>
<li><span id = 'color-value-230' style=''></span></li>
<li><span id = 'color-value-240' style=''></span></li>
<li><span id = 'color-value-250' style=''></span></li>
<li><span id = 'color-value-260' style=''></span></li>
<li><span id = 'color-value-270' style=''></span></li>
<li><span id = 'color-value-280' style=''></span></li>
<li><span id = 'color-value-290' style=''></span></li>
<li><span id = 'color-value-300' style=''></span></li>
<li><span id = 'color-value-3-10'style=''></span></li>
<ul class ='legend-candidates'><cn id='legend-CandidateC'></cn><dn id = 'legend-C-pct'></dn></ul></ul></tr>
<tr><ul class='legend-labels' id = 'Legend-D'>
<li><span id = 'color-value-3-0' style=''></span></li>
<li><span id = 'color-value-310' style=''></span></li>
<li><span id = 'color-value-320' style=''></span></li>
<li><span id = 'color-value-330' style=''></span></li>
<li><span id = 'color-value-340' style=''></span></li>
<li><span id = 'color-value-350' style=''></span></li>
<li><span id = 'color-value-360' style=''></span></li>
<li><span id = 'color-value-370' style=''></span></li>
<li><span id = 'color-value-380' style=''></span></li>
<li><span id = 'color-value-390' style=''></span></li>
<li><span id = 'color-value-400' style=''></span></li>
<li><span id = 'color-value-4-10'style=''></span></li>
<ul class ='legend-candidates'><cn id='legend-CandidateD'></cn><dn id = 'legend-D-pct'></dn></ul></ul></tr>
<tr><ul class='legend-labels' id= 'Legend-E'>
<li><span id = 'color-value-4-0' style=''></span></li>
<li><span id = 'color-value-410' style=''></span></li>
<li><span id = 'color-value-420' style=''></span></li>
<li><span id = 'color-value-430' style=''></span></li>
<li><span id = 'color-value-440' style=''></span></li>
<li><span id = 'color-value-450' style=''></span></li>
<li><span id = 'color-value-460' style=''></span></li>
<li><span id = 'color-value-470' style=''></span></li>
<li><span id = 'color-value-480' style=''></span></li>
<li><span id = 'color-value-490' style=''></span></li>
<li><span id = 'color-value-500' style=''></span></li>
<li><span id = 'color-value-5-10'style=''></span></li>
<ul class ='legend-candidates'><cn id='legend-CandidateE'></cn><dn id = 'legend-E-pct'></dn></ul></ul></tr>
<tr><ul class='legend-labels' id= 'Legend-F'>
<li><span id = 'color-value-5-0' style=''></span></li>
<li><span id = 'color-value-510' style=''></span></li>
<li><span id = 'color-value-520' style=''></span></li>
<li><span id = 'color-value-530' style=''></span></li>
<li><span id = 'color-value-540' style=''></span></li>
<li><span id = 'color-value-550' style=''></span></li>
<li><span id = 'color-value-560' style=''></span></li>
<li><span id = 'color-value-570' style=''></span></li>
<li><span id = 'color-value-580' style=''></span></li>
<li><span id = 'color-value-590' style=''></span></li>
<li><span id = 'color-value-600' style=''></span></li>
<li><span id = 'color-value-6-10'style=''></span></li>
<ul class ='legend-candidates'><cn id='legend-CandidateF'></cn><dn id = 'legend-F-pct'></dn></ul></ul></tr>
<tr><ul class='legend-labels' id= 'Legend-G'>
<li><span id = 'color-value-6-0' style=''></span></li>
<li><span id = 'color-value-610' style=''></span></li>
<li><span id = 'color-value-620' style=''></span></li>
<li><span id = 'color-value-630' style=''></span></li>
<li><span id = 'color-value-640' style=''></span></li>
<li><span id = 'color-value-650' style=''></span></li>
<li><span id = 'color-value-660' style=''></span></li>
<li><span id = 'color-value-670' style=''></span></li>
<li><span id = 'color-value-680' style=''></span></li>
<li><span id = 'color-value-690' style=''></span></li>
<li><span id = 'color-value-700' style=''></span></li>
<li><span id = 'color-value-7-10'style=''></span></li>
<li><span id = 'color-value-700c' style=''></span></li>
<li><span id = 'color-value-700d' style=''></span></li>
<li><span id = 'color-value-700e' style=''></span></li>
<li><span id = 'color-value-700f' style=''></span></li>
<li><span id = 'color-value-700g' style=''></span></li>
<li><span id = 'color-value-700h' style=''></span></li>
<li><span id = 'color-value-700i' style=''></span></li>
<li><span id = 'color-value-700j' style=''></span></li>
<ul class ='legend-candidates'><cn id='legend-CandidateG'></cn><dn id = 'legend-G-pct'></dn></ul></ul></tr>
<tr><ul class ='legend-labels' id = 'Legend-H'>
<li><span id = 'color-value-7-0' style=''></span><span = id = 'color-pct-0' style = ''></span></li>
<li><span id = 'color-value-710' style=''></span><span = id = 'color-pct-10' style = ''></span></li>
<li><span id = 'color-value-720' style=''></span><span = id = 'color-pct-20' style = ''></span></li>
<li><span id = 'color-value-730' style=''></span><span = id = 'color-pct-30' style = ''></span></li>
<li><span id = 'color-value-740' style=''></span><span = id = 'color-pct-40' style = ''></span></li>
<li><span id = 'color-value-750' style=''></span><span = id = 'color-pct-50' style = ''></span></li>
<li><span id = 'color-value-760' style=''></span><span = id = 'color-pct-60' style = ''></span></li>
<li><span id = 'color-value-770' style=''></span><span = id = 'color-pct-70' style = ''></span></li>
<li><span id = 'color-value-780' style=''></span><span = id = 'color-pct-80' style = ''></span></li>
<li><span id = 'color-value-790' style=''></span><span = id = 'color-pct-90' style = ''></span></li>
<li><span id = 'color-value-800' style=''></span><span = id = 'color-pct-100' style = ''></span></li>
<li><span id = 'color-value-8-10' style=''></span><span = id = 'color-pct-110' style = ''></span></li>
<li><span id = 'color-value-800c' style=''></span><span = id = 'color-pct-100c' style = ''></span></li>
<li><span id = 'color-value-800d' style=''></span><span = id = 'color-pct-100d' style = ''></span></li>
<li><span id = 'color-value-800e' style=''></span><span = id = 'color-pct-100e' style = ''></span></li>
<li><span id = 'color-value-800f' style=''></span><span = id = 'color-pct-100f' style = ''></span></li>
<li><span id = 'color-value-800g' style=''></span><span = id = 'color-pct-100g' style = ''></span></li>
<li><span id = 'color-value-800h' style=''></span><span = id = 'color-pct-100h' style = ''></span></li>
<li><span id = 'color-value-800i' style=''></span><span = id = 'color-pct-100i' style = ''></span></li>
<li><span id = 'color-value-800j' style=''></span><span = id = 'color-pct-100j' style = ''></span></li>
<ul class ='legend-candidates'><cn id='legend-CandidateH'></cn><dn id = 'legend-H-pct'></dn></ul></ul></tr>
</div>
<div class='legend-source'></div>
<div class='map-overlay top'>
<div class='map-overlay-inner'>
<label>Layer opacity: <span id='slider-value'>90%</span></label>
<input id='slider' type='range' min='0' max='100' step='5' value='90' />
</div>
</div>
<div class='csmap-overlay top'>
<div class='csmap-overlay-inner'>
<label>Color Step: <span id='csslider-value'></span></label>
<input id='csslider' type='range' min='0.1' max='10' step='0.1' value='2'/>
</div>
</div></div></div></head></html>
</head>
<script>
//Editing starts here

mapboxgl.accessToken = ''; //Your Mapbox Token here inside quotes
var map = new mapboxgl.Map({
container: 'map', // container id
style: '', // Your stylesheet location - this is the background map layer - inside quotes
center: [-99, 40], // starting position [lng, lat] - must change for your state
zoom: 4.0 // starting zoom - must change for your tileset
});
//Layer Names
var layer = ['','','','']; //Tilelset layer names for your layers. Position 1 is default (which is techically layer[0] due to how js handles Arrays); position 2 is map 1; position 3 is map 2, etc. You can delete unncessry quotes, if only 1 layer
var layerURL = ['','','','','',''] //Mapbox urls corresponding with your layers. Same order. Delete unneccesary.
var firstshow = [0,1,,,] //First A[X] number in which the relevant layer is shown. Due to current code architecture, every A[X] can only show 1 layer. Delete unnecessary
var Fillcolor = ['','','','','',''] // ColorWin for Wincode Colors; ColorAnc for Ancestry Colors; ColorPopPCT for Pop Change PCT Colors; ColorPopNUM for Pop Change NUM Colors; ColorMargin for Margin 15 colors; ColorMargin7 for Margin 7 colors; ColorJMCWincode for JMC 0/5/10/20/30/40 etc. colors
var WinColors = 'cinyc' //Color scheme color for Wincode colors on ALL maps. Currently, cinyc for cinyc's lighter colors, JMC for J Miles Coleman's darker colors, Atlas for U.S. election atlas colors (R= Blue; D= Red), ReverseAtlas for reverse Atlas colors (R = Red; D = Blue).
var margincolornegative = '' //Color for negative steps on Margin maps. Choices: reds15, blues15, greens15, oranges15, yellows15, purples15, teals15, violets15. Can leave empty quotes if no Margin maps.
var margincolorpositive = '' //Color for positive steps on Margin maps. Choices: reds15, blues15, greens15, oranges15, yellows15, purples15, teals15, violets15. Can leave empty quotes if no Margin maps.
var margin7colornegative = '' //Color for negative steps on Margin7 maps. Choices: reds7, blues7, greens7, oranges7, yellows7, purples7, teals7, violets7. Can leave empty quotes if no Margin7 maps.
var margin7colorpositive = ''//Color for positive steps on Margin7 maps. Choices: reds7, blues7, greens7, oranges7, yellows7, purples7, teals7, violets7. Can leave empty quotes if no Margin7 maps.
var PopPCTcolornegative = '' //Color for negative steps on PopPCT maps. Choices: reds, blues, greens, oranges, yellows, purples, teals, violets. Can leave empty quotes if no PopPCT maps.
var PopPCTcolorpositive = '' //Color for positive steps on PopPCT maps. Choices: reds, blues, greens, oranges, yellows, purples, teals, violets. Can leave empty quotes if no PopPCT maps.
var PopNUMcolornegative = '' //Color for negative steps on PopNUM maps. Choices: reds, blues, greens, oranges, yellows, purples, teals, violets. Can leave empty quotes if no PopNUM maps.
var PopNUMcolorpositive = '' //Color for positive steps on PopNUM maps. Choices: reds, blues, greens, oranges, yellows, purples, teals, violets. Can leave empty quotes if no PopNUM maps.
var noJMCPCTdata = 'N' //'Y' For JMC Maps with no PCT columns; 'N' otherwise
var noWincodePCTdata = 'N'//'Y' For regular Wincode Maps with no PCT columns; 'N' otherwise
var matrixflag = 'N' //Adds matrix numbers for debugging & development; Y = Yes. Generally should be 'N', unless debugging/
//Puts Data Sources for map legend box (Optional)
var ancsource = '' // Source name for Ancestry Maps(optional)
var winsource = '<p>Source: U.S. Census Bureau 2000 & 2010 Census & 2013-17 American Community Survey</p>' // Source name for Wincode Maps (optional)
var marginsource = '<p>Source: U.S. Census Bureau 2000 & 2010 Census & 2013-17 American Community Survey</p>'// Source name for Margin/Swing Maps
var PopPCTsource = '<p>Source: U.S. Census Bureau 2000 & 2010 Census & 2013-17 American Community Survey</p>'// Source name for PopPCT Maps
var PopNUMsource = '<p>Source: U.S. Census Bureau 2000 & 2010 Census & 2013-17 American Community Survey</p>'// Source name for PopNUM Maps
//Toggleable Layer 1 Info Tog1Name may be added to legend. This is usually State or highest layer. These are outlines, not solid polygons.
var layerTog1 = ''; //Tileset name for toggleable layer 1 (usually Counties).
var Tog1URL = ''; //Mapbox url corresponding to Toggleable Layer 1
var Tog1Name = ''; // Geo Type/Name
var Tog1Width = 2 //Width of Tog 1 lines - change width if necessary
var Tog1Color = '#cccc6b' //Hex Color of Tog1Lines - change Hex color if you don't like yellow
var Tog1Default = ['','','','','','','','','','',''] //Variable for Tog1 Name (usually County) This mighe be added to legend. You can leave blank.


//Tileset name for toggleable layer 2 (usually Counties).
var layerTog2 = ''; //Mapbox url corresponding to Toggleable Layer 2
var Tog2URL = ''; // Geo Type/Name (usually 'County' or County Sub). Tog2Name may be added to legend
var Tog2Name = ''; //Width of Tog 2 lines - change width if necessary
var Tog2Width = 0.25; //Width of Tog 2 lines - change width if necessary
var Tog2Color = '#000000' //Hex Color of Tog2Lines - change Hex color if you don't like black
var Tog2Visibility = 'visible'; //Initial Visibity for Tog2Layer - visible or none

//Name for polygon layer outlines. Leave quotes if you don't want people to toggle those lines
var layerTog3 = ''
var Tog3Name = ''

//Main mapped races - Slot Default is Default variable. Slots A[1]-[10] are Second level menu variables; Slots B[11]-[110] are Third level menu variables
//Default & First Map

//Main Menu Names & Layers - up to 10, plus 2 toggleable and Lehgend. Do NOT delete ,"". commas. Make sure there are 10.
//Layer name for each item in main menu. Put in Quotes
var toggleableLayerNamesMain = ['Layer'/*Title*/,/*FirstLayerName*/'',/*SecondLayerName*/'',/*ThirdLayerName*/'',/*FourthLayerName*/'',/*FifthLayerName*/'',/*SixthLayerName*/'',/*SeventhLayerName*/'',/*EighthLayerName*/'',/*NinthLayerName*/'',/*TenthLayerName*/'',Tog1Name,Tog2Name,Tog3Name,'Color','Isolate','Legend'];
//Layer numbers for each item in main menu number of entries as toggleableLayerIdsMain. REMOVE quotes when add layer[i]; otherwise KEEP quotes
var toggleableLayerIdsMain = ['Layer',/*FirstLayer*/layer[1],/*SecondLayer*/'',/*ThirdLayer*/'',/*FourthLayer*/'',/*FifthLayer*/'',/*SixthLayer*/'',/*SeventhLayer*/'',/*EighthLayer*/'',/*NinthLayer*/'',/*TenthLayer*/'',layerTog1,layerTog2,layerTog3,'Color','Isolate','Legend'];
//should be equal to the layer number in toggleablelayerIDsMain. Number should be same as layer[i]
var layernumbermain = [/*LayerNuberMainDefault*/1,/*LayerNumberMainA1*/1,/*LayerNumberMainA2*/,/*LayerNumberMainA3*/,/*LayerNumberMainA4*/,/*LayerNumberMainA5*/,/*LayerNumberMainA6*/,/*LayerNumberMainA7*/,/*LayerNumberMainA8*/,/*LayerNumberMainA9*/,/*LayerNumberMainA10*/,layerTog1,layerTog2,layerTog3,'Color','Isolate','Legend'];
//0 if no lower menu; 'Y' If there is a lower menu - note: No Quotes around 0
var lowermainmenu = [/*LowerMenuDefault*/'',/*LowerMenuA1*/'',/*LowerMenuA2*/'',/*LowerMenuA3*/'',/*LowerMenuA4*/'',/*LowerMenuA5*/'',/*LowerMenuA6*/'',/*LowerMenuA7*/'',/*LowerMenuA8*/'',/*LowerMenuA9*/'',/*LowerMenuA10*/''];
//A Menu Names & Layers -
//Names to be shown on DEFAULT A[1] menu
var menuNamesADefault = [/*Title*/'',/*MenuA1*/'',/*MenuA2*/'',/*MenuA3*/'',/*MenuA4*/'',/*MenuA5*/'',/*MenuA6*/'',/*MenuA7*/'',/*MenuA8*/'',/*MenuA9*/'',/*MenuA10*/'']
//ID Type First variable should be short name. Subsequent values should be same as MenuNamesADefault or at least unique
var menuIDsADefault = [/*Short Name*/'',/*MenuA1*/'',/*MenuA2*/'',/*MenuA3*/'',/*MenuA4*/'',/*MenuA5*/'',/*MenuA6*/'',/*MenuA7*/'',/*MenuA8*/'',/*MenuA9*/'',/*MenuA10*/'']
//Layer Type. Type should be the same as MenuIDsADefault. First variable should likely be 'W' if Wincodde, 'R', 'B', 'Y', 'G', 'O', 'P', 'T' or 'V'. In Wincode, these are Wincode, Red, Blue, Yellow, Green, Orange, Purple, Teal and Violet color schemes. Ancestry color scheme uses R for 1st Ancestry, B for 2nd Ancesttry, etc.
var clickedLayerDefault = [/*DefaultLayerType*/'',/*LayerTypeA1*/'',/*LayerTypeA2*/'',/*LayerTypeA3*/'',/*LayerTypeA4*/'',/*LayerTypeA5*/'',/*LayerTypeA6*/'',/*LayerTypeA7*/'',/*LayerTypeA8*/'',/*LayerTypeA9*/'',/*LayerTypeA10*/'']
//Default LayerType. Likely W under Wincode, unless showing 1 color map.
var relevantCL = 'W'
// B Menu Names & Layers - only needs to be changed to 'Y' if default has a lower-level menu
var menuIDsBDefault = [0,0,0,0,0,0,0,0,0,0,0]
var menuNamesBDefault = menuIDsBDefault
var clickedName = [];
//Title for Default Menu Legend - should be as many variables as menuNamesADefault. Variables are in that order.
var TitleDefault = [/*DefaultTitle*/'',/*TitleA1*/'',/*TitleA2*/'',/*TitleA3*/'',/*TitleA4*/'',/*TitleA5*/'',/*TitleA6*/'',/*TitleA7*/'',/*TitleA8*/'',/*TitleA9*/'',/*TitleA10*/'']
//Wincode Formulas for each menu item. May or may not be identical. In Pop schemes, Red is total numerical change, Blue old pop, Yellow new pop.
var WincodeDefault = [/*DefaultWincode*/'',/*WincodeA1*/'',/*WincodeA2*/'',/*WincodeA3*/'',/*WincodeA4*/'',/*WincodeA5*/'',/*WincodeA6*/'',/*WincodeA7*/'',/*WincodeA8*/'',/*WincodeA9*/'',/*WincodeA10*/'']
//Variable Formulas for each PCT COLOR item. Likely the same for all, unless you have different contests with the same color scheme
var RedDefault = [/*DefaultRed*/'',/*RedA1*/'',/*RedA2*/'',/*RedA3*/'',/*RedA4*/'',/*RedA5*/'',/*RedA6*/'',/*RedA7*/'',/*RedA8*/'',/*RedA9*/'',/*RedA10*/'']
var BlueDefault = [/*DefaultBlue*/'',/*BlueA1*/'',/*BlueA2*/'',/*BlueA3*/'',/*BlueA4*/'',/*BlueA5*/'',/*BlueA6*/'',/*BlueA7*/'',/*BlueA8*/'',/*BlueA9*/'',/*BlueA10*/'']
var YellowDefault= [/*DefaultYellow*/'',/*YellowA1*/'',/*YellowA2*/'',/*YellowA3*/'',/*YellowA4*/'',/*YellowA5*/'',/*YellowA6*/'',/*YellowA7*/'',/*YellowA8*/'',/*YellowA9*/'',/*YellowA10*/'']
var GreenDefault = [/*DefaultGreen*/'',/*GreenA1*/'',/*GreenA2*/'',/*GreenA3*/'',/*GreenA4*/'',/*GreenA5*/'',/*GreenA6*/'',/*GreenA7*/'',/*GreenA8*/'',/*GreenA9*/'',/*GreenA10*/'']
var OrangeDefault = [/*DefaultOrange*/'',/*OrangeA1*/'',/*OrangeA2*/'',/*OrangeA3*/'',/*OrangeA4*/'',/*OrangeA5*/'',/*OrangeA6*/'',/*OrangeA7*/'',/*OrangeA8*/'',/*OrangeA9*/'',/*OrangeA10*/'']
var PurpleDefault = [/*DefaultPurple*/'',/*PurpleA1*/'',/*PurpleA2*/'',/*PurpleA3*/'',/*PurpleA4*/'',/*PurpleA5*/'',/*PurpleA6*/'',/*PurpleA7*/'',/*PurpleA8*/'',/*PurpleA9*/'',/*PurpleA10*/'']
var TealDefault = [/*DefaultTeal*/'',/*TealA1*/'',/*TealA2*/'',/*TealA3*/'',/*TealA4*/'',/*TealA5*/'',/*TealA6*/'',/*TealA7*/'',/*TealA8*/'',/*TealA9*/'',/*TealA10*/'']
var VioletDefault = [/*DefaultViolet*/'',/*VioletA1*/'',/*VioletA2*/'',/*VioletA3*/'',/*VioletA4*/'',/*VioletA5*/'',/*VioletA6*/'',/*VioletA7*/'',/*VioletA8*/'',/*VioletA9*/'',/*VioletA10*/'']

//Step for Pop maps. In most maps, 10 = 10 points; 2 = 2 points; 1 = 1 point; 0.5 = .5 points, etc.
var colorstepDefault = [/*DefaultCS*/10,/*CSA1*/10,/*CSA2*/10,/*CSA3*/0,/*CSA4*/0,/*CSA5*/0,/*CSA6*/0,/*CSA7*/0,/*CSA8*/0,/*CSA9*/0,/*CSA10*/0]
//Start value for Pop Maps. Can set this to start coloring only above 0%
var startvalueDefault = [/*DefaultSV*/0,/*SVA1*/0,/*SVA2*/0,/*SVA3*/0,/*SVA4*/0,/*SVA5*/0,/*SVA6*/0,/*SVA7*/0,/*SVA8*/0,/*SVA9*/0,/*SVA10*/0]
//Max Slider value - usually 10
var maxsliderDefault = [/*DefaultMS*/10,/*MSA1*/10,/*MSA2*/10,/*MSA3*/10,/*MSA4*/10,/*MSA5*/10,/*MSA6*/10,/*MSA7*/10,/*MSA8*/10,/*MSA9*/10,/*MSA10*/10]

//Candidate Names (Wincode) or Variables (Ancestry). Red candiate should be '+' for Pop maps; Blue '-'
var RedCandidateDefault = [/*DefaultRedCandidateName*/'',/*RedCandidateNameA1*/'',/*RedCandidateNameA2*/'',/*RedCandidateNameA3*/'',/*RedCandidateNameA4*/'',/*RedCandidateNameA5*/'',/*RedCandidateNameA6*/'',/*RedCandidateNameA7*/'',/*RedCandidateNameA8*/'',/*RedCandidateNameA9*/'',/*RedCandidateNameA10*/'']
var BlueCandidateDefault = [/*DefaultBlueCandidateName*/'',/*BlueCandidateNameA1*/'',/*BlueCandidateNameA2*/'',/*BlueCandidateNameA3*/'',/*BlueCandidateNameA4*/'',/*BlueCandidateNameA5*/'',/*BlueCandidateNameA6*/'',/*BlueCandidateNameA7*/'',/*BlueCandidateNameA8*/'',/*BlueCandidateNameA9*/'',/*BlueCandidateNameA10*/'']
var YellowCandidateDefault = [/*DefaultYellowCandidateName*/'',/*YellowCandidateNameA1*/'',/*YellowCandidateNameA2*/'',/*YellowCandidateNameA3*/'',/*YellowCandidateNameA4*/'',/*YellowCandidateNameA5*/'',/*YellowCandidateNameA6*/'',/*YellowCandidateNameA7*/'',/*YellowCandidateNameA8*/'',/*YellowCandidateNameA9*/'',/*YellowCandidateNameA10*/'']
var GreenCandidateDefault = [/*DefaultGreenCandidateName*/'',/*GreenCandidateNameA1*/'',/*GreenCandidateNameA2*/'',/*GreenCandidateNameA3*/'',/*GreenCandidateNameA4*/'',/*GreenCandidateNameA5*/'',/*GreenCandidateNameA6*/'',/*GreenCandidateNameA7*/'',/*GreenCandidateNameA8*/'',/*GreenCandidateNameA9*/'',/*GreenCandidateNameA10*/'']
var OrangeCandidateDefault = [/*DefaultOrangeCandidateName*/'',/*OrangeCandidateNameA1*/'',/*OrangeCandidateNameA2*/'',/*OrangeCandidateNameA3*/'',/*OrangeCandidateNameA4*/'',/*OrangeCandidateNameA5*/'',/*OrangeCandidateNameA6*/'',/*OrangeCandidateNameA7*/'',/*OrangeCandidateNameA8*/'',/*OrangeCandidateNameA9*/'',/*OrangeCandidateNameA10*/'']
var PurpleCandidateDefault = [/*DefaultPurpleCandidateName*/'',/*PurpleCandidateNameA1*/'',/*PurpleCandidateNameA2*/'',/*PurpleCandidateNameA3*/'',/*PurpleCandidateNameA4*/'',/*PurpleCandidateNameA5*/'',/*PurpleCandidateNameA6*/'',/*PurpleCandidateNameA7*/'',/*PurpleCandidateNameA8*/'',/*PurpleCandidateNameA9*/'',/*PurpleCandidateNameA10*/'']
var TealCandidateDefault = [/*DefaultTealCandidateName*/'',/*TealCandidateNameA1*/'',/*TealCandidateNameA2*/'',/*TealCandidateNameA3*/'',/*TealCandidateNameA4*/'',/*TealCandidateNameA5*/'',/*TealCandidateNameA6*/'',/*TealCandidateNameA7*/'',/*TealCandidateNameA8*/'',/*TealCandidateNameA9*/'',/*TealCandidateNameA10*/'']
var VioletCandidateDefault = [/*DefaultVioletCandidateName*/'',/*VioletCandidateNameA1*/'',/*VioletCandidateNameA2*/'',/*VioletCandidateNameA3*/'',/*VioletCandidateNameA4*/'',/*VioletCandidateNameA5*/'',/*VioletCandidateNameA6*/'',/*VioletCandidateNameA7*/'',/*VioletCandidateNameA8*/'',/*VioletCandidateNameA9*/'',/*VioletCandidateNameA10*/'']

//Statewide PCT for each color. Number (no quotes) for Wincode/Margin; Variable (quotes) for Ancestry. Likely the same number for each unless there's multiple contests in menu. ***Note: YOU MUST INCLUDE THESE IN WINCODE MAPS TO DETERMINE LEGEND COLOR ORDER - If no data, set dummy 1/2/3 etc with one you want to appear on top having the HIGHEST value. As always, you can keep quotes where not in use.
var RedStatewidePCTDefault = [/*DefaultRedStatewidePCT*/'',/*RedStatewidePCTA1*/'',/*RedStatewidePCTA2*/'',/*RedStatewidePCTA3*/'',/*RedStatewidePCTA4*/'',/*RedStatewidePCTA5*/'',/*RedStatewidePCTA6*/'',/*RedStatewidePCTA7*/'',/*RedStatewidePCTA8*/'',/*RedStatewidePCTA9*/'',/*RedStatewidePCTA10*/'']
var BlueStatewidePCTDefault = [/*DefaultBlueStatewidePCT*/'',/*BlueStatewidePCTA1*/'',/*BlueStatewidePCTA2*/'',/*BlueStatewidePCTA3*/'',/*BlueStatewidePCTA4*/'',/*BlueStatewidePCTA5*/'',/*BlueStatewidePCTA6*/'',/*BlueStatewidePCTA7*/'',/*BlueStatewidePCTA8*/'',/*BlueStatewidePCTA9*/'',/*BlueStatewidePCTA10*/'']
var YellowStatewidePCTDefault = [/*DefaultYellowStatewidePCT*/'',/*YellowStatewidePCTA1*/'',/*YellowStatewidePCTA2*/'',/*YellowStatewidePCTA3*/'',/*YellowStatewidePCTA4*/'',/*YellowStatewidePCTA5*/'',/*YellowStatewidePCTA6*/'',/*YellowStatewidePCTA7*/'',/*YellowStatewidePCTA8*/'',/*YellowStatewidePCTA9*/'',/*YellowStatewidePCTA10*/'']
var GreenStatewidePCTDefault = [/*DefaultGreenStatewidePCT*/'',/*GreenStatewidePCTA1*/'',/*GreenStatewidePCTA2*/'',/*GreenStatewidePCTA3*/'',/*GreenStatewidePCTA4*/'',/*GreenStatewidePCTA5*/'',/*GreenStatewidePCTA6*/'',/*GreenStatewidePCTA7*/'',/*GreenStatewidePCTA8*/'',/*GreenStatewidePCTA9*/'',/*GreenStatewidePCTA10*/'']
var OrangeStatewidePCTDefault = [/*DefaultOrangeStatewidePCT*/'',/*OrangeStatewidePCTA1*/'',/*OrangeStatewidePCTA2*/'',/*OrangeStatewidePCTA3*/'',/*OrangeStatewidePCTA4*/'',/*OrangeStatewidePCTA5*/'',/*OrangeStatewidePCTA6*/'',/*OrangeStatewidePCTA7*/'',/*OrangeStatewidePCTA8*/'',/*OrangeStatewidePCTA9*/'',/*OrangeStatewidePCTA10*/'']
var PurpleStatewidePCTDefault = [/*DefaultPurpleStatewidePCT*/'',/*PurpleStatewidePCTA1*/'',/*PurpleStatewidePCTA2*/'',/*PurpleStatewidePCTA3*/'',/*PurpleStatewidePCTA4*/'',/*PurpleStatewidePCTA5*/'',/*PurpleStatewidePCTA6*/'',/*PurpleStatewidePCTA7*/'',/*PurpleStatewidePCTA8*/'',/*PurpleStatewidePCTA9*/'',/*PurpleStatewidePCTA10*/'']
var TealStatewidePCTDefault = [/*DefaultTealStatewidePCT*/'',/*TealStatewidePCTA1*/'',/*TealStatewidePCTA2*/'',/*TealStatewidePCTA3*/'',/*TealStatewidePCTA4*/'',/*TealStatewidePCTA5*/'',/*TealStatewidePCTA6*/'',/*TealStatewidePCTA7*/'',/*TealStatewidePCTA8*/'',/*TealStatewidePCTA9*/'',/*TealStatewidePCTA10*/'']
var VioletStatewidePCTDefault = [/*DefaultVioletStatewidePCT*/'',/*VioletStatewidePCTA1*/'',/*VioletStatewidePCTA2*/'',/*VioletStatewidePCTA3*/'',/*VioletStatewidePCTA4*/'',/*VioletStatewidePCTA5*/'',/*VioletStatewidePCTA6*/'',/*VioletStatewidePCTA7*/'',/*VioletStatewidePCTA8*/'',/*VioletStatewidePCTA9*/'',/*VioletStatewidePCTA10*/'']

//Variable for Precinct/Geo Name. Likely the same for each unless there's multiple contests in menu
var PrecinctDefault = [/*DefaultPrecinctName*/'',/*PrecinctNameA1*/'',/*PrecinctNameA2*/'',/*PrecinctNameA3*/'',/*PrecinctNameA4*/'',/*PrecinctNameA5*/'',/*PrecinctNameA6*/'',/*PrecinctNameA7*/'',/*PrecinctNameA8*/'',/*PrecinctNameA9*/'',/*PrecinctNameA10*/'']

//Total Precinct Votes for each Precinct/Geo. Likely the same for all unless multiple contests - Variable
var TotalVotesDefault = [/*DefaultWincode*/'',/*WincodeA1*/'',/*WincodeA2*/'',/*WincodeA3*/'',/*WincodeA4*/'',/*WincodeA5*/'',/*WincodeA6*/'',/*WincodeA7*/'',/*WincodeA8*/'',/*WincodeA9*/'',/*WincodeA10*/'']

//Total Statewide Votes for each contest. Likely the same for all unless multiple contests - This Number (no quotes) - change from 0, if you wish
var StatewideVotesDefault = [/*DefaultTotSWVotes*/0,/*TotSWVotesA1*/0,/*TotSWVotesA2*/0,/*TotSWVotesA3*/0,/*TotSWVotesA4*/0,/*TotSWVotesA5*/0,/*TotSWVotesA6*/0,/*TotSWVotesA7*/0,/*TotSWVotesA8*/0,/*TotSWVotesA9*/0,/*TotSWVotesA10*/0]

//Ancestry for Ancestry maps; Wincode for Wincode maps; PopPCT for PopPCT maps; PopNUM for PopNUM maps; Margin for Margin Maps; Margin7 for Margin 7 Maps; JMCWincode for JMC Wincode maps.
var relevanttypeDefault = [/*DefaultMapType*/'',/*MapTypeA1*/'',/*MapTypeA2*/'',/*MapTypeA3*/'',/*MapTypeA4*/'',/*MapTypeA5*/'',/*MapTypeA6*/'',/*MapTypeA7*/'',/*MapTypeA8*/'',/*MapTypeA9*/'',/*MapTypeA10*/'']
var relevantColor = '' //Ancestry or Wincode or Margin or Margin7 or PopPCT or PopNUM or JMCWincode- for DEFAULT ([0][0][0]) map that you want to intiially load
var country = 'us' //change for non US maps
var stateDefault = [] //Not currently in use

//Sets up arrays - do not touch
var TitleA = new Array(10);
var WincodeA = new Array(10);
var RedA = new Array(10);
var BlueA = new Array(10);
var YellowA = new Array(10);
var GreenA = new Array(10);
var OrangeA = new Array(10);
var PurpleA = new Array(10);
var TealA = new Array(10);
var VioletA = new Array(10);
var colorstepA = new Array(10);
var startvalueA = new Array(10);
var maxsliderA = new Array(10);
var RedCandidateA = new Array(10);
var BlueCandidateA = new Array(10);
var YellowCandidateA = new Array(10);
var GreenCandidateA = new Array(10);
var OrangeCandidateA = new Array(10);
var PurpleCandidateA = new Array(10);
var TealCandidateA = new Array(10);
var VioletCandidateA = new Array(10);
var RedStatewidePCTA = new Array(10);
var BlueStatewidePCTA = new Array(10);
var YellowStatewidePCTA = new Array(10);
var GreenStatewidePCTA = new Array(10);
var OrangeStatewidePCTA = new Array(10);
var PurpleStatewidePCTA = new Array(10);
var TealStatewidePCTA = new Array(10);
var VioletStatewidePCTA = new Array(10);
var PrecinctA = new Array(10);
var StatewideVotesA = new Array(10);
var TotalVotesA = new Array(10);
var Tog1A = new Array(10);
var clickedLayerA = new Array(10);
//Menu B Menu Names & Layers
var menuIDsA = new Array(10);
var menuNamesA = new Array(10);
var relevanttypeA = new Array(10);
var stateA = new Array (10);
var lowermenuA = new Array(10)

for (var i = 1; i < 101; i++) {
TitleA[i] = []
RedA[i] = [0]
BlueA[i] = [0]
YellowA[i] = [0]
GreenA[i] = [0]
OrangeA[i] = [0]
PurpleA[i] = [0]
TealA[i] = [0]
VioletA[i] = [0]
colorstepA[i] = [2]
startvalueA[i] = [0]
maxsliderA[i] = [10]
RedCandidateA[i] = []
BlueCandidateA[i] = []
YellowCandidateA[i] = []
GreenCandidateA[i] = []
OrangeCandidateA[i] = []
PurpleCandidateA[i] = []
TealCandidateA[i] = []
VioletCandidateA[i] = []
RedStatewidePCTA[i] = [0]
BlueStatewidePCTA[i] = [0]
YellowStatewidePCTA[i] = [0]
GreenStatewidePCTA[i] = [0]
OrangeStatewidePCTA[i] = [0]
PurpleStatewidePCTA[i] = [0]
TealStatewidePCTA[i] = [0]
VioletStatewidePCTA[i] = [0]
PrecinctA[i] = []
StatewideVotesA[i] = []
TotalVotesA[i] = []
Tog1A[i] = ['']
clickedLayerA[i] = [0]
//Menu B Menu Names & Layers
menuIDsA[i] = [0]
menuNamesA[i] = [0]
relevanttypeA[i] = [0]
stateA[i] = ['']
lowermenuA[i] = [0]
}

var TitleB = new Array(110);
var WincodeB = new Array(110);
var RedB = new Array(110);
var BlueB = new Array(110);
var YellowB = new Array(110);
var GreenB = new Array(110);
var OrangeB = new Array(110);
var PurpleB = new Array(110);
var TealB = new Array(110);
var VioletB = new Array(110);
var colorstepB = new Array(110);
var startvalueB = new Array(110);
var maxsliderB = new Array(110);
var RedCandidateB = new Array(110);
var BlueCandidateB = new Array(110);
var YellowCandidateB = new Array(110);
var GreenCandidateB = new Array(110);
var OrangeCandidateB = new Array(110);
var PurpleCandidateB = new Array(110);
var TealCandidateB = new Array(110);
var VioletCandidateB = new Array(110);
var RedStatewidePCTB = new Array(110);
var BlueStatewidePCTB = new Array(110);
var YellowStatewidePCTB = new Array(110);
var GreenStatewidePCTB = new Array(110);
var OrangeStatewidePCTB = new Array(110);
var PurpleStatewidePCTB = new Array(110);
var TealStatewidePCTB = new Array(110);
var VioletStatewidePCTB = new Array(110);
var PrecinctB = new Array(110);
var StatewideVotesB = new Array(110);
var TotalVotesB = new Array(110);
var Tog1B = new Array(110);
var clickedLayerB = new Array(110);
//Menu B Menu Names & Layers
var menuIDsB = new Array(110);
var menuNamesB = new Array(110);
var relevanttypeB = new Array(110);
var stateB = new Array (110);

for (var i = 1; i < 111; i++) {
TitleB[i] = []
RedB[i] = [0]
BlueB[i] = [0]
YellowB[i] = [0]
GreenB[i] = [0]
OrangeB[i] = [0]
PurpleB[i] = [0]
TealB[i] = [0]
VioletB[i] = [0]
colorstepB[i] = [2]
startvalueB[i] = [0]
maxsliderB[i]=[10]
RedCandidateB[i] = []
BlueCandidateB[i] = []
YellowCandidateB[i] = []
GreenCandidateB[i] = []
OrangeCandidateB[i] = []
PurpleCandidateB[i] = []
TealCandidateB[i] = []
VioletCandidateB[i] = []
RedStatewidePCTB[i] = [0]
BlueStatewidePCTB[i] = [0]
YellowStatewidePCTB[i] = [0]
GreenStatewidePCTB[i] = [0]
OrangeStatewidePCTB[i] = [0]
PurpleStatewidePCTB[i] = [0]
TealStatewidePCTB[i] = [0]
VioletStatewidePCTB[i] = [0]
PrecinctB[i] = []
StatewideVotesB[i] = []
TotalVotesB[i] = []
Tog1B[i] = ['']
clickedLayerB[i] = [0]
//Menu B Menu Names & Layers
menuIDsB[i] = [0]
menuNamesB[i] = [0]
relevanttypeB[i] = [0]
stateB[i] = ['']
}
//Emd of Arrays
TitleA[0] = TitleDefault
WincodeA[0] = WincodeDefault
RedA[0] = RedDefault
BlueA[0] = BlueDefault
YellowA[0] = YellowDefault
GreenA[0] = GreenDefault
OrangeA[0] = OrangeDefault
PurpleA[0] = PurpleDefault
TealA[0] = TealDefault
VioletA[0] = VioletDefault
colorstepA[0] = colorstepDefault
startvalueA[0] = startvalueDefault
maxsliderA[0] = maxsliderDefault
RedCandidateA[0] = RedCandidateDefault
BlueCandidateA[0] = BlueCandidateDefault
YellowCandidateA[0] = YellowCandidateDefault
GreenCandidateA[0] = GreenCandidateDefault
OrangeCandidateA[0] = OrangeCandidateDefault
PurpleCandidateA[0] = PurpleCandidateDefault
TealCandidateA[0] = TealCandidateDefault
VioletCandidateA[0] = VioletCandidateDefault
RedStatewidePCTA[0] = RedStatewidePCTDefault
BlueStatewidePCTA[0] = BlueStatewidePCTDefault
YellowStatewidePCTA[0] = YellowStatewidePCTDefault
GreenStatewidePCTA[0] = GreenStatewidePCTDefault
OrangeStatewidePCTA[0] = OrangeStatewidePCTDefault
PurpleStatewidePCTA[0] = PurpleStatewidePCTDefault
TealStatewidePCTA[0] = TealStatewidePCTDefault
VioletStatewidePCTA[0] = VioletStatewidePCTDefault
PrecinctA[0] = PrecinctDefault
StatewideVotesA[0] = StatewideVotesDefault
TotalVotesA[0] = TotalVotesDefault
Tog1A[0] = Tog1Default
Tog1A[0] = Tog1Default
clickedLayerA[0] = clickedLayerDefault
menuIDsA[0] = menuIDsADefault
menuNamesA[0] = menuNamesADefault

//***MUST EDIT*** Defines if there is a B menu below A. 0 = No, 'Y' = Yes ***MUST EDIT***
lowermenuA[0] = [/*DefaultMenuB*/0/*MenuB1*/0,/*MenuB2*/0,/*MenuB3*/0,/*MenuB4*/0,/*MenuB5*/0,/*MenuB6*/0,/*MenuB7*/0,/*MenuB8*/0,/*MenuB9*/0,/*MenuB10*/0]
relevanttypeA[0] = relevanttypeDefault
stateA[0] = []

//Transfers Default Vaues to Menu A[1] - DO NOT TOUCH
TitleA[1] = TitleDefault
WincodeA[1] = WincodeDefault
RedA[1] = RedDefault
BlueA[1] = BlueDefault
YellowA[1] = YellowDefault
GreenA[1] = GreenDefault
OrangeA[1] = OrangeDefault
PurpleA[1] = PurpleDefault
TealA[1] = TealDefault
VioletA[1] = VioletDefault
colorstepA[1] = colorstepDefault
startvalueA[1] = startvalueDefault
maxsliderA[1] = maxsliderDefault
RedCandidateA[1] = RedCandidateDefault
BlueCandidateA[1] = BlueCandidateDefault
YellowCandidateA[1] = YellowCandidateDefault
GreenCandidateA[1] = GreenCandidateDefault
OrangeCandidateA[1] = OrangeCandidateDefault
PurpleCandidateA[1] = PurpleCandidateDefault
TealCandidateA[1] = TealCandidateDefault
VioletCandidateA[1] = VioletCandidateDefault
RedStatewidePCTA[1] = RedStatewidePCTDefault
BlueStatewidePCTA[1] = BlueStatewidePCTDefault
YellowStatewidePCTA[1] = YellowStatewidePCTDefault
GreenStatewidePCTA[1] = GreenStatewidePCTDefault
OrangeStatewidePCTA[1] = OrangeStatewidePCTDefault
PurpleStatewidePCTA[1] = PurpleStatewidePCTDefault
TealStatewidePCTA[1] = TealStatewidePCTDefault
VioletStatewidePCTA[1] = VioletStatewidePCTDefault
PrecinctA[1] = PrecinctDefault
StatewideVotesA[1] = StatewideVotesDefault
TotalVotesA[1] = TotalVotesDefault
Tog1A[1] = Tog1Default
clickedLayerA[1] = clickedLayerA[0]
///Menu A Menu Names & Layers
menuIDsA[1] = menuIDsADefault
menuNamesA[1] = menuNamesADefault
lowermenuA[1] = lowermenuA[0]
relevanttypeA[1] = relevanttypeA[0]
stateA[1] = []
newbmenu = 0

///Template for lower B Menus. Only necessary if third-level B menus exist. Otherwise, delete. B[11] is first lower menu for A[1][1], B[12] is for A[1][2], etc. Variables are same as Default.

TitleB[11] = [/*DefaultTitle*/'',/*TitleA4*/'',/*TitleA5*/'',/*TitleA6*/'',/*TitleA1*/'',/*TitleA2*/'',/*TitleA3*/'',/*TitleA7*/'',/*TitleA8*/'',/*TitleA9*/'',/*TitleA10*/'']
WincodeB[11] = [/*DefaultWincodeB[11]*/'',/*WincodeB[11]1*/'',/*WincodeB[11]2*/'',/*WincodeB[11]3*/'',/*WincodeB[11]4*/'',/*WincodeB[11]5*/'',/*WincodeB[11]6*/'',/*WincodeB[11]7*/'',/*WincodeB[11]8*/'',/*WincodeB[11]9*/'',/*WincodeB[11]10*/'']
RedB[11] = [/*DefaultRedB[11]*/'',/*RedB[11]2*/'',/*RedB[11]2*/'',/*RedB[11]3*/'',/*RedB[11]4*/'',/*RedB[11]5*/'',/*RedB[11]6*/'',/*RedB[11]7*/'',/*RedB[11]8*/'',/*RedB[11]9*/'',/*RedB[11]10*/'']
BlueB[11] = [/*DefaultBlueB[11]*/'',/*BlueB[11]2*/'',/*BlueB[11]2*/'',/*BlueB[11]3*/'',/*BlueB[11]4*/'',/*BlueB[11]5*/'',/*BlueB[11]6*/'',/*BlueB[11]7*/'',/*BlueB[11]8*/'',/*BlueB[11]9*/'',/*BlueB[11]10*/'']
YellowB[11] = [/*DefaultYellowB[11]*/'',/*YellowB[11]2*/'',/*YellowB[11]2*/'',/*YellowB[11]3*/'',/*YellowB[11]4*/'',/*YellowB[11]5*/'',/*YellowB[11]6*/'',/*YellowB[11]7*/'',/*YellowB[11]8*/'',/*YellowB[11]9*/'',/*YellowB[11]10*/'']
GreenB[11] = [/*GreenDefaultB[11]*/'',/*GreenB[11]1*/'',/*GreenB[11]2*/'',/*GreenB[11]3*/'',/*GreenB[11]4*/'',/*GreenB[11]5*/'',/*GreenB[11]6*/'',/*GreenB[11]7*/'',/*GreenB[11]8*/'',/*GreenB[11]9*/'',/*GreenB[11]10*/'']
OrangeB[11] = [/*OrangeDefaultB[11]*/'',/*OrangeB[11]1*/'',/*OrangeB[11]2*/'',/*OrangeB[11]3*/'',/*OrangeB[11]4*/'',/*OrangeB[11]5*/'',/*OrangeB[11]6*/'',/*OrangeB[11]7*/'',/*OrangeB[11]8*/'',/*OrangeB[11]9*/'',/*OrangeB[11]10*/'']
PurpleB[11] = [/*PurpleDefaultB[11]*/'',/*PurpleB[11]1*/'',/*PurpleB[11]2*/'',/*PurpleB[11]3*/'',/*PurpleB[11]4*/'',/*PurpleB[11]5*/'',/*PurpleB[11]6*/'',/*PurpleB[11]7*/'',/*PurpleB[11]8*/'',/*PurpleB[11]9*/'',/*PurpleB[11]10*/'']
TealB[11] = [/*TealDefaultB[11]*/'',/*TealB[11]1*/'',/*TealB[11]2*/'',/*TealB[11]3*/'',/*TealB[11]4*/'',/*TealB[11]5*/'',/*TealB[11]6*/'',/*TealB[11]7*/'',/*TealB[11]8*/'',/*TealB[11]9*/'',/*TealB[11]10*/'']
VioletB[11] = [/*VioletDefaultB[11]*/'',/*VioletB[11]1*/'',/*VioletB[11]2*/'',/*VioletB[11]3*/'',/*VioletB[11]4*/'',/*VioletB[11]5*/'',/*VioletB[11]6*/'',/*VioletB[11]7*/'',/*VioletB[11]8*/'',/*VioletB[11]9*/'',/*VioletB[11]10*/'']
colorstepB[11] = [/*DefaultCSB[11]*/10,/*CSB[11]1*/10,/*CSB[11]2*/10,/*CSB[11]3*/10,/*CSB[11]4*/10,/*CSB[11]5*/10,/*CSB[11]6*/10,/*CSB[11]7*/10,/*CSB[11]8*/10,/*CSB[11]9*/10,/*CSB[11]10*/10]
startvalueB[11] = [0,0,0,0,0,0,0,0,0,0,0,0]
maxsliderB[11] = [/*DefaultMSB[11]*/10,/*CSB[11]1*/10,/*CSB[11]2*/10,/*CSB[11]3*/10,/*CSB[11]4*/10,/*CSB[11]5*/10,/*CSB[11]6*/10,/*CSB[11]7*/10,/*CSB[11]8*/10,/*CSB[11]9*/10,/*CSB[11]10*/10]
RedCandidateB[11] = [/*DefaultRedCandidateNameB[11]*/'',/*RedCandidateNameB[11]1*/'',/*RedCandidateNameB[11]2*/'',/*RedCandidateNameB[11]3*/'',/*RedCandidateNameB[11]4*/'',/*RedCandidateNameB[11]5*/'',/*RedCandidateNameB[11]6*/'',/*RedCandidateNameB[11]7*/'',/*RedCandidateNameB[11]8*/'',/*RedCandidateNameB[11]9*/'',/*RedCandidateNameB[11]10*/'']
BlueCandidateB[11] = [/*DefaultBlueCandidateNameB[11]*/'',/*BlueCandidateNameB[11]1*/'',/*BlueCandidateNameB[11]2*/'',/*BlueCandidateNameB[11]3*/'',/*BlueCandidateNameB[11]4*/'',/*BlueCandidateNameB[11]5*/'',/*BlueCandidateNameB[11]6*/'',/*BlueCandidateNameB[11]7*/'',/*BlueCandidateNameB[11]8*/'',/*BlueCandidateNameB[11]9*/'',/*BlueCandidateNameB[11]10*/'']
YellowCandidateB[11] = [/*YellowCandidateNameB[11]*/'',/*YellowCandidateNameB[11]1*/'',/*YellowCandidateNameB[11]2*/'',/*YellowCandidateNameB[11]3*/'',/*YellowCandidateNameB[11]4*/'',/*YellowCandidateNameB[11]5*/'',/*YellowCandidateNameB[11]6*/'',/*YellowCandidateNameB[11]7*/'',/*YellowCandidateNameB[11]8*/'',/*YellowCandidateNameB[11]9*/'',/*YellowCandidateNameB[11]10*/'']
GreenCandidateB[11] = [/*DefaultB[11]GreenCandidateName*/'',/*GreenCandidateNameB[11]1*/'',/*GreenCandidateNameB[11]2*/'',/*GreenCandidateNameB[11]3*/'',/*GreenCandidateNameB[11]4*/'',/*GreenCandidateNameB[11]5*/'',/*GreenCandidateNameB[11]6*/'',/*GreenCandidateNameB[11]7*/'',/*GreenCandidateNameB[11]8*/'',/*GreenCandidateNameB[11]9*/'',/*GreenCandidateNameB[11]10*/'']
OrangeCandidateB[11] = [/*DefaultB[11]OrangeCandidateName*/'',/*OrangeCandidateNameB[11]1*/'',/*OrangeCandidateNameB[11]2*/'',/*OrangeCandidateNameB[11]3*/'',/*OrangeCandidateNameB[11]4*/'',/*OrangeCandidateNameB[11]5*/'',/*OrangeCandidateNameB[11]6*/'',/*OrangeCandidateNameB[11]7*/'',/*OrangeCandidateNameB[11]8*/'',/*OrangeCandidateNameB[11]9*/'',/*OrangeCandidateNameB[11]10*/'']
PurpleCandidateB[11] = [/*DefaultB[11]PurpleCandidateName*/'',/*PurpleCandidateNameB[11]1*/'',/*PurpleCandidateNameB[11]2*/'',/*PurpleCandidateNameB[11]3*/'',/*PurpleCandidateNameB[11]4*/'',/*PurpleCandidateNameB[11]5*/'',/*PurpleCandidateNameB[11]6*/'',/*PurpleCandidateNameB[11]7*/'',/*PurpleCandidateNameB[11]8*/'',/*PurpleCandidateNameB[11]9*/'',/*PurpleCandidateNameB[11]10*/'']
TealCandidateB[11] = [/*DefaultB[11]TealCandidateName*/'',/*TealCandidateNameB[11]1*/'',/*TealCandidateNameB[11]2*/'',/*TealCandidateNameB[11]3*/'',/*TealCandidateNameB[11]4*/'',/*TealCandidateNameB[11]5*/'',/*TealCandidateNameB[11]6*/'',/*TealCandidateNameB[11]7*/'',/*TealCandidateNameB[11]8*/'',/*TealCandidateNameB[11]9*/'',/*TealCandidateNameB[11]10*/'']
VioletCandidateB[11] = [/*DefaultB[11]VioletCandidateName*/'',/*VioletCandidateNameB[11]1*/'',/*VioletCandidateNameB[11]2*/'',/*VioletCandidateNameB[11]3*/'',/*VioletCandidateNameB[11]4*/'',/*VioletCandidateNameB[11]5*/'',/*VioletCandidateNameB[11]6*/'',/*VioletCandidateNameB[11]7*/'',/*VioletCandidateNameB[11]8*/'',/*VioletCandidateNameB[11]9*/'',/*VioletCandidateNameB[11]10*/'']

RedStatewidePCTB[11] = [/*DefaultRedStatewidePCTB[11]*/'',/*RedStatewideNameB[11]1*/'',/*RedStatewideNameB[11]2*/'',/*RedStatewideNameB[11]3*/'',/*RedStatewideNameB[11]4*/'',/*RedStatewideNameB[11]5*/'',/*RedStatewideNameB[11]6*/'',/*RedStatewideNameB[11]7*/'',/*RedStatewideNameB[11]8*/'',/*RedStatewideNameB[11]9*/'',/*RedStatewideNameB[11]10*/'']
BlueStatewidePCTB[11] = [/*DefaultBlueStatewidePCTB[11]*/,/*BlueStatewideNameB[11]1*/'',/*BlueStatewideNameB[11]2*/'',/*BlueStatewideNameB[11]3*/'',/*BlueStatewideNameB[11]4*/'',/*BlueStatewideNameB[11]5*/'',/*BlueStatewideNameB[11]6*/'',/*BlueStatewideNameB[11]7*/'',/*BlueStatewideNameB[11]8*/'',/*BlueStatewideNameB[11]9*/'',/*BlueStatewideNameB[11]10*/'']
YellowStatewidePCTB[11] = [/*DefaultYellowStatewidePCTB[11]*/'',/*YellowStatewideNameB[11]1*/'',/*YellowStatewideNameB[11]2*/'',/*YellowStatewideNameB[11]3*/'',/*YellowStatewideNameB[11]4*/'',/*YellowStatewideNameB[11]5*/'',/*YellowStatewideNameB[11]6*/'',/*YellowStatewideNameB[11]7*/'',/*YellowStatewideNameB[11]8*/'',/*YellowStatewideNameB[11]9*/'',/*YellowStatewideNameB[11]10*/'']
GreenStatewidePCTB[11] = [/*DefaultGreenStatewidePCTB[11]*/'',/*GreenStatewideNameB[11]1*/'',/*GreenStatewideNameB[11]2*/'',/*GreenStatewideNameB[11]3*/'',/*GreenStatewideNameB[11]4*/'',/*GreenStatewideNameB[11]5*/'',/*GreenStatewideNameB[11]6*/'',/*GreenStatewideNameB[11]7*/'',/*GreenStatewideNameB[11]8*/'',/*GreenStatewideNameB[11]9*/'',/*GreenStatewideNameB[11]10*/'']
OrangeStatewidePCTB[11] = [/*Defaul]OrangeStatewidePCTB[11]*/'',/*OrangeStatewideNameB[11]1*/'',/*OrangeStatewideNameB[11]2*/'',/*OrangeStatewideNameB[11]3*/'',/*OrangeStatewideNameB[11]4*/'',/*OrangeStatewideNameB[11]5*/'',/*OrangeStatewideNameB[11]6*/'',/*OrangeStatewideNameB[11]7*/'',/*OrangeStatewideNameB[11]8*/'',/*OrangeStatewideNameB[11]9*/'',/*OrangeStatewideNameB[11]10*/'']
PurpleStatewidePCTB[11] = [/*DefaultPurpleStatewidePCTB[11]*/'',/*PurpleStatewideNameB[11]1*/'',/*PurpleStatewideNameB[11]2*/'',/*PurpleStatewideNameB[11]3*/'',/*PurpleStatewideNameB[11]4*/'',/*PurpleStatewideNameB[11]5*/'',/*PurpleStatewideNameB[11]6*/'',/*PurpleStatewideNameB[11]7*/'',/*PurpleStatewideNameB[11]8*/'',/*PurpleStatewideNameB[11]9*/'',/*PurpleStatewideNameB[11]10*/'']
TealStatewidePCTB[11] = [/*DefaultTealStatewidePCTB[11]*/'',/*TealStatewideNameB[11]1*/'',/*TealStatewideNameB[11]2*/'',/*TealStatewideNameB[11]3*/'',/*TealStatewideNameB[11]4*/'',/*TealStatewideNameB[11]5*/'',/*TealStatewideNameB[11]6*/'',/*TealStatewideNameB[11]7*/'',/*TealStatewideNameB[11]8*/'',/*TealStatewideNameB[11]9*/'',/*TealStatewideNameB[11]10*/'']
VioletStatewidePCTB[11] = [/*DefaultVioletStatewidePCTB[11]*/'',/*VioletStatewideNameB[11]1*/'',/*VioletStatewideNameB[11]2*/'',/*VioletStatewideNameB[11]3*/'',/*VioletStatewideNameB[11]4*/'',/*VioletStatewideNameB[11]5*/'',/*VioletStatewideNameB[11]6*/'',/*VioletStatewideNameB[11]7*/'',/*VioletStatewideNameB[11]8*/'',/*VioletStatewideNameB[11]9*/'',/*VioletStatewideNameB[11]10*/'']

PrecinctB[11] = [/*DefaultPrecinctName*/'',/*PrecinctNameB[11]1*/'',/*PrecinctNameB[11]2*/'',/*PrecinctNameB[11]3*/'',/*PrecinctNameB[11]4*/'',/*PrecinctNameB[11]5*/'',/*PrecinctNameB[11]6*/'',/*PrecinctNameB[11]7*/'',/*PrecinctNameB[11]8*/'',/*PrecinctNameB[11]9*/'',/*PrecinctNameB[11]10*/'']
TotalVotesB[11] = [/*DefaultTotalVotesB[11]*/'',/*TotalVotesB[11]1*/'',/*TotalVotesB[11]2*/'',/*TotalVotesB[11]3*/'',/*TotalVotesB[11]4*/'',/*TotalVotesB[11]5*/'',/*TotalVotesB[11]6*/'',/*TotalVotesB[11]7*/'',/*TotalVotesB[11]8*/'',/*TotalVotesB[11]9*/'',/*TotalVotesB[11]10*/'']
StatewideVotesB[11] = [/*DefaultTotSWVotesB[11]*/0,/*TotSWVotesB[11]1*/0,/*TotSWVotesB[11]2*/0,/*TotSWVotesB[11]3*/0,/*TotSWVotesB[11]4*/0,/*TotSWVotesB[11]5*/0,/*TotSWVotesB[11]6*/0,/*TotSWVotesB[11]7*/0,/*TotSWVotesB[11]8*/0,/*TotSWVotesB[11]9*/0,/*TotSWVotesB[11]10*/0]

//Menu B Menu Names
menuNamesB[11] = [/*DefautltTitleB[11]*/'',/*MenuB[11]1*/'',/*MenuB[11]2*/'',/*MenuB[11]63/'',/*MenuB[11]4*/'',/*MenuB[11]5*/'',/*MenuB[11]6*/'',/*MenuB[11]7*/'',/*MenuB[11]8*/'',/*MenuB[11]9*/'',/*MenuB[11]10*/'']
menuIDsB[11] = [/*DefaultShortNameB[11]*/'',/*ShortNameB[11]1*/'',/*ShortNameB[11]2*/'',/*ShortNameB[11]3*/'',/*ShortNameB[11]4*/'',/*ShortNameB[11]5*/'',/*ShortNameB[11]6*/'',/*ShortNameB[11]7*/'',/*ShortNameB[11]8*/'',/*ShortNameB[11]9*/'',/*ShortNameB[11]10*/'']
clickedLayerB[11] = [/*DefaultLayerTypeB[11]*/'',/*LayerTypeB[11]1*/'',/*LayerTypeB[11]2*/'',/*LayerTypeB[11]3*/'',/*LayerTypeB[11]4*/'',/*LayerTypeB[11]5*/'',/*LayerTypeB[11]6*/'',/*LayerTypeB[11]7*/'',/*LayerTypeB[11]8*/'',/*LayerTypeB[11]9*/'',/*LayerTypeB[11]10*/'']
relevanttypeB[11] = [/*DefaultMapTypeB[11]*/'',/*MapTypeB[11]1*/'',/*MapTypeB[11]2*/'',/*MapTypeB[11]3*/'',/*MapTypeB[11]4*/'',/*MapTypeB[11]5*/'',/*MapTypeB[11]6*/'',/*MapTypeB[11]7*/'',/*MapTypeB[11]8*/'',/*MapTypeB[11]9*/'',/*MapTypeB[11]10*/'']
Tog1B[11] = ['','','','','','','','','','','']
stateB[11] = ['']


//Template for Second-Level Menus A[2]-[1] A Menus are 1-10, depending on slot in Main Menu. Copy this for additional menus.


TitleA[2] = [/*DefaultTitleA[2]*/'',/*TitleA[2]1*/'',/*TitleA[2]2*/'',/*TitleA[2]3*/'',/*TitleA[2]4*/'',/*TitleA[2]5*/'',/*TitleA[2]6*/'',/*TitleA[2]7*/'',/*TitleA[2]8*/'',/*TitleA[2]9*/'',/*TitleA[2]10*/'']
WincodeA[2] = [/*DefaultWincodeA[2]*/'',/*WincodeA[2]1*/'',/*WincodeA[2]2*/'',/*WincodeA[2]3*/'',/*WincodeA[2]4*/'',/*WincodeA[2]5*/'',/*WincodeA[2]6*/'',/*WincodeA[2]7*/'',/*WincodeA[2]8*/'',/*WincodeA[2]9*/'',/*WincodeA[2]10*/'']
RedA[2] = [/*DefaultRedA[2]*/'',/*RedA[2]1*/'',/*RedA[2]2*/'',/*RedA[2]3*/'',/*RedA[2]4*/'',/*RedA[2]5*/'',/*RedA[2]6*/'',/*RedA[2]7*/'',/*RedA[2]8*/'',/*RedA[2]9*/'',/*RedA[2]10*/'']
BlueA[2] = [/*DefaultBlueA[2]*/'',/*BlueA[2]1*/'',/*BlueA[2]2*/'',/*BlueA[2]3*/'',/*BlueA[2]4*/'',/*BlueA[2]5*/'',/*BlueA[2]6*/'',/*BlueA[2]7*/'',/*BlueA[2]8*/'',/*BlueA[2]9*/'',/*BlueA[2]10*/'']
YellowA[2] = [/*DefaultYellowA[2]*/'',/*YellowA[2]1*/'',/*YellowA[2]2*/'',/*YellowA[2]3*/'',/*YellowA[2]4*/'',/*YellowA[2]5*/'',/*YellowA[2]6*/'',/*YellowA[2]7*/'',/*YellowA[2]8*/'',/*YellowA[2]9*/'',/*YellowA[2]10*/'']
GreenA[2] = [/*GreenDefaultA[2]*/'',/*GreenA[2]1*/'',/*GreenA[2]2*/'',/*GreenA[2]3*/'',/*GreenA[2]4*/'',/*GreenA[2]5*/'',/*GreenA[2]6*/'',/*GreenA[2]7*/'',/*GreenA[2]8*/'',/*GreenA[2]9*/'',/*GreenA[2]10*/'']
OrangeA[2] = [/*OrangeDefaultA[2]*/'',/*OrangeA[2]1*/'',/*OrangeA[2]2*/'',/*OrangeA[2]3*/'',/*OrangeA[2]4*/'',/*OrangeA[2]5*/'',/*OrangeA[2]6*/'',/*OrangeA[2]7*/'',/*OrangeA[2]8*/'',/*OrangeA[2]9*/'',/*OrangeA[2]10*/'']
PurpleA[2] = [/*PurpleDefaultA[2]*/'',/*PurpleA[2]1*/'',/*PurpleA[2]2*/'',/*PurpleA[2]3*/'',/*PurpleA[2]4*/'',/*PurpleA[2]5*/'',/*PurpleA[2]6*/'',/*PurpleA[2]7*/'',/*PurpleA[2]8*/'',/*PurpleA[2]9*/'',/*PurpleA[2]10*/'']
TealA[2] = [/*TealDefaultA[2]*/'',/*TealA[2]1*/'',/*TealA[2]2*/'',/*TealA[2]3*/'',/*TealA[2]4*/'',/*TealA[2]5*/'',/*TealA[2]6*/'',/*TealA[2]7*/'',/*TealA[2]8*/'',/*TealA[2]9*/'',/*TealA[2]10*/'']
VioletA[2] = [/*VioletDefaultA[2]*/'',/*VioletA[2]1*/'',/*VioletA[2]2*/'',/*VioletA[2]3*/'',/*VioletA[2]4*/'',/*VioletA[2]5*/'',/*VioletA[2]6*/'',/*VioletA[2]7*/'',/*VioletA[2]8*/'',/*VioletA[2]9*/'',/*VioletA[2]10*/'']
colorstepA[2] = [/*DefaultCSA[2]*/10,/*CSA[2]1*/10,/*CSA[2]2*/10,/*CSA[2]3*/10,/*CSA[2]4*/10,/*CSA[2]5*/10,/*CSA[2]6*/10,/*CSA[2]7*/10,/*CSA[2]8*/10,/*CSA[2]9*/10,/*CSA[2]10*/10]
startvalueA[2] = [0,0,0,0,0,0,0,0,0,0,0,0]
maxsliderA[2] = [10,10,10,10,10,10,10,10,10,10,10]
RedCandidateA[2] = [/*DefaultRedCandidateNameA[2]*/'',/*RedCandidateNameA[2]1*/'',/*RedCandidateNameA[2]2*/'',/*RedCandidateNameA[2]3*/'',/*RedCandidateNameA[2]4*/'',/*RedCandidateNameA[2]5*/'',/*RedCandidateNameA[2]6*/'',/*RedCandidateNameA[2]7*/'',/*RedCandidateNameA[2]8*/'',/*RedCandidateNameA[2]9*/'',/*RedCandidateNameA[2]10*/'']
BlueCandidateA[2] = [/*DefaultBlueCandidateNameA[2]*/'',/*BlueCandidateNameA[2]1*/'',/*BlueCandidateNameA[2]2*/'',/*BlueCandidateNameA[2]3*/'',/*BlueCandidateNameA[2]4*/'',/*BlueCandidateNameA[2]5*/'',/*BlueCandidateNameA[2]6*/'-',/*BlueCandidateNameA[2]7*/'',/*BlueCandidateNameA[2]8*/'',/*BlueCandidateNameA[2]9*/'',/*BlueCandidateNameA[2]10*/'']
YellowCandidateA[2] = [/*DefaultA[]YellowCandidateName*/'',/*YellowCandidateNameA[2]1*/'',/*YellowCandidateNameA[2]2*/'',/*YellowCandidateNameA[2]3*/'',/*YellowCandidateNameA[2]4*/'',/*YellowCandidateNameA[2]5*/'',/*YellowCandidateNameA[2]6*/'',/*YellowCandidateNameA[2]7*/'',/*YellowCandidateNameA[2]8*/'',/*YellowCandidateNameA[2]9*/'',/*YellowCandidateNameA[2]10*/'']
GreenCandidateA[2] = [/*DefaultA[2]GreenCandidateName*/'',/*GreenCandidateNameA[2]1*/'',/*GreenCandidateNameA[2]2*/'',/*GreenCandidateNameA[2]3*/'',/*GreenCandidateNameA[2]4*/'',/*GreenCandidateNameA[2]5*/'',/*GreenCandidateNameA[2]6*/'',/*GreenCandidateNameA[2]7*/'',/*GreenCandidateNameA[2]8*/'',/*GreenCandidateNameA[2]9*/'',/*GreenCandidateNameA[2]10*/'']
OrangeCandidateA[2] = [/*DefaultA[2]OrangeCandidateName*/'',/*OrangeCandidateNameA[2]1*/'',/*OrangeCandidateNameA[2]2*/'',/*OrangeCandidateNameA[2]3*/'',/*OrangeCandidateNameA[2]4*/'',/*OrangeCandidateNameA[2]5*/'',/*OrangeCandidateNameA[2]6*/'',/*OrangeCandidateNameA[2]7*/'',/*OrangeCandidateNameA[2]8*/'',/*OrangeCandidateNameA[2]9*/'',/*OrangeCandidateNameA[2]10*/'']
PurpleCandidateA[2] = [/*DefaultA[2]PurpleCandidateName*/'',/*PurpleCandidateNameA[2]1*/'',/*PurpleCandidateNameA[2]2*/'',/*PurpleCandidateNameA[2]3*/'',/*PurpleCandidateNameA[2]4*/'',/*PurpleCandidateNameA[2]5*/'',/*PurpleCandidateNameA[2]6*/'',/*PurpleCandidateNameA[2]7*/'',/*PurpleCandidateNameA[2]8*/'',/*PurpleCandidateNameA[2]9*/'',/*PurpleCandidateNameA[2]10*/'']
TealCandidateA[2] = [/*DefaultA[2]TealCandidateName*/'',/*TealCandidateNameA[2]1*/'',/*TealCandidateNameA[2]2*/'',/*TealCandidateNameA[2]3*/'',/*TealCandidateNameA[2]4*/'',/*TealCandidateNameA[2]5*/'',/*TealCandidateNameA[2]6*/'',/*TealCandidateNameA[2]7*/'',/*TealCandidateNameA[2]8*/'',/*TealCandidateNameA[2]9*/'',/*TealCandidateNameA[2]10*/'']
VioletCandidateA[2] = [/*DefaultA[2]VioletCandidateName*/'',/*VioletCandidateNameA[2]1*/'',/*VioletCandidateNameA[2]2*/'',/*VioletCandidateNameA[2]3*/'',/*VioletCandidateNameA[2]4*/'',/*VioletCandidateNameA[2]5*/'',/*VioletCandidateNameA[2]6*/'',/*VioletCandidateNameA[2]7*/'',/*VioletCandidateNameA[2]8*/'',/*VioletCandidateNameA[2]9*/'',/*VioletCandidateNameA[2]10*/'']

RedStatewidePCTA[2] = [/*DefaultA[2]RedStatewidePCT*/'',/*RedStatewidePCTA[2]1*/'',/*RedStatewidePCTA[2]2*/'',/*RedStatewidePCTA[2]3*/'',/*RedStatewidePCTA[2]4*/'',/*RedStatewidePCTA[2]5*/'',/*RedStatewidePCTA[2]6*/'',/*RedStatewidePCTA[2]7*/'',/*RedStatewidePCTA[2]8*/'',/*RedStatewidePCTA[2]9*/'',/*RedStatewidePCTA[2]10*/'']
BlueStatewidePCTA[2] = [/*DefaultA[2]BlueStatewidePCT*/,/*BlueStatewidePCTA[2]1*/'',/*BlueStatewidePCTA[2]2*/'',/*BlueStatewidePCTA[2]3*/'',/*BlueStatewidePCTA[2]4*/'',/*BlueStatewidePCTA[2]5*/'',/*BlueStatewidePCTA[2]6*/'',/*BlueStatewidePCTA[2]7*/'',/*BlueStatewidePCTA[2]8*/'',/*BlueStatewidePCTA[2]9*/'',/*BlueStatewidePCTA[2]10*/'']
YellowStatewidePCTA[2] = [/*DefaultA[2]YellowStatewidePCT*/'',/*YellowStatewidePCTA[2]1*/'',/*YellowStatewidePCTA[2]2*/'',/*YellowStatewidePCTA[2]3*/'',/*YellowStatewidePCTA[2]4*/'',/*YellowStatewidePCTA[2]5*/'',/*YellowStatewidePCTA[2]6*/'',/*YellowStatewidePCTA[2]7*/'',/*YellowStatewidePCTA[2]8*/'',/*YellowStatewidePCTA[2]9*/'',/*YellowStatewidePCTA[2]10*/'']
GreenStatewidePCTA[2] = [/*DefaultA[2]GreenStatewidePCT*/'',/*GreenStatewidePCTA[2]1*/'',/*GreenStatewidePCTA[2]2*/'',/*GreenStatewidePCTA[2]3*/'',/*GreenStatewidePCTA[2]4*/'',/*GreenStatewidePCTA[2]5*/'',/*GreenStatewidePCTA[2]6*/'',/*GreenStatewidePCTA[2]7*/'',/*GreenStatewidePCTA[2]8*/'',/*GreenStatewidePCTA[2]9*/'',/*GreenStatewidePCTA[2]10*/'']
OrangeStatewidePCTA[2] = [/*DefaultA[2]OrangeStatewidePCT*/'',/*OrangeStatewidePCTA[2]1*/'',/*OrangeStatewidePCTA[2]2*/'',/*OrangeStatewidePCTA[2]3*/'',/*OrangeStatewidePCTA[2]4*/'',/*OrangeStatewidePCTA[2]5*/'',/*OrangeStatewidePCTA[2]6*/'',/*OrangeStatewidePCTA[2]7*/'',/*OrangeStatewidePCTA[2]8*/'',/*OrangeStatewidePCTA[2]9*/'',/*OrangeStatewidePCTA[2]10*/'']
PurpleStatewidePCTA[2] = [/*DefaultA[2]PurpleStatewidePCT*/'',/*PurpleStatewidePCTA[2]1*/'',/*PurpleStatewidePCTA[2]2*/'',/*PurpleStatewidePCTA[2]3*/'',/*PurpleStatewidePCTA[2]4*/'',/*PurpleStatewidePCTA[2]5*/'',/*PurpleStatewidePCTA[2]6*/'',/*PurpleStatewidePCTA[2]7*/'',/*PurpleStatewidePCTA[2]8*/'',/*PurpleStatewidePCTA[2]9*/'',/*PurpleStatewidePCTA[2]10*/'']
TealStatewidePCTA[2] = [/*DefaultA[2]TealStatewidePCT*/'',/*TealStatewidePCTA[2]1*/'',/*TealStatewidePCTA[2]2*/'',/*TealStatewidePCTA[2]3*/'',/*TealStatewidePCTA[2]4*/'',/*TealStatewidePCTA[2]5*/'',/*TealStatewidePCTA[2]6*/'',/*TealStatewidePCTA[2]7*/'',/*TealStatewidePCTA[2]8*/'',/*TealStatewidePCTA[2]9*/'',/*TealStatewidePCTA[2]10*/'']
VioletStatewidePCTA[2] = [/*DefaultA[2]VioletStatewidePCT*/'',/*VioletStatewidePCTA[2]1*/'',/*VioletStatewidePCTA[2]2*/'',/*VioletStatewidePCTA[2]3*/'',/*VioletStatewidePCTA[2]4*/'',/*VioletStatewidePCTA[2]5*/'',/*VioletStatewidePCTA[2]6*/'',/*VioletStatewidePCTA[2]7*/'',/*VioletStatewidePCTA[2]8*/'',/*VioletStatewidePCTA[2]9*/'',/*VioletStatewidePCTA[2]10*/'']

PrecinctA[2] = [/*DefaultPrecinctName*/'I_NAME1317',/*PrecinctNameA[2]1*/'I_NAME1317',/*PrecinctNameA[2]2*/'I_NAME1317',/*PrecinctNameA[2]3*/'',/*PrecinctNameA[2]4*/'',/*PrecinctNameA[2]5*/'',/*PrecinctNameA[2]6*/'',/*PrecinctNameA[2]7*/'',/*PrecinctNameA[2]8*/'',/*PrecinctNameA[2]9*/'',/*PrecinctNameA10*/'']
TotalVotesA[2] = [/*DefaultTotalVotesA[2]*/'I_I1015NHW',/*TotalVotesA[2]1*/'I_I1015NHW',/*TotalVotesA[2]2*/'I_I1015NHW',/*TotalVotesA[2]3*/'',/*TotalVotesA[2]4*/'',/*TotalVotesA[2]5*/'',/*TotalVotesA[2]6*/'',/*TotalVotesA[2]7*/'',/*TotalVotesA[2]8*/'',/*TotalVotesA[2]9*/'',/*TotalVotesA[2]10*/'']
StatewideVotesA[2] = [/*DefaultA[2]TotSWVotes*/0,/*TotSWVotesA[2]1*/0,/*TotSWVotesA[2]2*/0,/*TotSWVotesA[2]3*/0,/*TotSWVotesA[2]4*/0,/*TotSWVotesA[2]5*/0,/*TotSWVotesA[2]6*/0,/*TotSWVotesA[2]7*/0,/*TotSWVotesA[2]8*/0,/*TotSWVotesA[2]9*/0,/*TotSWVotesA[2]10*/0]

//Menu A Menu Names & Layers
menuNamesA[2] = [/*MenuDefaultA[2]*/'',/*MenuA[2]1*/'',/*MenuA[2]2*/'',/*MenuA[2]3*/'',/*MenuA[2]4*/'',/*MenuA[2]5*/'',/*MenuA[2]6*/'',/*MenuA[2]7*/'',/*MenuA[2]8*/'',/*MenuA[2]9*/'',/*MenuA[2]10*/'']
menuIDsA[2] = [/*ShortNameA[2]*/'',/*ShortNameA[2]1*/'',/*ShortNameA[2]2*/'',/*ShortNameA[2]3*/'',/*ShortNameA[2]4*/'',/*ShortNameA[2]5*/'',/*ShortNameA[2]6*/'',/*ShortNameA[2]7*/'',/*ShortNameA[2]8*/'',/*ShortNameA[2]9*/'',/*ShortNameA[2]10*/'']
clickedLayerA[2] = [/*DefaultLayerTypeA[2]*/'',/*LayerTypeA[2]1*/'',/*LayerTypeA[2]2*/'',/*LayerTypeA[2]3*/'',/*LayerTypeA[2]4*/'',/*LayerTypeA[2]5*/'',/*LayerTypeA[2]6*/'',/*LayerTypeA[2]7*/'',/*LayerTypeA[2]8*/'',/*LayerTypeA[2]9*/'',/*LayerTypeA[2]10*/'']
lowermenuA[2] = [/*DefaultLoweMenuA[2]*/0,/*LowerMenuA[2]1(B21)*/0,/*LowerMenuA[2]2(B22)*/0,/*LowerMenuA[2]3(B23)*/0,/*LowerMenuA[2]4(B24)*/0,/*LowerMenuA[2]5(B25)*/0,/*LowerMenuA[2]6(B26)*/0,/*LowerMenuA[2]7(B27)*/0,/*LowerMenuA[2]8(B28)*/0,/*LowerMenuA[2]9(B29)*/0,/*LowerMenuA[2]10(B30)*/0]
relevanttypeA[2] = [/*DefaultMapType*A[2]*/'',/*MapTypeA[2]1*/'',/*MapTypeA[2]2*/'',/*MapTypeA[2]3*/'',/*MapTypeA[2]4*/'',/*MapTypeA[2]5*/'',/*MapTypeA[2]6*/'',/*MapTypeA[2]7*/'',/*MapTypeA[2]8*/'',/*MapTypeA[2]9*/'',/*MapTypeA[2]10*/'']
Tog1A[2] = ['','','','','','','','','','','']
stateA[2] = ['']


</script>
<head>
<script src = 'https://'[**INSERT YOUR URL FOR THE cinyc-mapbox-4f.js FILE HERE**></script>
</head></html>

Disqus