// JavaScript Document

/*---------------- gloabl variables ------------------*/

var backEnd = "/backend.php";
// var backEnd = "/~brianm/jmeanley_white/backend.php";

/*---------------- functions ------------------*/

/*---------------- preload ------------------*/
$(document).ready(function(){

	$("#aboutNav").click(function(){
		// $("#information").animate({"top": "0px"}, 800);
		// Send Ajax request to backend.php, with src set as "img" in the POST data
	    var info = "about";
	    $.post(backEnd, {"info": info}, function(return_data)
		{
			var curInfo = return_data;
		});
	});
	$("#artStateNav").click(function(){
		// $("#information").animate({"top": "-540px"}, 800);
		// Send Ajax request to backend.php, with src set as "img" in the POST data
	    var info = "artState";
	    $.post(backEnd, {"info": info}, function(return_data)
		{
			var curInfo = return_data;
		});
	});
	$("#teachPhilNav").click(function(){
		// $("#information").animate({"top": "-1580px"}, 800);
		// Send Ajax request to backend.php, with src set as "img" in the POST data
	    var info = "teachPhil";
	    $.post(backEnd, {"info": info}, function(return_data)
		{
			var curInfo = return_data;
		});
	});
});

