state='US'
var states = {'AK': 'Alaska','AL': 'Alabama','AR': 'Arkansas','AS': 'American Samoa','AZ': 'Arizona','CA': 'California','CO': 'Colorado','CT': 'Connecticut','DC': 'District of Columbia','DE': 'Delaware','FL': 'Florida','GA': 'Georgia','GU': 'Guam','HI': 'Hawaii','IA': 'Iowa','ID': 'Idaho','IL': 'Illinois','IN': 'Indiana','KS': 'Kansas','KY': 'Kentucky','LA': 'Louisiana','MA': 'Massachusetts','MD': 'Maryland','ME': 'Maine','MI': 'Michigan','MN': 'Minnesota','MO': 'Missouri','MP': 'Northern Mariana Islands','MS': 'Mississippi','MT': 'Montana','NA': 'National','NC': 'North Carolina','ND': 'North Dakota','NE': 'Nebraska','NH': 'New Hampshire','NJ': 'New Jersey','NM': 'New Mexico','NV': 'Nevada','NY': 'New York','OH': 'Ohio','OK': 'Oklahoma','OR': 'Oregon','PA': 'Pennsylvania','PR': 'Puerto Rico','RI': 'Rhode Island','SC': 'South Carolina','SD': 'South Dakota','TN': 'Tennessee','TX': 'Texas','UT': 'Utah','VA': 'Virginia','VI': 'Virgin Islands','VT': 'Vermont','WA': 'Washington','WI': 'Wisconsin','WV': 'West Virginia','WY': 'Wyoming','US':'United States'} var stateface_map={'AL':'B','AK':'A','AZ':'D','AR':'C','CA':'E','CO':'F','CT':'G','DE':'H','DC':'y','FL':'I','GA':'J','HI':'K','ID':'M','IL':'N','IN':'O','IA':'L','KS':'P','KY':'Q','LA':'R','ME':'U','MD':'T','MA':'S','MI':'V','MN':'W','MS':'Y','MO':'X','MT':'Z','NE':'c','NV':'g','NH':'d','NJ':'e','NM':'f','NY':'h','NC':'a','ND':'b','OH':'i','OK':'j','OR':'k','PA':'l','RI':'m','SC':'n','SD':'o','TN':'p','TX':'q','UT':'r','VT':'t','VA':'s','WA':'u','WV':'w','WI':'v','WY':'x','US':'z'} var data={'WA': [710, 7.8, 9], 'DE': [783, 9.4, 7], 'DC': [831, 37, 0], 'WI': [813, 18, 7], 'WV': [685, 16, 3], 'HI': [730, 7.3, 9], 'FL': [549, 8.7, 9], 'WY': [995, 8.1, 8], 'NH': [575, 11, 9], 'NJ': [728, 9.5, 8], 'NM': [771, 11, 7], 'TX': [762, 8.2, 9], 'LA': [860, 9.5, 8], 'NC': [616, 7.2, 9], 'ND': [918, 11, 7], 'NE': [839, 9.5, 8], 'TN': [690, 7.9, 9], 'NY': [922, 13, 7], 'PA': [820, 10, 8], 'AK': [1050, 10, 7], 'NV': [677, 7.4, 9], 'VA': [723, 9.1, 9], 'CO': [763, 9.8, 8], 'CA': [855, 8.0, 9], 'AL': [689, 7.1, 9], 'AR': [687, 10.0, 7], 'VT': [592, 36, 0], 'IL': [771, 9.9, 8], 'GA': [671, 7.0, 9], 'IN': [763, 7.5, 9], 'IA': [779, 9.3, 8], 'OK': [701, 11, 6], 'AZ': [712, 8.9, 8], 'ID': [768, 7.2, 9], 'CT': [789, 10, 7], 'ME': [536, 15, 2], 'MD': [773, 8.8, 8], 'MA': [687, 7.8, 9], 'OH': [805, 8.5, 8], 'UT': [974, 7.8, 8], 'MO': [723, 8.2, 10], 'MN': [781, 8.5, 8], 'MI': [792, 9.7, 7], 'US': [749, 8.9, 8], 'RI': [711, 11, 7], 'KS': [804, 9.8, 8], 'MT': [749, 9.6, 8], 'MS': [763, 9.1, 8], 'SC': [586, 6.7, 10], 'KY': [681, 12, 6], 'OR': [758, 12, 7], 'SD': [878, 12, 7]} var state_data=data[state]
// document.getElementById('stateicon').innerHTML = stateface_map[state]
// document.getElementById('statename').innerHTML = states[state].toUpperCase()
document.getElementById('benefits').innerHTML = state_data[0]
document.getElementById('ratio').innerHTML = state_data[1]
document.getElementById('breakeven').innerHTML = state_data[2]