
function clearInput(e){
if(e.value=='Search Here...')e.value="";
} 


$(document).ready(function() {
						   
			
			
			
    //If Keydown In Search Box

	$("#searchbox").keyup(function(){
								   
						
								   			
	//If Search Box Value is Nothing
								   			   
		 if($("#searchbox").val() == "")
		{
			
	//Hide the Div, No Search Query Is Given. 		
			
			$("#resultsContainer").hide("blind");
			exit();
			
		} else {
								   
	//Get the Result		

        getResults()
		
		}
		
	});
	
	
	

	function getResults()
	{
		
		 if($("#searchbox").val() == "")
		{
			
	//Hide the Div, No Search Query Is Given. 		
			
			$("#resultsContainer").hide("blind");
			exit();
		}


		
	
	//Use Searches.php to find result
	
		$.get("searches.php",{ query: $("#searchbox").val(), type: "results"}, function(data){
																					 
	//Insert HTML and Show The Div


  if (!$("#resultsContainer").is(":visible")) {

$("#resultsContainer").show("blind");

}
	
			$("#resultsContainer").html(data);
                        
			
			
			
		});
	}
	
	
	
	
});
<!--

navHover = function() {
	var lis = document.getElementById("navmenu").getElementsByTagName("LI");
	for (var i=0; i<lis.length; i++) {
		lis[i].onmouseover=function() {
			this.className+=" iehover";
		}
		lis[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", navHover);


function printPage()
{
if (window.print) {
jetztdrucken = confirm('Seite drucken ?');
if (jetztdrucken) window.print();
}
}


//-->
