//blockquote cosmetic touch-up
$(document).ready(function() {
 $('blockquote p:last-child').append('<span class="endquote"></span>');
});

// State Map Flash-JS interactions
$(document).ready(function() {
  var $navCategories = $('#nav_categories'),
      $stateLinks = $navCategories.find('a');
  
  if (!$('.list-district').length) {
    $navCategories.after('<div class="list-district col"></div>');
  }
  var $districts = $('.list-district');

  $stateLinks.click(function() {
    $stateLinks.removeClass('active');
    $(this).addClass('active');
    var querystring = this.href.split('?')[1].split('&'),
        category = querystring[0],
        stateCode = querystring[1].split('=')[1];
    $districts.html('<img id="county-loading" src="/images/ui/icn-loading.gif" alt="loading counties..." />');
    fmAreaCenter(stateCode);
    $.get('/go/districts/county', category, function(html){
      $districts.html(html);
    });
    
    return false;
  });


  
  
});


