$(document).ready(function(){
    $(function () {
        var tabContainers = $('div.tabs > div');
        tabContainers.hide().filter(':first').show();
        
        $('div.tabs ul.tabNavigation a').click(function () {
                tabContainers.hide();
                tabContainers.filter(this.hash).show();
                $('div.tabs ul.tabNavigation a').removeClass('selected');
                $(this).addClass('selected');
                return false;
        }).filter(':first').click();
    });	
	// pozice paticky
	var elementHeight = $("#bgWrap").height(); 
	var screen = parseInt(($(window).height()))-37;	
	
	if(parseInt(screen)+37 > elementHeight) {	
		$("#bgWrap").css("height",screen+"px");
	}

	
	$('#infoBox').css('opacity', 0.90);
	
	
  $('.menu li').hover(
    function() { $('ul', this).css('display', 'block'); },
    function() { $('ul', this).css('display', 'none'); }
  );	
	
	
  $('#closeInfoBox').click(  
    function () {
      $('#infoBox').remove();
    }        
  );	
  
  	if($("#accordion").length > 0) {
  		
	  $("#accordion").accordion();
	  
	}	
	
  
	// menu - nastaveni kurzoru pro korenove slozky ktere nikam neodkazuji  
  $('a[href="#"]').css('cursor', 'default');
  $('a[href="#"]').click(
    function () {
      return false;
    }
  );
   

   
});

