$(document).ready(function () {
	
  // Select all
  $("#quickfacts a.answer").click( function() {
			
		$("#quickfacts .answers li div").hide();
		$(this).next().show();
		
      //$("INPUT[type='checkbox']").attr('checked', true);
      return false;
  });


	$("#secNav .trigger").click(function(){
		$("#secNav .active").removeClass('active');
		$("#secNav .submenu ul").hide();
		$(this).parent().find('ul').show();
		$(this).parent().addClass('active');
		return false;
	});
	
	
	$("#lead_insurance").change(function(){
		var inp_val = $(this).attr('value');
		if(inp_val == 'Medicare' || inp_val == 'Medicare +Supp' || inp_val == 'LOP')
			insuranceAlert();
	});

	$("#lead_insurance_type_HMO").click(function(){
		insuranceAlert();
	});
	
	$("#lead_insurance_type_Other").click(function(){
		insuranceAlert();
	});
	
	
});

function insuranceAlert(){
	alert("Atlantic Spinal Care does not participate in Medicare and Supplement, HMO, Magnacare, Medical Mutual of Ohio, Tricare, GHI and does not accept letter of protection (LOP). However, Atlantic Spinal Care can treat these patients with these medical plans on a self pay basis.");
}