$(document).ready(function() {
    
    if($.browser.name == "msie" && $.browser.versionNumber < 7){
        DD_belatedPNG.fix('.col3-layout .col-right .galerie .inner,.spendlik,.col3-layout .col-right .galerie .headline,.col3-layout .col-left .box .kalendar .inner .kalendar-wrapper p.link a,.col3-layout .col-left .box .kalendar .inner,.col3-layout .col-left .box .kalendar .inner .kalendar-wrapper a.prev,.col3-layout .col-left .box .kalendar .inner .kalendar-wrapper a.next,.leftmenu-middle ul li a span,.col-left .box .headline,.topmenu ul li a.home,.uvozovka-nahore,.uvozovka-dole p.,.hodnoceni-klientu .navi a.prev,.hodnoceni-klientu .navi a.next,a.logo, .slider-wrapper, .topinfo a, .topinfo span, p.signature, .search-form .button input,.stamp,.hodnoceni-klientu .inner, .hodnoceni-klientu .headline');
    }
    
    $('.topmenu > ul > li').mouseover(function() {
        $(this).addClass("hover");
    });
    
    $('.topmenu > ul > li').mouseout(function() {
        $(this).removeClass("hover");
    });
    
    $('.search-form .text input').click(function() {
        $(this).attr("value","");
    });
    
    $('.search-form .text input').blur(function() {
        if($(this).attr("value")=="")
            $(this).attr("value","Vyhledávaný výraz");
    });
    
    $('.newsletter .text input').click(function() {
        $(this).attr("value","");
    });
    
    $('.newsletter .text input').blur(function() {
        if($(this).attr("value")=="")
            $(this).attr("value","Zde zadejte Váš e-mail");
    });
    
    $('.search-form .button input').mouseover(function() {
        $(this).css("background-position","left bottom");
    });
    
    $('.search-form .button input').mouseout(function() {
        $(this).css("background-position","left top");
    });
    
    $('.content table').attr("cellspacing","0").attr("cellpadding","0");
    
    $('.content table tr:odd').addClass("odd");
    
    $('.content table tbody tr').mouseover(function() {
        $(this).addClass("hover");
    });
    
    $('.content table tbody tr').mouseout(function() {
        $(this).removeClass("hover");
    });
    
    $('.content form .button').mouseover(function() {
        $(this).css("background-position","left bottom");
        $("input",this).css("background-position","right bottom");
    });
    
    $('.content form .button').mouseout(function() {
        $(this).css("background-position","left top");
        $("input",this).css("background-position","right top");
    });
    
    jQuery('.cycle-wrapper').cycle({
        fx: 'fade',
        timeout: 3000,
        speed: 700,
        pager: 'ul.pager',
        activePagerClass: 'activeSlide'
    });
	
	$('a[rel*=lightbox]').lightBox(); // Select all links that contains lightbox in the attribute rel
    
});  
