$(document).ready(function () {

    var filterTarget = ["one", "two"];

    $("a.filter").hover( function () {
        $(".filter-content").hide();
        for (i = 0; i < filterTarget.length; i++) {
            if ($(this).hasClass(filterTarget[i]) == true) {
                $(".filter-content." + filterTarget[i]).show();
            }
        }
    });

    $("a.target").hover(function () {
        $(".filter-content").hide();
    });

    $(".filter-target").mouseout(function () {
        $(".filter-content").hide();
    })
});

