// JavaScript Document
function menufix() {
var sfEls=document.getElementById("navigation");
if(sfEls) sfEls=sfEls.getElementsByTagName("li");
if(sfEls){
for(var i=0; i<sfEls.length; i++){
sfEls[i].onmouseover=function(){ this.className="sfhover"; }
sfEls[i].onmouseout=function(){ this.className="nohover"; }
sfEls[i].onmousedown=function(){ this.className="sfhover"; }
sfEls[i].onmouseup=function(){ this.className="sfhover"; }
}
}
}
if (document.all){
window.attachEvent('onload',menufix);
}else{
window.addEventListener('load',menufix,false);
} 
$(function(){
		$('#navigation li a').hover(function() {
		// Stuff that happens when you hover on + the stop()
		$('.hover', this).stop().animate({
			'opacity': 1
			}, 700,'easeOutSine');
	},function() {
		// Stuff that happens when you unhover + the stop()
		$('.hover', this).stop().animate({
			'opacity': 0
			}, 700, 'easeOutQuad');
		//$('ul').hide();
	})
});
