$(function(){
	// Find all toggling links
	$('.pod_header > span.pod_toggle').each(function(){
		// Attach the click event
		$(this).click(function(){
			// Show/Hide the .pod_content DIV
			var pod_content = $(this).parent().parent().children('.pod_content');
			pod_content.slideToggle("fast");
			$(this).toggleClass("pod_toggle_off");
		});
	});
	
	var t;
	var c = 99;

	$('.completion > a').each(function(){
		$(this).parent().css("zIndex", c--);
		$(this).hover(
			function(){
				$('.completion > .completion_layer').each(function(){
					$(this).slideUp("fast");
				});
				var completion_layer = $(this).parent().children('.completion_layer');
				completion_layer.slideDown("fast");
			}, 
			function(){
				t = setTimeout("$('.completion_layer').slideUp('fast');", 2000);
			}
		);
	});
	
	$('.completion > .completion_layer').each(function(){
		$(this).hover(
			function(){
				clearTimeout(t);
			},
			function(){
				var completion_layer = $(this).parent().children('.completion_layer');
				completion_layer.slideUp("fast");
			}
		);
	});
});


