$(document).ready(function(){

	// hide submenus without actives
	$("ul#nav li ul").each(function(index) {
		if (!$(this).find('a.on').length) $(this).hide();
	});

	// bind show to hover
	$("ul#nav li").hover(
	  function () {
	    $(this).find('ul').show();
	  }, 
	  function () {
	    $(this).find('ul').hide();
	  }
	);
	
	
});
