//$(document).ready(function(){
//	create_sidebar_video_module()
//})

//create_sidebar_video_module = function()
//{
//	$('a.expand',$('.default_video_content').parent().prev()).hide(); // hide expand button on initially visible box (when the page first loads)
//	
//	$(".video_module dt .expand").click(function(){
//		var clicked_expand_button = $(this); //stores the expand button that was just clicked
//		var content_box = $('.toggle_content',clicked_expand_button.parent().next()); //stores content box associated with clicked expand button
//		var all_content_boxes = $('.video_module .toggle_content'); //stores all of the content boxes (so they can be all hidden, before showing the chosen one)
//		var all_expand_buttons = $('.video_module .expand'); //stores all the expand buttons so they can all be shown when switching boxes (this is so that the previously selected box which had a hidden expand button will be shown)

//		all_content_boxes.hide('fast'); // hide all of the boxes
//		all_expand_buttons.show('fast'); // show the expand button on the previously active box
//		content_box.show('fast'); // show the clicked box's content
//		clicked_expand_button.hide(); // hide the expand button on the clicked box
//		return false; //prevents the page from jumping to an anchor
//	});
//	
//}


$(document).ready(function(){
	//Slide up and down on click
	$(".video_module dt .expand").click(function(){
	    var clicked_expand_button = $(this); //stores the expand button that was just clicked
		var content_box = $('.toggle_content',clicked_expand_button.parent().next()); //stores content box associated with clicked expand button
		
            if (!$(this).hasClass("active")) {
                $(this).addClass("active");
		        content_box.show('fast'); // show the clicked box's content
            } else {
                $(this).removeClass("active");
                content_box.hide('fast');
            }
    return false;

	});
});
