// JavaScript Document
$(document).ready(function(){
	$("#nav-menu li").hover(
		function(){ $("ul", this).fadeIn("fast"); }, 
		function() { } 
	);
if (document.all) {
		$("#nav-menu li").hoverClass ("sfHover");
	}
	$('#w-top').cycle({ 
		fx:    'uncover', 
		speed:  1200,
		pause: 0.2
	 });
});

$.fn.hoverClass = function(c) {
	return this.each(function(){
		$(this).hover( 
			function() { $(this).addClass(c);  },
			function() { $(this).removeClass(c); }
		);
	});
};	

function resetSearchField() {
	f = document.suche;
	
	if (f.searchterm.value == "Suche ...") {
		f.searchterm.value = ""; 
	}	
}

function setSearchField() {
	f = document.suche;
	if (f.searchterm.value == "") {
		f.searchterm.value = "Suche ...";
	}
}
