$(document).ready(function() {
	ie = ((document.all) && (window.offscreenBuffering)) ? true : false;		   
	$("#nesomenu > li").mouseenter(function() {	
		$(this).find('a').eq(0).stop(true, true).animate({color: "#f0f0f0" }, 500);	
		if (!(ie)) {
			$(this).find('ul').eq(0).stop(true, true).fadeIn(200);
		} else {
			$(this).find('ul').eq(0).stop(true, true).css({display: "inline" });	
		}
	  }).mouseleave(function(){
		$(this).find('a').eq(0).stop(true, true).animate({color: "#A0A0A0" }, 200);	
		if (!(ie)) {
			$(this).find('ul').eq(0).stop(true, true).fadeOut(100);
		} else {
			$(this).find('ul').eq(0).stop(true, true).css({display: "none" });	
		}	
	});
	$("#nesomenu > li > ul > li").mouseenter(function() {
		 $(this).find('a').eq(0).stop(true, true).animate({ backgroundColor: "#494949", color: "#f0f0f0" }, 200);	
	  }).mouseleave(function(){
	  	 $(this).find('a').eq(0).stop(true, true).css({background:'#222222', color: "#A0A0A0"});
	});
});
