$(function() {
	var ttime = 800
	$(".tooltip_bubble").bind("mouseover mousemove", function(e) {
		var ot = $(this).next(".tooltip_block")
		var c = $(this).parents(".text_page")
		// if (c.length == 0) c = $(this).parents(".relevantLinks")

		ot.css({
			"left" : e.pageX - c.offset().left + 90,
			"top" : e.pageY - c.offset().top - 2
		}).fadeIn(150)
		$(".tooltip_block", c).each(function() {
			if ($(this)[0] !== $(ot)[0]) {
				$(this).stopTime("tooltip")
				$(this).stop().css({"opacity" : 1}).hide()
			}
		})
	})
	$(".tooltip_bubble").mouseout(function() {
		$(this).next(".tooltip_block").oneTime(ttime, "tooltip", function() {
			$(this).fadeOut(150)
		})
	})
	$(".tooltip_block").mouseover(function() {
		$(this).stopTime("tooltip")
	})
	$(".tooltip_block").mouseout(function() {
		$(this).oneTime(ttime, "tooltip", function() {
			$(this).fadeOut(150)
		})
	})
})

