
ForForum = {
	init : function()
	{
		//Loading.StartLoading();

		/*jQuery.each(jQuery.browser, function(i, val) {
			$("<div>" + i + " : <span>" + val + "</span>").appendTo(document.body);
		});*/

		//if ($.browser.mozilla) { alert($.browser); }


		$.ajax({
			type: "POST",
			url: "/tools/header.php",
			cache: false,
			async: false,
			dataType: "html",
			data: "mode=login",
			success: function(msg){
					$('#page-header').prepend($('#ffheader', msg));
					$('#page-footer').prepend($('#fffooter', msg));
			},
			error: function (XMLHttpRequest, textStatus, errorThrown) {
				// typically only one of textStatus or errorThrown
				// will have info
				this; // the options for this ajax request
				if ($.browser.mozilla) {
					//console.log(textStatus);
					//console.log(errorThrown);
					//console.log(this);
				}
			}
		});

		//Loading.EndLoading();
	}
}


$(document).ready(function() {
	ForForum.init();
});


