jQuery(document).ready(function() {        
    jQuery("li:not(a) ul li").hover(function(){
        jQuery(this).children().children().stop().animate({
            color: '#5fbbed',
        }, 400).css(background, 'none').parent().parent().parent().prev().html("blubb").css({
            background: 'url(fileadmin/templates/apermo/images/r_menu.gif) no-repeat scroll right center transparent',
            color: '#FFF'
        }).children().css({
            background: 'url(fileadmin/templates/apermo/images/l_menu.gif) no-repeat scroll left center'
        });
    }, function(){
        jQuery(this).children().children().stop().animate({
            color: '#FFF'
        
        }, 500).parent().parent().prev().css({
            background: 'none',
            color: '#7898AA'
        }).children().css({
            background: 'none'
        });
    });
    
    jQuery("#menuid > li.lvl1:not(ul li, ul li a,ul li a span) a").hover(function(){
        jQuery(this).css({
            'background': 'url(fileadmin/templates/apermo/images/r_menu.gif) no-repeat scroll right center transparent',
            color: '#fff'
        }).children().css({
            'background': 'url(fileadmin/templates/apermo/images/l_menu.gif) no-repeat scroll left center transparent'
        })
    }, function(){
        jQuery(this).children().css({
            'background': 'none',
            color: '7898AA'
        }).children().css({
            'background': 'none'
        })
    });
    
    jQuery(".leftt > ul li a").hover(function(){
        jQuery(this).stop().animate({
            color: '#fff',
        }, 400)
    }, function(){
        jQuery(this).stop().animate({
            color: '#666'
        
        }, 500)
    });
});

