jQuery(document).ready(function($) {
	$("#obory_opener").click(function(){
		$("#obory_filtr").show('slow');
	});
	$("#obory_closer").click(function(){
		$("#obory_filtr").hide('slow');
		$("#formsearch").submit();
	});
	
	$("#menu_s_podkat .top").mouseover(function(){
		$(".submenu").css('display', 'none');
		$(this).children(".submenu").css('display', 'block');
	});
	$("#menu_s_podkat").mouseout(function(){
		$(".submenu").css('display', 'none');
	});
});


jQuery(document).ready(function(){
 //if this is not the first tab, hide it
 jQuery(".tab:not(:first)").hide();
 
 //to fix u know who
 jQuery(".tab:first").show();
 jQuery(".htabs a:first").addClass('selected');
 
 //when we click one of the tabs
 jQuery(".htabs a").click(function(){
 stringref = jQuery(this).attr("href").split('#')[1]; //zjisti ID elementu, ktery chceme zobrazit
 jQuery('.tab:not(#'+stringref+')').hide(); //skryje neaktualni tabulky
 jQuery(".htabs a").removeClass('selected'); //odebere vsem odkazum class selected
 jQuery(this).addClass('selected'); //prida aktualne kliknutemu odkazu class selected
 
 //SPECIALITA PRO IE 6
 if (jQuery.browser.msie && jQuery.browser.version.substr(0,3) == "6.0") {
 jQuery('.tab#' + stringref).show();
 }
 else
 //display our tab fading it in
 jQuery('.tab#' + stringref).fadeIn();
 //stay with me
 return false;
 });
});



jQuery(document).ready(function(){
 //if this is not the first tab, hide it
 jQuery(".tabz:not(:first)").hide();
 
 //to fix u know who
 jQuery(".tabz:first").show();
 jQuery(".htabz a:first").addClass('selected');
 
 //when we click one of the tabs
 jQuery(".htabz a").click(function(){
 stringref = jQuery(this).attr("href").split('#')[1]; //zjisti ID elementu, ktery chceme zobrazit
 jQuery('.tabz:not(#'+stringref+')').hide(); //skryje neaktualni tabulky
 jQuery(".htabz a").removeClass('selected'); //odebere vsem odkazum class selected
 jQuery(this).addClass('selected'); //prida aktualne kliknutemu odkazu class selected
 
 //SPECIALITA PRO IE 6
 if (jQuery.browser.msie && jQuery.browser.version.substr(0,3) == "6.0") {
 jQuery('.tabz#' + stringref).show();
 }
 else
 //display our tab fading it in
 jQuery('.tabz#' + stringref).fadeIn();
 //stay with me
 return false;
 });
 
});


jQuery(document).ready(function(){
	$('a.lightbox').lightBox({fixedNavigation:true}); // Select all links with lightbox class
});
