$(document).ready(
	function() {
		var name = $("#suchfeld");  
		name.keyup(sucheajax);
		$("#loading").hide("fast");
		$('.suchfenster').load('suche.php?page=2132');	//by default initally load text from search.php
		function sucheajax(){
			$.ajax({
				method: "get",url: "suche.php",data: "suchwort="+name.val()+"&page=2132",
				beforeSend: function(){$("#loading").show("fast");}, //show loading just when link is clicked
				complete: function(){ $("#loading").hide("fast");}, //stop showing loading when the process is complete
				success: function(htmla){		//so, if data is retrieved, store it in html
					$(".suchfenster").show("slow"); //animation
					$(".suchfenster").html(htmla); 	//show the html inside .content div
			 	}
		 	}); //close $.ajax
		}
	}
);