$(document).ready(function () {
	var activeSection = $('.on').attr('id');
	
	$('.withsub').mouseover(function() {
		section = this.getAttribute('id');
		$('#' + section).addClass('on');
		$('#sub-' + section).show('fast');
	});
	
	$('.sottomenu').parent().bind('mouseleave', function() {
		if ($(':first', this).attr('id') != activeSection) {
			$(':first', this).removeClass('on');
		}
		$('.sottomenu').hide('fast');
	});
});
