$(document).ready(function() {
	sfHover();
	airplaine();
});

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" over";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" over\\b"), "");
		}
	}
}
airplaine = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("a");
	for (var i=0; i<sfEls.length; i++) {			
		sfEls[i].onmouseover=function() {	
			if (this.className=='top-linkno'){					
				$(this).parent().addClass("mlvl1-act3 over");					
			}			
			if (this.className=='top-linkact'){					
				$(this).parent().addClass("mlvl1-act3 over");
				/*$(this).parent().css("background-image", "url('fileadmin/templates/images/menu_fly.gif')");*/
			}
			
					
		}
		sfEls[i].onmouseout=function() {
			if (this.className=='top-linkno'){					
				$(this).parent().removeClass("mlvl1-act3");
				$(this).parent().removeClass("over");
			}
			if (this.className=='top-linkact'){					
				$(this).parent().removeClass("mlvl1-act");
				$(this).parent().removeClass("mlvl1-act3");
				$(this).parent().removeClass("over");	
				$(this).parent().addClass("mlvl1-no");				
			}
		}
	}
}