$(document).ready(function(){
    meni();
    iskanje();
    $("div.vsebina").hide();
    $("div.vsebina").fadeIn("slow");
    
    $("td.s_moduli").hide();
    $("td.s_moduli").fadeIn("slow");

});

function iskanje() {
    $("input.iskanje").keypress(function() {
        var kljuc = $(this).val();
        if(kljuc != "") {
            $("form#iskanjeF").attr("action","iskanje.php"); 
                       
        }
        else $("form#iskanjeF").attr("action","index.php");    
    });
}

function meni() {
    $("a.meni").hide();
    $("a.meni").fadeIn("slow");
    
    $("img#m_domov").hover(function() {
        $(this).attr("src","tmpl/slike/menih_domov.png");    
    },
    function() {
        $(this).attr("src","tmpl/slike/meni_domov.png");  
    });
    $("img#m_storitve").hover(function() {
        $(this).attr("src","tmpl/slike/menih_storitve.png");    
    },
    function() {
        $(this).attr("src","tmpl/slike/meni_storitve.png");  
    });
    $("img#m_reference").hover(function() {
        $(this).attr("src","tmpl/slike/menih_reference.png");    
    },
    function() {
        $(this).attr("src","tmpl/slike/meni_reference.png");  
    });
    $("img#m_mnenja").hover(function() {
        $(this).attr("src","tmpl/slike/menih_mnenjastrank.png");    
    },
    function() {
        $(this).attr("src","tmpl/slike/meni_mnenjastrank.png");  
    });
    $("img#m_onas").hover(function() {
        $(this).attr("src","tmpl/slike/menih_onas.png");    
    },
    function() {
        $(this).attr("src","tmpl/slike/meni_onas.png");  
    });    
}

