jQuery(document).ready(
	function()
	{
		
		jQuery(".homepage .help").each(
			function()
			{
				jQuery("div.home_popup").detach().appendTo("body").hide();
				
				jQuery(this).find("li").find('a').click(
					function(e)
					{
						return false;
					}
				);
				
				jQuery(this).find("li").hover(
					function()
					{
						var p_name = "#" + jQuery(this).find('a').attr("href");
						
						var current_p = jQuery(p_name);
						
						var pos = jQuery(this).offset();
						if ( current_p )
						{
							
							jQuery(current_p).stop(true,true);
							
							jQuery(current_p).css("z-index","100000");
							jQuery(current_p).css("position","absolute");
							
							jQuery(current_p).css(
							{
								top : (pos.top - jQuery(current_p).height() - 5),
								//left : (pos.left - 50),
								left : (pos.left + 2),
								opacity: 1
								
							});
							
							jQuery(current_p).show();
							
							jQuery(current_p).animate({
								top : "-=20",
								opacity: 1
							},300);
						}
						console.log(current_p);
					},function()
					{
						jQuery(".home_popup").hide();
					}
				);
			}
		);
	}
	);
