$(document).ready(function(){

    $("body").addClass("loaded");

	$.ajax({
		type: 'POST',
		url: 'content.php?id=portfolio',
		cache: false,
		data: 'state=read',
		success: function(html){
			$('#result').html(html);
		},
		error: function(){
			$('#result').html("An unexpected connection error has occurred.");
		}
	});
    /*
	$('#bio').click(function(){
		$.ajax({
			type: 'POST',
			url: 'content.php?id=bio',
			cache: false,
			data: 'state=read',
			success: function(html){
				$('#result').html(html);
			},
			error: function(){
				$('#result').html("An unexpected connection error has occurred.");
			}
		});
	});

	$('#contact').click(function(){
		$.ajax({
			type: 'POST',
			url: 'content.php?id=contact',
			cache: false,
			data: 'state=read',
			success: function(html){
				$('#result').html(html);
			},
			error: function(){
				$('#result').html("An unexpected connection error has occurred.");
			}
		});
	});

	$('#portfolio').click(function(){
		$.ajax({
			type: 'POST',
			url: 'content.php?id=portfolio',
			cache: false,
			data: 'state=read',
			success: function(html){
				$('#result').html(html);
			},
			error: function(){
				$('#result').html("An unexpected connection error has occurred.");
			}
		});
	});
    */

 });