	jQuery(function( $ ){

	$('#mycarousel').jcarousel({
		wrap:"both",
		scroll:1,
		auto: 10,
		animation:"slow"
	});
	


	$('#s').val('Zadejte hledané')
      .focus(function(){ $(this).val(''); })
      .blur(function(){ $(this).val('Zadejte hledané'); });


 $("ul#menu-top li").ivoHoverClass("over");
 
 $("ul#menu-top").addClass("level_1");
 $("ul#menu-top>li>ul").addClass("level_2");
 $("ul#menu-top>li>ul>li>ul").addClass("level_3");
 $("ul#menu-top ul ul ul").addClass("level_more");
 
	});

(function($) {
	   
    //hoverClass mi kolidoval s pluginem treeview proto vlastní předpona ivoHoverClass
    //hover funkce
    $.fn.ivoHoverClass = function(c) {
        return this.each(function(){
            $(this).hover(
                function() {
                    $(this).addClass(c);
                },
                function() {
                    $(this).removeClass(c);
                }
                );
        });
    };
})(jQuery);
