// JavaScript Document
jQuery.fn.fadeToggle = function(speed, easing, callback) {
   return this.animate({opacity: 'toggle'}, speed, easing, callback);
};
$(document).ready(function() {
					//References Expander
					$(".references_expand_001").click(function () {
					  $("#references_expand_content_001").slideToggle("slow");	
					});
					$(".references_expand_002").click(function () {
					  $("#references_expand_content_002").slideToggle("slow");	
					});
					$(".references_expand_003").click(function () {
					  $("#references_expand_content_003").slideToggle("slow");	
					});
					$(".references_expand_004").click(function () {
					  $("#references_expand_content_004").slideToggle("slow");	
					});
					$(".references_expand_005").click(function () {
					  $("#references_expand_content_005").slideToggle("slow");	
					});
					$(".references_expand_006").click(function () {
					  $("#references_expand_content_006").slideToggle("slow");	
					});
					//Paragraph Extender					
					$(".para_expand_001").click(function () {
					  $(".para_expand_001").toggle("fast");
					  $("#para_expand_content_001").slideToggle("fast");	
					});
					$(".para_expand_002").click(function () {
  					  $(".para_expand_002").toggle("fast");
					  $("#para_expand_content_002").slideToggle("fast");	
					});
					$(".para_expand_003").click(function () {
 					  $(".para_expand_003").toggle("fast");
					  $("#para_expand_content_003").slideToggle("fast");	
					});
					$(".para_expand_004").click(function () {
  					  $(".para_expand_004").toggle("fast");
					  $("#para_expand_content_004").slideToggle("fast");	
					});
					$(".para_expand_005").click(function () {
  					  $(".para_expand_005").toggle("fast");
					  $("#para_expand_content_005").slideToggle("fast");	
					});
					$(".para_expand_006").click(function () {
  					  $(".para_expand_006").toggle("fast");
					  $("#para_expand_content_006").slideToggle("fast");	
					});
		   		$(".comment_expand_001").click(function () {
					  $('#comment_expand_002').hide('fast');
					  $('#comment_expand_003').hide('fast');
					  $('#comment_expand_004').hide('fast');
					  $('#comment_expand_005').hide('fast');
					  $('#comment_expand_006').hide('fast');
					  $('#question_expand').hide('fast', function(){
					  $('#comment_expand_001').show('fast');
					  });
				});
				$(".comment_expand_002").click(function () {
					  $('#comment_expand_001').hide('fast');
					  $('#comment_expand_003').hide('fast');
					  $('#comment_expand_004').hide('fast');
					  $('#comment_expand_005').hide('fast');
					  $('#comment_expand_006').hide('fast');
					  $('#question_expand').hide('fast', function(){
					  $('#comment_expand_002').show('fast');
				  });
				});
				$(".comment_expand_003").click(function () {
					  $('#comment_expand_001').hide('fast');
					  $('#comment_expand_002').hide('fast');
					  $('#comment_expand_004').hide('fast');
					  $('#comment_expand_005').hide('fast');
					  $('#comment_expand_006').hide('fast');
					  $('#question_expand').hide('fast', function(){
					  $('#comment_expand_003').show('fast');
					  });
				});
				$(".comment_expand_004").click(function () {
					  $('#comment_expand_001').hide('fast');
					  $('#comment_expand_002').hide('fast');
					  $('#comment_expand_003').hide('fast');
					  $('#comment_expand_005').hide('fast');
					  $('#comment_expand_006').hide('fast');
					  $('#question_expand').hide('fast', function(){
					  $('#comment_expand_004').show('fast');
					  });
				});
				$(".comment_expand_005").click(function () {
					  $('#comment_expand_001').hide('fast');
					  $('#comment_expand_002').hide('fast');
					  $('#comment_expand_003').hide('fast');
					  $('#comment_expand_004').hide('fast');
					  $('#comment_expand_006').hide('fast');
					  $('#question_expand').hide('fast', function(){
					  $('#comment_expand_005').show('fast');
					  });
				});
				$(".comment_expand_006").click(function () {
					  $('#comment_expand_001').hide('fast');
					  $('#comment_expand_002').hide('fast');
					  $('#comment_expand_003').hide('fast');
					  $('#comment_expand_004').hide('fast');
					  $('#comment_expand_005').hide('fast');
					  $('#question_expand').hide('fast', function(){
					  $('#comment_expand_006').show('fast');
					  });
				});
			$(".question_expand").click(function () {
			  $("#question_expand").toggle("slow");
			  });
			$(".question_expand_off").click(function () {
			  $("#question_expand").slideToggle("slow")
			});
			$(".video_overlay_wel").click(function () {
			  $("#matte").fadeToggle("fast")
			});
			$(".video_overlay_close").click(function () {
				$("#matte").html("");
				$("#matte").fadeToggle("fast");
				});
				$(".interview_overlay_1").click(function () {
					$("#interview_matte_1").fadeToggle("fast");
				});
				$(".interview_overlay_1_close").click(function () {
					$("#interview_matte_1").html("");
					$("#interview_matte_1").fadeToggle("fast");
					});
				$(".interview_overlay_2").click(function () {
				  $("#interview_matte_2").fadeToggle("fast")
				});
				$(".interview_overlay_2_close").click(function () {
					$("#interview_matte_2").html("");
					$("#interview_matte_2").fadeToggle("fast");
					});
				$(".interview_overlay_3").click(function () {
				  $("#interview_matte_3").fadeToggle("fast")
				});
				$(".interview_overlay_3_close").click(function () {
					$("#interview_matte_3").html("");
					$("#interview_matte_3").fadeToggle("fast");
					});
				
				//imag expanders
				$(".q_4_i_1").click(function () {
				  $("#q_4_i_1").fadeToggle("fast")
				});
				$(".q_4_i_1_close").click(function () {
					$("#q_4_i_1").fadeToggle("fast");
					});
				$(".q_4_i_2").click(function () {
				  $("#q_4_i_2").fadeToggle("fast")
				});
				$(".q_4_i_2_close").click(function () {
					$("#q_4_i_2").fadeToggle("fast");
					});
		});