// JavaScript Document
$(document).ready( function(){
							
	//TEAM MEMBER FUNCTION
	/*$("#team .description").each( function() {
		$('div:not(.jason)', this).hide();									   
	});
	
	$("#team .team_names").each( function() {
		
		$('li', this).click( function() {
									  
			$("#team .description").children("div").each( function() {
				if($(this).css('display') != "none") {
					$(this).hide();	
				}
			});
			
			var n = $(this).attr('class');
			$("#team .description ."+n).show();
		});
		
	});*/
	
	//SCREENING TIMES FILM FESTIVAL FUNCTION
	$('a', '.festivals').click( function() {
		return false;									 
	});
							
	$(".date_time").each( function() {
		$('ul', this).hide();
		$('ul', this).first().show();
	});
	
	$('li','#festival_ul').first().children('a').addClass('active');
	var cu = $('li','.festivals').first().children('a');
	Cufon.replace(cu, {color:'#000'});
	
	$(".festivals").each( function() {
		
		$('li a', this).click( function() {
									  
			$(".date_time").children("ul").each( function() {
				if($(this).css('display') != "none") {
					$(this).hide();	
				}
			});
			
			$('a', '.festivals').removeClass('active');
			var cu = $('a', '.festivals'); 
			Cufon.replace(cu, {color:'#fff'});
			
			var n = $(this).parent().attr('class');
			$(".date_time ."+n).show();
			
			$(".festivals li."+n+" a").addClass('active');
			cu = $('.festivals li.'+n+' a');
			Cufon.replace(cu, {color:'#000'});
		});
	
	});
});
	
