$.ajax({
  type: "POST",
  url: "hours.php",
  success: function(msg) {
    proto = ('https:' == document.location.protocol ? false : true);
    if (proto)
      $("#hours").empty().prepend('<img src="http://chart.apis.google.com/chart?cht=lc&chs=350x100&chbh=14,0,0&chd=t:100|0,100&chds=0,100,0,100&chco=00000000&chma=10,10,28,21&chxt=x,x&chxs=0,,18,0,0,t&chxtc=0,0&chf=c,lg,0,ff0000,0,ffff00,0.5,00ff00,1&chxs=1,,12,0,t,000000|1,,9,-1,l,000000&chxl=0:|-100|-50|0|50|100|1:|non-profits+hours+in+arrears|||non-profit+hours+available|&chxp=0,8,30,50,70,90|1,8,30,50,70,90&chma=0,0,0,0&chm=@x,000000,0,' + msg + ':.5,25&chtt=westonwire:+hours+available+for+non-profits" />');
    else
      $("#hours").empty();
  },
  error: function() {
    $("#hours").empty().prepend('Sorry, there was an error reading available hours');
  }
});

