﻿document.write( '<div id="gf_tool" onmouseover="event.cancelBubble = true;" style="position: absolute; display: none; background-color: #e3d09d; padding: 0px; border: solid 1px #990000; background-image: url(http://img.brokenworlds.com/paper005.gif);"><table border="0" style="width: 300px; height: 200px; font-family: Tahoma, Verdana; font-size:12px;" cellpadding="1px" cellspacing="2px"><tr><td id="gf_name" colspan="2" align="center" style="font-weight: bold;  border: 1px solid #990000; background-color: #443300; color: white"></td></tr><tr><td align="center" width="96px" valign=top><div id="gf_image"></div></td><td id="gf_tip" nowrap valign=top></td></tr><tr><td colspan=2 align=center><div id="gf_description" style="width: 98%; height: 95px; overflow: auto; background-color: #FFEEAA; border-top: 1px solid #996633; border-left: 1px solid #996633; border-right: 1px solid #FFFFEE; border-bottom: 1px solid #FFFFEE; padding: 2px; text-align: justify; font: normal 11px Tahoma;"></td></tr></table></div>' );
tts[ 'gf' ] = 'gf';
document.getElementsByTagName( 'body' )[ 0 ].onmouseover = new Function( "bw_tt_hide();" );
function bw_showgift( e, img, name, from, descr, date )
{
//	document.getElementById( 'gf_image' ).src = 'http://img.brokenworlds.com/gifts/' + img;
	document.getElementById( 'gf_image' ).innerHTML = '<img border=0 src="http://img.brokenworlds.com/gifts/' + img+'">';
	document.getElementById( 'gf_name' ).innerHTML = name;
	document.getElementById( 'gf_description' ).innerHTML = descr;
	document.getElementById( 'gf_tip' ).innerHTML = 'от: ' + from + '<br />';
	if( date == 0 )
		document.getElementById( 'gf_tip' ).innerHTML += 'вечный';
	else
		document.getElementById( 'gf_tip' ).innerHTML += date;
	bw_tt_show( document.getElementById( 'gf_tool' ), 10, 10, e );
}
