// Main jQuery settings-file

	$(document).ready(function () {
		
		// Refresh the twitter box every 30 seconds.
		setInterval(function() {
		
			// Load the page into the container.
			$('#contentTwitter').load('pages/menus/times.twitter.php');
		
		}, 30000);
		
		// Make sure the Event Nav works.
		$("#navTwitter").live('click', function() {
		
			// Hide the event information.
			$(".contentHolder").fadeOut("medium", function() {
			
				// Show the twitter feed.
				$("#contentEvent").hide();
				
				$("#contentTwitter").show();
				
				// Fade in.
				$(".contentHolder").fadeIn("medium");
			
			});
		
		});
		
		// Make sure the Event Nav works.
		$("#navEvent").live('click', function() {
		
			// Hide the event information.
			$(".contentHolder").fadeOut("medium", function() {
			
				// Show the twitter feed.
				$("#contentEvent").show();
				
				$("#contentTwitter").hide();
				
				// Fade in.
				$(".contentHolder").fadeIn("medium");
			
			});
		
		});
		
	});
