").css({'background-image':'url(http://maps.google.com/maps/api/staticmap?center='+escape(stateLookup[stateUC])+'%20,USA&size=580x400&sensor=true&mobile=false)',"width":"560px","height":"400px","clear":"both","margin":"20px 0px"}).appendTo('#EVbucket'); jQuery.getJSON('/page/smartproxy/www.barackobama.com/api/'+stateLC.toUpperCase()+'.json?callback=JSONCallback', function(data, textString) { jQuery.getJSON('/page/smartproxy/www.barackobama.com/api/ev_text.json', function(evText) { var stateText = evText[stateLC.toUpperCase()]; if (stateText) jQuery('.EVtext').html(stateText); if (get_URL_param("override_wrapper_id")) { jQuery(".EVtext ul").css({ "list-style":"none outside none" }); jQuery(".EVtext ul li").css({ "margin-left":"10px" }); } } ); //console.debug(textString); var template = jQuery("#EVmodel"); function showLocs(county, entry) { jQuery("#EVbucket").empty(); var ifs = (entry.length > 1) ? "s": ""; if (entry.length > 5) { var tooMuch = true; } jQuery("#EVCounty").html(county +" County Location"+ifs+":"); jQuery.each(entry, function(i, entry) { var addr1line = ''; var addr2line = ''; if(entry.addr2 !== undefined && entry.addr2 !== '' && entry.addr2 !== null && entry.addr2 !== "undefined") { var addr2line = "
"+entry.addr2+"
"} if (entry.addr1 !== undefined && entry.addr1 !== '' && entry.addr1 !== null && entry.addr1 !== "undefined") { addr1line = '
'+entry.addr1+'
'; } var el = template.clone(); el.find('.EVtitle').html("In "+entry.city); if (entry.opentime !== undefined && entry.opentime !== ""){ el.find('.EVhours').html(entry.opentime); } else { el.find('.EVhours').html("Not Currently Available"); } el.find('.EVloc').html(addr1line+addr2line+'
'+entry.city+', '+entry.state+' '+entry.zip+'
'); el.appendTo(jQuery("#EVbucket")); el.fadeIn(); if (entry.addr2 !== undefined && entry.addr2 !== '' && entry.addr2 !== null && entry.addr2 !== "undefined") { entry.addr2 = " ("+entry.addr2+")" } else { entry.addr2 = '';} address = escape(entry.addr1 + entry.addr2 + ", " +entry.city + ", " + entry.state + " " + entry.zip); if(entry.addr1 !== "TBD" && !tooMuch) { el.find('.EVmap').css('background-image', 'url(http://maps.google.com/maps/api/staticmap?center='+entry.latitude+','+entry.longitude+'&zoom=14&markers=icon:http%3A%2F%2Fwww.barackobama.com%2Fimages%2Fvote2010%2Fkickoff_maps%2Fsprite-marker.gif|'+entry.latitude+','+entry.longitude+'&size=300x250&sensor=true&mobile=false)').css({"width":"300px","height":"250px","clear":"both"}); el.find('.EVmap').append(''); } else{ el.find(".EVmap").css("display","none"); el.css("height","150px"); el.find(".EVinform").css("width","540px") el.find(".EVloc").wrap(''); } }); } jQuery("#firstOp").attr("value","false").text("Choose your county"); var i = 0; jQuery.each(data, function(key, value) { jQuery("#countySel").append(''); }); jQuery("#countySel").change(function(){ county = jQuery(this).val(); //console.debug(data); //console.debug(data[county]); if (county !== "false") { showLocs(county, data[county]); } }) if(URLcounty !== "") { showLocs(unescape(URLcounty).replace("_"," "), data[unescape(URLcounty).replace("_"," ")]); } }); });

Select Your County:

How to Vote Early