$(document).ready(function(){
	// Your code here
	$('ul li').hover(function() {
		var id = $(this).attr('id');
		$(this).parent('ul').addClass(id);
		$(this).addClass('hover');
		$(this).css('cursor','pointer');
		$(this).click(function() {
			window.location=$(this).find("a").attr("href"); return false;
		});
	}, function () {
		var id = $(this).attr('id');
		$(this).parent('ul').removeClass(id);
		$(this).removeClass('hover');
	});
 });