function hideshow() {
   var btn = $(".claim_btn");
    if($(btn).attr("src") == "/images/close-claim.gif") {
      $("#claim_outer").animate({ 'top': '-401px' }, 'slow'),
      $("#body").animate({ 'top': '0px' }, 'slow');
      $(".claim_btn").attr("src", "/images/start-claim.gif");
    }
    else {
      $("#claim_outer").animate({ 'top': '0px' }, 'slow'),
      $("#body").animate({ 'top': '401px' }, 'slow'),
      $(".claim_btn").attr("src", "/images/close-claim.gif");
    }
}
$(document).ready(function() {
	
	// Initial Open/Close
    $(".claim_btn").click(function(e){
         e.preventDefault();
         hideshow();
    });	  
	  
	$("#clmAcc").change(function() {
	  $(".hide2").hide();
	  $("#" + this.value).show('slow');
	  $("#clmDesc").css({height:"119px"});
	});
	$("#clmPers").change(function() {
	  $(".hide3").hide();
	  $("#" + this.value).show('slow');
	  $("#clmDesc").css({height:"119px"});
	});
	$("#clmNeg").change(function() {
	  $(".hide3").hide();
	  $("#" + this.value).show('slow');
	  $("#clmDesc").css({height:"119px"});
	});
	$("#clmProfNeg").change(function() {
	  $(".hide3").hide();
	  $("#" + this.value).show('slow');
	  $("#clmDesc").css({height:"119px"});
	});
	$("#clmPrefer").change(function() {
	  $(".hide4").hide();
	  $("#" + this.value).show('slow');
	});
	$("#clmHear").change(function() {
	  $(".hide5").hide();
	  $("#" + this.value).show('slow');
	});
	
	$("#form1").validate({
		errorLabelContainer: $(".errors"),
		invalidHandler: function(form, validator){ 
        $(".fade_out").show();
        $(".errors").animate({ 'top': '50px' }, 'slow');
		$("a.close_me").click(function(event){
			event.preventDefault();
			$('.fade_out').hide();
		});
     }, 
     focusInvalid:false 
	});
	
});