linkify_dl = function(dl) {
    if ($(dl).size() > 0) {
        $.each(
            $(dl).children().filter('dt'),
            function(k,v) {
                $(v).hover(
                    function(){ 
                        $(this).addClass('h').next().addClass('h'); },
                    function(){ 
                        $(this).removeClass('h').next().removeClass('h'); }
                );
                $(v).click(function() {
                    window.location.href = $(this).find('a').attr('href');
                });
            }
        );
        $.each(
            $(dl).children().filter('dd'),
            function(k,v) {
                $(v).hover(
                    function(){
                        $(this).addClass('h').prev().addClass('h');
                    },
                    function(){
                        $(this).removeClass('h').prev().removeClass('h');
                    }
                );
                $(v).click(function() {
                    window.location.href = $(this).prev().find('a').attr('href');
                });
            }
        );
    }
};
$(document).ready(function(){
    linkify_dl($('.jobs dl'));
});
