if ($('.tipped')) {
$('body').append('<div id="tooltip" style="postion:absolute;display:none;padding:5px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;background:#000;background:rgba(0,0,0,0.8);color:#eee"></div>');
tooltipcache = {};
$('.tipped').hover(function(){
	var offset = $(this).offset();
	$('#tooltip').css({
		'top': offset.top,
		'left': offset.left+($(this).width())+10,
		}).text('Loading...').show();
	id = $(this).attr('name');
	if (tooltipcache[id])
		{
		$('#tooltip').html(tooltipcache[id]).css('position', 'absolute');
		}
	else
		{
		$.get('http://magistream.com/creatures/ajaxtooltip.php', {'id': id}, function(data){
			tooltipcache[this.url.split('id=')[1]] = data;
			$('#tooltip').html(data).css('position', 'absolute');//.show();
			});
		}
	}, function(){
	$('#tooltip').hide();
	});
$('.choice').hover(function(){
	var offset = $(this).offset();
	$('#tooltip').css({
		'top': offset.top+($(this).height())+10,
		'left': offset.left,
		}).text('Loading...').show();
	id = $(this).attr('rel');
	if (tooltipcache[id])
		{
		$('#tooltip').html(tooltipcache[id]).css('position', 'absolute');
		}
	else
		{
		$.get('http://magistream.com/creatures/ajaxtooltip.php', {'id': id}, function(data){
			tooltipcache[this.url.split('id=')[1]] = data;
			$('#tooltip').html(data).css('position', 'absolute');//.show();
			});
		}
	}, function(){
	$('#tooltip').hide();
	});
$('#tooltip').hover($.noop, function(){
	$(this).hide();
	});
}
