
jQuery(document).ready(function()
{
    $("ul#phNav li").mouseenter(
	
	function(){
		$(this).stop().animate({
			height:'46'
		}, 100);
    
	}).mouseleave(
	
	function(){
		$(this).stop().animate({
			height:'40'
		}, 100);
	});
	
    $("ul#phNav li").click(function(event){
    	event.preventDefault();
    	$("ul#phNav li.current").removeClass("current");
       	$(this).addClass("current");
       	window.location = $("a",this).attr("href");
    });
	
	$("ol li").mouseenter(
		function(){
			var hoverId = ".phFeature #star"+$(this).attr("class").substring(7);
			$(hoverId).addClass('over');
			  $(hoverId).stop().animate({
				marginTop: '-5'
			  }, 100);		
		}).mouseleave(
		function(){
			  $(".phFeature .star.over").stop().animate({
				marginTop: '0'
			  }, 100);	

			$(".phFeature .star.over").removeClass("over");
	});

	$(".phFeature .star").mouseenter(
		function(){
			var hoverId = "ol li.feature"+$(this).attr("id").substring(4);
			$(hoverId).addClass('over');
			  $(this).stop().animate({
				marginTop: '-5'
			  }, 100);	
	
		}).mouseleave(
		function(){
			$("ol li.over").removeClass("over");
			  $(this).stop().animate({
				marginTop: '0'
			  }, 100);	

	});
	
	
	$("a#btnEnter").click(function(){
		$('form#enter').submit();
	});

	
});
