 function ajaxWrapper(args,ajaxURL,ajaxType,sf,ef){var jsonstr=JSON.stringify(args);$.ajax({url:ajaxURL,data:jsonstr,dataType:"json",type:ajaxType,contentType:"application/json",success:function(data){if(sf){sf(data);}},error:function(x,t,e){if(ef){ef(x,t,e);}}});};
function callGetJavascriptMin(args, sf, ef) { ajaxWrapper(args, "http://www.redistrictingthenation.com/gerrysite/services/DataService.svc/GetJavascriptMin", "GET", sf, ef); };
function callLookupDistricts(args, sf, ef) { ajaxWrapper(args, "http://www.redistrictingthenation.com/gerrysite/services/DataService.svc/LookupDistricts", "POST", sf, ef); };
function callGetOfficialsByTypeAndState(args, sf, ef) { ajaxWrapper(args, "http://www.redistrictingthenation.com/gerrysite/services/DataService.svc/GetOfficialsByTypeAndState", "POST", sf, ef); };
function callGetTopScores(args, sf, ef) { ajaxWrapper(args, "http://www.redistrictingthenation.com/gerrysite/services/DataService.svc/GetTopScores", "POST", sf, ef); };
function callGetDistrictSummary(args, sf, ef) { ajaxWrapper(args, "http://www.redistrictingthenation.com/gerrysite/services/DataService.svc/GetDistrictSummary", "POST", sf, ef); };
function callScoreCustomDistrict(args, sf, ef) { ajaxWrapper(args, "http://www.redistrictingthenation.com/gerrysite/services/DataService.svc/ScoreCustomDistrict", "POST", sf, ef); };
function callScoreImage(args, sf, ef) { ajaxWrapper(args, "http://www.redistrictingthenation.com/gerrysite/services/DataService.svc/ScoreImage", "GET", sf, ef); };
function callHealthCheck(args, sf, ef) { ajaxWrapper(args, "http://www.redistrictingthenation.com/gerrysite/services/DataService.svc/HealthCheck?p={pass}", "GET", sf, ef); };
function callDistrictOverlay(args, sf, ef) { ajaxWrapper(args, "http://www.redistrictingthenation.com/gerrysite/services/DataService.svc/DistrictOverlay", "GET", sf, ef); };
function callRebuildOverlaysAndCache(args, sf, ef) { ajaxWrapper(args, "http://www.redistrictingthenation.com/gerrysite/services/DataService.svc/RebuildOverlaysAndCache?p={pass}", "GET", sf, ef); };
