$(document).ready(function(){
	Nifty("#menu a","small top transparent");
	Nifty("#cwrapper","medium bottom transparent");
	//$('.content').load('pages.php?page=about'); //by default initally load text from pages.php
	$('#menu a').click(function() { //start function when any link is clicked
		if (!$(this).hasClass("alt")){
			$(".alt").removeClass("alt");
			$(this).addClass("alt");
			$(".content").slideUp("slow");
			var content_show = $(this).attr("title"); //retrieve title of link to compare with php file
			$.ajax({
					method: "get",url: "pages.php",data: "page="+content_show,
					beforeSend: function(){$("#loading").show("fast");}, //show loading just when link is clicked
					complete: function(){$("#loading").hide("fast");}, //stop showing loading when the process is complete
					success: function(html){$(".content").show("slow").html(html);}
			}); //close $.ajax(
		} //close this(
	}); //close click(
	$('#default').click();
}); //close $(