sfHover = function() {
	var sfEls = document.getElementById("menu_top").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
//window.onload = sfHover;
if (window.attachEvent) window.attachEvent("onload", sfHover);

$(document).ready(function() {
	// effetto sparizione scritta quando si modifica un elemento input
	$("input#mitglieder_benutzer").focus(function(){
		if (($(this).attr("value")) == 'Mustermann') {
			$(this).attr("value","");
		}
	});
	$("input#mitglieder_benutzer").blur(function(){
		if (($(this).attr("value")) == '') {
			$(this).attr("value","Mustermann");
		}
	});
	$("input#mitglieder_password").focus(function(){
		if (($(this).attr("value")) == 'Passwort') {
			$(this).attr("value","");
		}
	});
	$("input#mitglieder_password").blur(function(){
		if (($(this).attr("value")) == '') {
			$(this).attr("value","Passwort");
		}
	});
	$("input#suche_suche").focus(function(){
		if (($(this).attr("value")) == 'Suchbegriff') {
			$(this).attr("value","");
		}
	});
	$("input#suche_suche").blur(function(){
		if (($(this).attr("value")) == '') {
			$(this).attr("value","Suchbegriff");
		}
	});
});


// funzione per far apparire e scomparire parti del testo
function appari(nome){
	 document.getElementById(nome).style.display='block';
}

function scompari(nome){
	 document.getElementById(nome).style.display='none';
}

// funzione per dove siamo
function where(nome){
    var stato = document.getElementById(nome).style.display;
	if (stato == 'none'){
	 document.getElementById(nome).style.display='block';
	}
	else {
     document.getElementById(nome).style.display='none';
	}
}
