$(document).ready(function(){
    var path = "image";
    var ext = "gif";
    
    if (_lang._itself == "en") {
        path += "-en";
        ext = "png";
    }
    
    $("#search input:last-child").hover(
        function(){ $(this).attr("src", "/"+ path +"/button/hover/hledat."+ ext); },
        function(){ $(this).attr("src", "/"+ path +"/button/hledat."+ ext); }
    );
    
    $("#contact form input[type='image']").hover(
        function(){ $(this).attr("src", "/"+ path +"/button/hover/odeslat."+ ext); },
        function(){ $(this).attr("src", "/"+ path +"/button/odeslat."+ ext); }
    );
        
    $("#search-content .filled .silverbox form input[type='image']").hover(
        function(){ $(this).attr("src", "/"+ path +"/button/hover/hledat-znovu."+ ext); },
        function(){ $(this).attr("src", "/"+ path +"/button/hledat-znovu."+ ext); }
    );
    
    $("#academy .right .dictionary .silverbox form input[type='image']").hover(
        function(){ $(this).attr("src", "/"+ path +"/button/hover/hledat-znovu."+ ext); },
        function(){ $(this).attr("src", "/"+ path +"/button/hledat-znovu."+ ext); }
    );
    
    /*
    $("#subscribeNews input[type='image']").hover(
        function(){ $(this).attr("src", "/"+ path +"/button/hover/odeslat2."+ ext); },
        function(){ $(this).attr("src", "/"+ path +"/button/odeslat2."+ ext); }
    );
    */
    
    /*
    $("#formCarrerCv input[type='image']").hover(
        function(){ $(this).attr("src", "/"+ path +"/button/hover/odeslat4."+ ext); },
        function(){ $(this).attr("src", "/"+ path +"/button/odeslat4."+ ext); }
    );
    */
    
    /* Administrace */
    $("form#login-form input[type='image']").hover(
        function(){ $(this).attr("src", "/image/admin/button/hover/prihlasit-se.gif"); },
        function(){ $(this).attr("src", "/image/admin/button/prihlasit-se.gif"); }
    );
    
    $(".saveButton").hover(
        function(){ $(this).attr("src", "/image/admin/button/hover/ulozit.gif"); },
        function(){ $(this).attr("src", "/image/admin/button/ulozit.gif"); }
    );
})