

// gets the counties based on change in state selection
$(function(){
	$('#state').change(function(){
		var selectedItem = $('#state').val();
		$('#county').load('search/getCounties/'+selectedItem)
	});
	
	$('#findRep').ajaxForm({
		target: '#searchResults'
	});
	
	//this keyword should work, but doesn't..hmm
	$('#loadingImage').ajaxStart(function(){
		$('#loadingImage').show();
	});
	
	$('#loadingImage').ajaxComplete(function(){
		$('#loadingImage').hide();
	});
});