		function showMenu(sel, num) {
		    if ($(sel).find('.jsMenu' + num).length != 0) {
		        $(sel).children('.jsMenu' + num).show();
		        $(sel).addClass('hover');
				
		    }
		};
		
		$(document).ready(function() {
		
			// Lze nastavit position a display zde misto v css kvuli pouzitelnosti webu. 
			// Pokud nefunguje JavaScript, je pak vidět menu celé ve všech úrovních.
			// Nevýhodou je ale bliknutí webu na startu, než se podmenu skryjí.
			// V případě využití této feature je potřeba vlastnosti position a display v css zrušit.
			
		    //jQuery("#nav .jsMenu1, #nav .jsMenu2").css( { "position": "absolute" } );
			//jQuery("#nav .jsMenu1, #nav .jsMenu2").css( { "display": "none" } );
			
		    // jsMenu1
		    $('ul.first > li').mouseover(function() {
		        showMenu(this, 1);
		    });
		    $('ul.first > li').mouseout(function() {
		        $('.jsMenu1, .jsMenu2').hide();
		        $(this).removeClass('hover');
		    });
		
		    // jsMenu2
		    $('.jsMenu1 > li').mouseover(function() {
		       
			 $('.jsMenu1 li').removeClass('hover');
		        if ($(this).find('.jsMenu2').length != 0) {
		            $(this).children('.jsMenu2').hide();

		        }
		
		        showMenu(this, 2);
		    });

		});
