/**
 * @author KG
 */

 
$(function(){
	
	$('table a').live('click', function(e){ e.preventDefault(); });
	
	$('table a').hover(function(){
		
		var td = $(this).parent();
		
		if(td.children('.path_content').length == 1){
			
			var content = td.children('.path_content').html(),
				hover 	= "<div class='path_display'><div class='the_content'><div class='top'></div><div class='middle'>" + content + "</div><div class='bottom'></div></div></div>";
				
			$(td).append(hover);
			
			if(td.hasClass('content_cell')){
				td.find('.the_content').animate({opacity: 1, bottom: "25"}, 500);
			}else { 
				td.find('.the_content').animate({opacity: 1, bottom: "35"}, 500);
			}
		}
	});

	$('table a').live('mouseout', function(){
		
		var td = $(this).parent();
		
		td.find('.path_display').remove();
	});
	
});
