jQuery(document).ready(function() {

var link;

	$("a:not(.noajax)").each(
		function(i){
			$(this).click(
				function(){
					$("#contentText").css("filter","alpha(opacity=1)")
					$("#loader").css("left", 505).css("top", 205).fadeIn(100);
					$("#contentText").animate({opacity: 0}, 200);
					link = $(this).attr("href");
					$.ajax({
						type: "POST",
						url: link,
						dataType: "html",
						success: function(html){
						  var textinsert = $(html).find("#contentText").html();
						  $("#contentText").empty().append(textinsert).animate({opacity: 1.0}, 400, function(){
																				 if (jQuery.browser.msie){ 
																				    this.style.removeAttribute('filter');
																				 }
																				 });
																				
						  $("#loader").css("left", -99999).fadeOut(0);
						}
				   });
				
				return false;
				}
			);
		}
	);
});
