<!--  Nastavení pro lightbox   -->        
$(document).ready(function(){
			$("a[rel^='prettyPhoto']").prettyPhoto({
				animationSpeed: 'normal', /* fast/slow/normal */
				padding: 40, /* padding for each side of the picture */
				opacity: 0.35, /* Value betwee 0 and 1 */
				showTitle: true, /* true/false */
				allowresize: true, /* true/false */
				counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
				theme: 'light_rounded', /* light_rounded / dark_rounded / light_square / dark_square */
				callback: function(){}
			});
		});
		


<!--  Animace vyhledávání h2   -->    

$(document).ready(function(){
  $("#search_results h2").animate({opacity: 1.0}, 3000).hide(1500);
});

<!--  Externí odkazy   -->

$(document).ready(function() {   
  $('.maincontent a').filter(function() {   
    return this.hostname && this.hostname !== location.hostname;   
  }).addClass('external')   
  .click(function() {   
    window.open(this.href);   
    return false;   
  });   
}); 


<!--  Efekt u fotek jedné galerie   -->

$(document).ready(function(){
  $(".lightbox img").mouseover(function(){
      $(this).animate( { opacity:"0.5" },300);
  });
  $(".lightbox img").mouseout(function(){
      $(this).animate( { opacity:"1" }, 300);
  });  
});


// Tisk

	function Print()
	{
		window.print();
	}


// NA

function hoverMenu(obj, el, className) {
	var object = document.getElementById(obj);
	var list = object.getElementsByTagName(el);
	
	for (var a = 0; a < list.length; a++) {
		list[a].onmouseover = function() { this.className = this.className.replace(" " + className, ""); this.className = this.className.replace(className, "");this.className += " " + className; };
		list[a].onmouseout = function() { this.className = this.className.replace(className, "");};
	}
}



