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