$(document).ready(function(){
    
	$('#ia_currenteducation').change(function () {
		var selected = $('#ia_currenteducation option:selected').val();
		$.ajax({
			type: 'POST',
			url: '/ajax.php?action=ASU_program',
			data: 'selected='+selected,
			success: function(response){
				$('select#program').html(response);
			}
		});
	});
	
	$('#program').change(function () {
		var selected = $('#program option:selected').val().replace('&', 'and');
		$.ajax({
			type: 'POST',
			url: '/ajax.php?action=ASU_right_content',
			data: 'selected='+selected,
			success: function(response){
				if (response != '') {
					$('#right_content_update').html(response);
				}
			}
		});
		health();
	});
	
	function health() {
		var selected = $('#program option:selected').val();
		if (selected == 'Bachelor of Science in Nursing (RN-BSN)') {
			$('#div_health').show();
		} else {
			$('#div_health').hide();
		}
	}
	
	health();

});
