setup = function () {
    $(".menu-item").each(function() {
         $(this).hover(function() {$(this).addClass("hover");},
                       function() {$(this).removeClass("hover");})
      });

    $(".menu-item").each(function() {
        $(this).click(function() {
           a = $(this).find("a");
           window.location = a.attr("href");
        });
    });
}


$(document).ready(setup);

