// JavaScript Document

Shadowbox.init();

$(document).ready(function() {
	
	$("#user-interaction a").click(function() {
		var panel = $(this).attr("href");
		
		$("#slide-panel .panel").each(function() {
			$(this).hide();
		});
		
		$("#slide-panel-wrapper").show();
		$(panel).slideDown(500);
		
		return false;
	});
	
	$("#slide-panel-close").click(function() {
		$("#slide-panel-wrapper").slideUp(500);
	})
	
	$(".image_frame").hover(function() {
		$(".image_frame .image-description").slideDown(500);
	}, function() {
		$(".image_frame .image-description").slideUp(500);
	})
	
	$("#learning_time_other").focus(function() {
		$("#learning_time_other_label").attr("checked", "checked");
	});
	
	$("#viewPollResults").click(function() {
		$(".results").toggleClass('hidden');
		
		return false;
	});
	
	tooltip();
	
});




	


