// function targetBlank()
// {
// 	var url_match = null;
// 	var target_domain = null;
// 	var this_domain = window.location.hostname;
//
// 	// funkce vrátí doménu z odkazu
// 	var get_hostname_from_url = function(url)
// 	{
// 		if (typeof url == "undefined")
// 		{
// 			return null;
// 		}
//
// 		url_match = url.match(/:\/\/(.[^/]+)/);
//
// 		if (url_match != null)
// 		{
// 			return url_match[1];
// 		}
//
// 		return null;
// 	}
//
// 	// vybereme všechny odkazy
// 	$("a").click(function(event)
// 	{
// 		var href = $(this).attr("href");
//
// 		// získáme doménu cíle odkazu
// 		target_domain = get_hostname_from_url(href);
//
// 		// odstraní se www ze začátku odkazu, pokud existuje
// 		if (target_domain != null && target_domain.indexOf("www.") != -1)
// 		{
// 			target_domain = target_domain.substr(4);
// 		}
//
// 		// pokud je doména jiná než aktuální, nebo je nastaveno class="targetBlank", otevřeme v novém
// 		if ($(this).hasClass("targetBlank") == true || (target_domain != null && target_domain != this_domain))
// 		{
// 			window.open($(this).attr("href"), "");
// 			event.preventDefault();
// 			return false;
// 		}
// 	});
// }

$(document).ready(function() {
  $(".lightbox_foto").lightBox({fixedNavigation:true});
  
  $(".hp_rozcestnik, .hp_banner").fadeTo("fast", 0.9);
  $(".hp_rozcestnik, .hp_banner").hover(function(){
  $(this).fadeTo("normal", 1.0); // This sets the opacity to 100% on hover
  },function(){
  $(this).fadeTo("normal", 0.9); // This sets the opacity back to 60% on mouseout
  });
  
  $("#vytisknout_stranku").click(function(event){
      window.print();
      event.preventDefault();
  });


});
