$(document).ready(function() {
    $(".content").ready(function() {
      //  $(".content").css({ display: "none" });
        var activeTab = $("#yc_menu .true").attr("title");
        $("#" + activeTab).css({ display: "block" });
    });

    $("a.tab").click(function() {
        if ($(this).hasClass("true") == true) var e = true;
        if ($(this).hasClass("true") == false) var e = false;
        $(".true").removeClass("true");
        $(this).addClass("true");
       // $(".content").slideUp();
        if (e == false) {
            var content_show = $(this).attr("title");
            $("#" + content_show).slideDown();
        } else {
            $(".true").removeClass("true");
        }
    });

    $("a.tab img").mouseover(function() {
        var hov = $(this).attr("title");
        var src = $(this).attr("src");
        $(this).attr("title", src);
        $(this).attr("src", hov);
    });

    $("a.tab img").mouseout(function() {
        var hov = $(this).attr("title");
        var src = $(this).attr("src");
        $(this).attr("title", src);
        $(this).attr("src", hov);
    });

});
