//(state,min rule,asset allowance,monthly income allowance,medicaid recipient asset allowance,maximum combined asset allowance,monthly income allowance from injured spouse,combined min asset allowance)

assistedliving["AK"] = "$4,315";
assistedliving["AL"] = "$2,662";
assistedliving["AR"] = "$2,011";
assistedliving["AZ"] = "$2,876";
assistedliving["CA"] = "$2,896";
assistedliving["CO"] = "$2,595";
assistedliving["CT"] = "$4,730";
assistedliving["DC"] = "$4,761";
assistedliving["DE"] = "$5,219";
assistedliving["FL"] = "$2,770";
assistedliving["GA"] = "$2,822";
assistedliving["HI"] = "$4,575";
assistedliving["IA"] = "$2,915";
assistedliving["ID"] = "$2,791";
assistedliving["IL"] = "$3,113";
assistedliving["IN"] = "$2,582";
assistedliving["KS"] = "$2,541";
assistedliving["KY"] = "$2,865";
assistedliving["LA"] = "$2,487";
assistedliving["MA"] = "$4,323";
assistedliving["MD"] = "$3,449";
assistedliving["ME"] = "$4,659";
assistedliving["MI"] = "$2,830";
assistedliving["MN"] = "$2,679";
assistedliving["MO"] = "$3,224";
assistedliving["MS"] = "$2,686";
assistedliving["MT"] = "$2,575";
assistedliving["NC"] = "$3,422";
assistedliving["ND"] = "$2,041";
assistedliving["NE"] = "$2,837";
assistedliving["NH"] = "$4,610";
assistedliving["NJ"] = "$40,118";
assistedliving["NM"] = "$2,752";
assistedliving["NV"] = "$2,655";
assistedliving["NY"] = "$3,679";
assistedliving["OH"] = "$3,223";
assistedliving["OK"] = "$2,719";
assistedliving["OR"] = "$3,011";
assistedliving["PA"] = "$2,883";
assistedliving["RI"] = "$2,866";
assistedliving["SC"] = "$2,829";
assistedliving["SD"] = "$2,415";
assistedliving["TN"] = "$2,990";
assistedliving["TX"] = "$3,154";
assistedliving["UT"] = "$2,917";
assistedliving["VA"] = "$3,499";
assistedliving["VT"] = "$4,167";
assistedliving["WA"] = "$2,844";
assistedliving["WI"] = "$3,572";
assistedliving["WV"] = "$3,073";
assistedliving["WY"] = "$3,039";

homecare["AK"] = "$25";
homecare["AL"] = "$16";
homecare["AR"] = "$17";
homecare["AZ"] = "$24";
homecare["CA"] = "$21";
homecare["CO"] = "$23";
homecare["CT"] = "$24";
homecare["DC"] = "$19";
homecare["DE"] = "$19";
homecare["FL"] = "$18";
homecare["GA"] = "$19";
homecare["HI"] = "$22";
homecare["IA"] = "$27";
homecare["ID"] = "$16";
homecare["IL"] = "$21";
homecare["IN"] = "$23";
homecare["KS"] = "$17";
homecare["KY"] = "$18";
homecare["LA"] = "$15";
homecare["MA"] = "$25";
homecare["MD"] = "$20";
homecare["ME"] = "$21";
homecare["MI"] = "$18";
homecare["MN"] = "$29";
homecare["MO"] = "$18";
homecare["MS"] = "$15";
homecare["MT"] = "$23";
homecare["NC"] = "$17";
homecare["ND"] = "$17";
homecare["NE"] = "$20";
homecare["NH"] = "$25";
homecare["NJ"] = "$20";
homecare["NM"] = "$19";
homecare["NV"] = "$21";
homecare["NY"] = "$20";
homecare["OH"] = "$20";
homecare["OK"] = "$19";
homecare["OR"] = "$19";
homecare["PA"] = "$20";
homecare["RI"] = "$25";
homecare["SC"] = "$18";
homecare["SD"] = "$20";
homecare["TN"] = "$21";
homecare["TX"] = "$18";
homecare["UT"] = "$25";
homecare["VA"] = "$20";
homecare["VT"] = "$24";
homecare["WA"] = "$22";
homecare["WI"] = "$25";
homecare["WV"] = "$17";
homecare["WY"] = "$22";

nursinghome["AK"] = "$584";
nursinghome["AL"] = "$182";
nursinghome["AR"] = "$158";
nursinghome["AZ"] = "$216";
nursinghome["CA"] = "$312";
nursinghome["CO"] = "$211";
nursinghome["CT"] = "$382";
nursinghome["DC"] = "$285";
nursinghome["DE"] = "$257";
nursinghome["FL"] = "$218";
nursinghome["GA"] = "$185";
nursinghome["HI"] = "$298";
nursinghome["IA"] = "$167";
nursinghome["ID"] = "$221";
nursinghome["IL"] = "$219";
nursinghome["IN"] = "$204";
nursinghome["KS"] = "$158";
nursinghome["KY"] = "$205";
nursinghome["LA"] = "$136";
nursinghome["MA"] = "$317";
nursinghome["MD"] = "$259";
nursinghome["ME"] = "$299";
nursinghome["MI"] = "$212";
nursinghome["MN"] = "$154";
nursinghome["MO"] = "$162";
nursinghome["MS"] = "$179";
nursinghome["MT"] = "$176";
nursinghome["NC"] = "$204";
nursinghome["ND"] = "$164";
nursinghome["NE"] = "$202";
nursinghome["NH"] = "$272";
nursinghome["NJ"] = "$308";
nursinghome["NM"] = "$201";
nursinghome["NV"] = "$226";
nursinghome["NY"] = "$332";
nursinghome["OH"] = "$219";
nursinghome["OK"] = "$168";
nursinghome["OR"] = "$225";
nursinghome["PA"] = "$256";
nursinghome["RI"] = "$266";
nursinghome["SC"] = "$188";
nursinghome["SD"] = "$188";
nursinghome["TN"] = "$187";
nursinghome["TX"] = "$199";
nursinghome["UT"] = "$204";
nursinghome["VA"] = "$238";
nursinghome["VT"] = "$254";
nursinghome["WA"] = "$262";
nursinghome["WI"] = "$244";
nursinghome["WV"] = "$212";
nursinghome["WY"] = "$193";

function calculate() {
   var form = document.costofcare;
   var sState = form.sState.value;
   //get results
   document.getElementById("homecare").innerHTML = homecare[sState];
   document.getElementById("assistedliving").innerHTML = assistedliving[sState]; 
   document.getElementById("nursinghome").innerHTML = nursinghome[sState];
   showElement('results');
}
preload('submit','/images/shared/butt/butt_submit');