/*
@description JS for podcast listing

@author	Bryan Gullan/Sally Edgington
@created 2009-01-27
*/


/* click to toggle visibility of sub-areas*/
$(document).ready(function(){
	$('#index ul ul li.title div').each(function(event){
		$(this).hide();
		$(this).parent().children('h2').children('a').toggle(
		function(event){
			$(this).parent().parent().children('div').slideDown(300);
			$(this).parent().parent().parent().addClass('expandable');
			event.preventDefault();
			},
			function(event) {
			$(this).parent().parent().children('div').slideUp(300);
			$(this).parent().parent().parent().removeClass('expandable');
			event.preventDefault();
			}
		);
	});
});

