// JavaScript Document

// puts header into pages
initiateHeader = function() {
	// AJAX code		
	jQuery.ajax({
		url: "http://www.srr.org/new_header.htm",
		cache: false,
		success: function(html){
			$("#page_header").html(html);
		},
		error:function(XMLHttpRequest, textStatus, errorThrown) {
			console.log("1: ", XMLHttpRequest);
			console.log("2: ", textStatus);
			console.log("3: ", errorThrown);
		}
	});
}

// puts footer into pages
initiateFooter = function() {
	// AJAX code		
	jQuery.ajax({
		url: "http://www.srr.org/new_footer.htm",
		cache: false,
		success: function(html){
			$("#page_footer").html(html);
		},
		error:function(XMLHttpRequest, textStatus, errorThrown) {
			console.log("1: ", XMLHttpRequest);
			console.log("2: ", textStatus);
			console.log("3: ", errorThrown);
		}
	});
}
