$(document).ready(function() {
	$(".menu_link").attr("href", "#");
	$("#tjanster").bind("click",{menu: "tjanster"}, getText);
	$("#portfolio").bind("click",{menu: "portfolio"}, getText);
	$("#reviews").bind("click",{menu: "reviews"}, getText);
	$("#about").bind("click",{menu: "about"}, getText);
	$("#previous").bind("click",{menu: "previous"}, getText);
	$("#philosophy").bind("click",{menu: "philosophy"}, getText);
	$("#learnmore").bind("click",{menu: "learnmore"}, getText);
	$("#contact").bind("click",{menu: "contact"}, getText);
	$("#header").bind("click",{menu: "index"}, getText);
	
    });


function getText(event) {
    postObj = {};
    $.ajax({
        url: "gettext.php?type="+event.data.menu,
        type: "POST",
        dataType: "html",
        data: postObj,
        beforeSend: function() {
        },
        complete: function(xmlHttpRequestObj, textStatus) {
		;
        },
        success: function(data, textStatus, xmlHttpRequestObj) {
		$("#dyndata").html(data);
        }
    });
    return false;
}
