// JavaScript Document
	
	function blink() {
	$(".contentboxes").hide(); //Hide all the content boxes/pages so that none are visible to start
	$(".contentboxes:eq(0)").show();
	$("#about").click(function(){ //if the about button in the navigation is pushed, run the next line of code
		$(".contentboxes").hide(); //first we hide all content boxes again, just incase any of them are visible from pushing another button
		$(".contentboxes:eq(1)").show(); //this line shows the about page and only the about page. 
		return(false);
	}); //here we close out the about function
	
	$("#social").click(function(){ 
		$(".contentboxes").hide();
		$(".contentboxes:eq(2)").show();
	});
	
	$("#work").click(function(){
		$(".contentboxes").hide();
		$(".contentboxes:eq(3)").show();
	});
	
	$("#contact").click(function(){
		$(".contentboxes").hide();
		$(".contentboxes:eq(4)").show();
	});
}//here we call the blink function.
	
	//New function for the slide upwards function
	function slideUpward() {
	$(".contentboxes").hide(); //Hide all the content boxes/pages so that none are visible to start
	$(".contentboxes:eq(0)").show();
	
	$("#about").click(function(){ //if the about button in the navigation is pushed, run the next line of code
		if($(".contentboxes:eq(1)").is(":visible")) //check to see if the page is visible
		{
			return false; //if the page is visible, do nothing
		}
		else
		{
			$(".contentboxes").slideUp("slow"); //hide the other pages slowly
			$(".contentboxes:eq(1)").slideDown(); //this line shows the about page and only the about page. 
			return(false);
		}
	}); 
	
	$("#social").click(function(){
		if($(".contentboxes:eq(2)").is(":visible"))
		{
			return false;
		}
		else
		{
		$(".contentboxes").slideUp("slow"); //this line shows the about page and only the about page. 
		$(".contentboxes:eq(2)").slideDown();
		}
	});
	
	$("#work").click(function(){
		if($(".contentboxes:eq(3)").is(":visible"))
		{
			return false;
		}
		else
		{
		$(".contentboxes").slideUp("slow");
		$(".contentboxes:eq(3)").slideDown();
		}
	});
	
	$("#contact").click(function(){
		if($(".contentboxes:eq(4)").is(":visible"))
		{
			return false;
		}
		else
		{
		$(".contentboxes").slideUp("slow");
		$(".contentboxes:eq(4)").slideDown();
		}
	});
} //this is the end of the slideUpWard function, the other functions below are the same as the above only with different slide events
	
	//New function for the sideways slide effect
	function slideSideWays() {
	$(".contentboxes").hide(); 
	$(".contentboxes:eq(0)").show();
	$("#about").click(function(){ 
		if($(".contentboxes:eq(1)").is(":visible"))
		{
			return false;
		}
		else
		{
			$(".contentboxes").hide();
			$(".contentboxes:eq(1)").stop().animate({width: "show"}); 
			return(false);
		}
	}); 
	
	$("#social").click(function(){
		if($(".contentboxes:eq(2)").is(":visible"))
		{
			return false;
		}
		else
		{
			$(".contentboxes").hide();
			$(".contentboxes:eq(2)").stop().animate({width: "show"});
			return(false);
		}
	});
	
	$("#work").click(function(){
		if($(".contentboxes:eq(3)").is(":visible"))
		{
			return false;
		}
		else
		{
			$(".contentboxes").hide();
			$(".contentboxes:eq(3)").stop().animate({width: "show"});
			return(false);
		}
	});
	
	$("#contact").click(function(){
		if($(".contentboxes:eq(4)").is(":visible"))
		{
			return false;
		}
		else
		{
			$(".contentboxes").hide();
			$(".contentboxes:eq(4)").stop().animate({width: "show"});
			return(false);
		}
	});
}
	
	
	
	
				   
						   
