$(document).ready(function(){
  
  
  
  $("#vypis_bytu tr").hover(function(){
    if ($(this).hasClass("even") || $(this).hasClass("odd"))
      $(this).children().addClass("active");
  }, function(){
    $(this).children().removeClass("active");
  });
  
  
  $("#vypis_bytu tr").click(function(){
    if (typeof($(this).children("td:first").children("a:first").attr("href")) != 'undefined')
      location.href = $(this).children("td:first").children("a:first").attr("href");
  });
  
  //alert('wtf');
});


$(function() {
	$('.fotolightbox').lightBox({
   fixedNavigation:true,
   imageLoading: 'http://www.geosan-development.cz/js/lightbox-jquery/images/lightbox-ico-loading.gif',
   imageBtnClose: 'http://www.geosan-development.cz/js/lightbox-jquery/images/lightbox-btn-close.gif',
   imageBtnPrev: 'http://www.geosan-development.cz/js/lightbox-jquery/images/lightbox-btn-prev.gif',
   imageBtnNext: 'http://www.geosan-development.cz/js/lightbox-jquery/images/lightbox-btn-next.gif'
  });
});
