$(document).ready(function(){
    $("#nav-one li").hover( 
        function(){ 
            $("ul", this).fadeIn("fast")
            }, 
        function() { 
            $("ul", this).fadeOut("fast")
            } 
        )
        
    $("#nav-one ul").hover( 
        function(){ 
            $('li', this).animate({ opacity: 1}, 200 )
            }, 
        function() { 
            $('li', this).animate({ opacity: 0.8}, 200 )
            }
        )
if (document.all) {
    $("#nav-one li").hoverClass ("sfHover")
}
          
$("#mn_new").hover( function() {$("img", this).attr("src","/images/menu/new_hover.png")},function() { $("img", this).attr("src","/images/menu/new.png") });
$("#mn_project").hover( function(){$("img", this).attr("src","/images/menu/project_hover.png")},function(){ $("img", this).attr("src","/images/menu/project.png")});
$("#mn_work").hover( function() {$("img", this).attr("src","/images/menu/work_hover.png")},function(){$("img", this).attr("src","/images/menu/work.png") });
$("#mn_reklama").hover( function() {$("img", this).attr("src","/images/menu/reklama_hover.png")},function() { $("img", this).attr("src","/images/menu/reklama.png") });
$("#mn_video").hover( function() {$("img", this).attr("src","/images/menu/video_hover.png")},function() { $("img", this).attr("src","/images/menu/video.png") });
$("#mn_archive").hover( function() {$("img", this).attr("src","/images/menu/archive_hover.png")},function() { $("img", this).attr("src","/images/menu/archive.png")});
$("#mn_contacts").hover( function() {$("img", this).attr("src","/images/menu/contacts_hover.png")},function() { $("img", this).attr("src","/images/menu/contacts.png")});           
            
	  });
	  
		$.fn.hoverClass = function(c) {
			return this.each(function(){
				$(this).hover( 
					function() { $(this).addClass(c);  },
					function() { $(this).removeClass(c); }
				);
			});
		};



    
        