var $jq = jQuery.noConflict();

$jq(function() {
	
	cur_anim = false;
	
	$jq("td.day_eventt").hover(function(evt) {
		cur_anim = $jq(this);
		
		//alert(cur_anim);
		if (!cur_anim.hasClass('show')) {
			cur_anim.addClass('show');
			$jq("td.filled_text p").text($jq("td.show a").attr('title'));
			$jq("td.show a").removeAttr('title');
			cur_anim.css('cursor', 'pointer').bind('mousemove',function(e){
				
				$jq("#dymek").css('display', 'block');
				$jq("#dymek").css('left',e.pageX+20).css('top', e.pageY-20);
				$jq("#dymek").fadeIn(500);
			});
		}
	}, function() {
		cur_anim.unbind('mousemove');
		$jq("#dymek").fadeOut(100, function(evt) {
			$jq("td.show a").attr('title', $jq("td.filled_text p").text());
			cur_anim.removeClass('show');
			cur_anim = false;
		});
	});
	
	

});
