	$(document).ready(function() {        
			//Execute the slideShow  
			startState();  
		});  
		function startState () {
			//Set the thumbnails to semi-transparent  
			$('.not_current_image a img').css({opacity: 0.5}); 
			$('.current_image a img').css({opacity: 1});
			//Fade in large image and description 
			$(".full_image img, .description").hide();
			$(".full_image img, .description").fadeIn("1");
			//Fade in pageHome specific
			$("#pageHome h1").hide();
			$("#pageHome h1").fadeIn("slow, 1");
			//Fade in pageAbout specific
			$("#pageAbout h1, #pageAbout h4, #pageAbout p").hide();
			$("#pageAbout h1, #pageAbout h4, #pageAbout p").fadeIn("slow, 1");
			//Fade in pagePortfolio specific
			$("#pagePortfolio .thumbs").hide();
			$("#pagePortfolio .thumbs").fadeIn("slow, 1");
			//Fade in pageContact specific
			$("#pageContact #map, #pageContact p, #pageContact .contactForm").hide();
			$("#pageContact #map, #pageContact p, #pageContact .contactForm").fadeIn("slow, 1");
			animate();
		}
		function animate () {
			//Animate th thumbnails transparency
			$(".not_current_image a img").hover(
			function () {
				$(this).fadeTo("def", 1);
				}, 
			function () {
				$(this).fadeTo("def", 0.5);
				}
			);
		}
		$(function(){
			$('a.new-window').click(function(){
				window.open(this.href);
			return false;
			});
		});