/* Stefan Jongejan - Sjongejan.eu */
$(document).ready(function() {
    $('#menu li').hover(
    function() { 
        $(this).children(".uitklapbaar").css("color", "#6d6d6d");
        $(this).children("ul").stop(true, true).slideToggle('medium');
    },
    function() {
        $(this).children(".uitklapbaar").css("color", "#d3104c");
        $(this).children("ul").stop(true, true).slideToggle(0);
    });
    
    $("#klanten_login a.urls").hover(
    function() {
        $("#klanten_login img.urls").attr("src", siteUrl + "themes/plugonline/img/klantaccount_pijltje_hover.png");
    },
    function() {
        $("#klanten_login img.urls").attr("src", siteUrl +  "themes/plugonline/img/klantaccount_pijltje.png");
    });
    
    $(".tab").click(function() {
        $("#tab1").fadeOut(0);
        $("#tab2").fadeOut(0);
        $("#tab3").fadeOut(0);
        $(".tab").attr("class", "tab");
        $(this).attr("class", "tab red");
        
        var name_id = $(this).attr("id");
        name_id = name_id.replace("_", "");
        $("#" + name_id).fadeIn("slow");
    });
    
    $("#social img").hover(function() {
        $(this).attr("src", siteUrl + "themes/plugonline/img/social_" + $(this).attr("id") + "_hover.png");
        $(this).css("paddingLeft", "20px");
    }, function() {
        $(this).attr("src", siteUrl + "themes/plugonline/img/social_" + $(this).attr("id") + ".png");
        $(this).css("paddingLeft", "0px");
    });
});
