$(function(){$(".button:not(.button-active)").hover(function(){$(this).find('form:not(.yform)').each(function(i){$(this).parent().parent('.button').addClass("button-active");});var not=$(".toggle").data("not")||"";$(this).find('form.yform').each(function(i){if($(this).parent('.toggle').not(not).is(':visible')){$(this).parent().parent().parent('.button').removeClass("button-active");}
if($(this).parent('.toggle').not(not).is(':hidden')){$(this).parent().parent().parent('.button').addClass("button-active");}});},function(){$(this).find('form:not(.yform)').each(function(i){$(this).parent().parent('.button').removeClass("button-active");});$(this).find('form.yform').each(function(i){if($(this).parent('.toggle').is(':hidden')){$(this).parent().parent().parent('.button').removeClass("button-active");}});});});