var currentContent;
function loadContent(page) {
	if (page !== currentContent) {
		$("#content").hide("fade", "fast", function() {
			$("#content").load("html/" + page + ".html", function() {
				$("#content").show("fade", "fast");
			});
		});
	}
}
$(document).ready(function() {
	$("a.load").click(function(event) {
		loadContent(this.getAttribute("href").substr(1));
	});
});

var currentContent;
function loadContent(page) {
	if (page !== currentContent) {
		$("#content").hide("fade", "fast", function() {
			$("#content").load("html/" + page + ".html", function() {
				currentContent = page;
				$("#content").show("fade", "fast");
			});
		});
	}
}
$(document).ready(function() {
	$("a.load").click(function(event) {
		loadContent(this.getAttribute("href").substr(1));
	});
});

Update page status