Hi,
Replace the last two lines of your Repurpose main.php:
</body>
</html>
with:
<script type="text/javascript">
$("body").bind("hover", function (e) {
$('a.menu').parent("li").removeClass("open");
});
$("a.menu").hover(function (e) {
$('a.menu').parent("li").removeClass("open");
var $li = $(this).parent("li").toggleClass('open');
return false;
});
</script>
</body>
</html>
Regards