Drupal.behaviors.neova_regions_contact = function(context) {
	$form = $('#neova-regions-contact-contacts-filter-form', context);
	$('#edit-county', $form).bind('change', function() {
			$('#munic-wrapper .form-item:visible', $form).hide().each(function(){
					$('.form-select', this).get(0).value = 0;
			});
			$('#munic-wrapper #edit-' + this.value + '-wrapper', $form).show();
			previous_value = this.value;
		}
	);
	var settings = Drupal.settings.neova_regions_contact;
	$('#munic-wrapper .form-select', $form).bind('change', function() {	
			if(this.value) {
				$('#block-views-person-block_3 div.header').each(function(){
						$('a', this).removeClass('exposed').parent().nextAll().hide();
					}).filter('.' + settings.regions[settings.county_region[this.value]]).nextAll().show();
				}
			}
		);
	}
