$(document).ready(function()
	{

		// Intro page fade in and redirect
		$('p#intro a').click(function(){
		
			$('p#intro').hide();
			$('p#secondary').fadeIn('slow', function()
			{
				setTimeout(function()
				{
					$("p#secondary").fadeOut('slow', function()
					{
						window.location='home.php';
					})
				}, 3000);
			});
			$(this).blur();
			return false;
			
		});
		
		
		// Work page jiggery
		$('div#images img').hide();
		$('div#images img#image0').show();
		$('div#info li a[href="#image0"]').addClass("active");
		
		$('div#info li a').click(function(){
		
			var target = $(this).attr("href");
			$('div#images img').hide();
			$('div#info li a').removeClass("active");
		
			$(target).fadeIn();
			$(this).addClass("active");
			
			$(this).blur();
			return false;
					
		});

	}
);
