// main navigation
if($("#mnv ul").length > 0) {
$("#mnv ul").hide();
$("#mnv li").hover(function() {
var active = $(this).hasClass("act");
// add another class to indicate
// that the button had class assigned
if(active) {
$(this).addClass("had");
} else {
$(this).addClass("act");
}
$(this).find("ul").stop(true, true).fadeIn("fast");
}, function() {
// if button had the new class assigned
// then remove it and also remove active
if(!$(this).hasClass("had")) {
$(this).removeClass("act");
} else {
$(this).removeClass("had");
}
$(this).find("ul").stop(true, true).fadeOut("fast");
});
}