document.write( '<div id="ii_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="font-family: Tahoma, Verdana; font-size:12px;" cellpadding="1px" cellspacing="2px"><tr><td id="ii_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="ii_image" style="width:64px; height:64px"></div></td><td nowrap valign=top><div id="ii_tip"></div></td></tr><tr><td colspan=2 align=center><div id="ii_extended"></td></tr></table></div>' );
tts[ 'ii' ] = 'ii';
document.getElementsByTagName( 'body' )[ 0 ].onmouseover = new Function( "bw_tt_hide();" );
function bw_showitem( e, name, img, extended, keys, values )
{
	document.getElementById( 'ii_name' ).innerHTML = name;
	document.getElementById( 'ii_image' ).innerHTML = '<img border=0 src="http://i.brokenworlds.com/items/' + img+'">';
	document.getElementById( 'ii_extended' ).innerHTML = extended;
	var border = 'border-bottom: 1px dotted #AA9977;';
	var tip = '<table cellspacing=0 cellpadding=2 style="font-family: Tahoma, Verdana; font-size:11px; width: 98%; height: 100%; 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; color: black; " width="100%">';
	for( var i = 0; i < keys.length; i ++ )
	{
		if( i == keys.length - 1 )
			border = '';
		tip += '<tr align="center">';
		if( values[ i ] != '' )
		{
			tip += '<td style="' + border + 'border-right: 1px dotted #AA9977;" nowrap>' + keys[ i ] + '</td><td style="' + border + '">' + values[ i ] + '</td>';
		}
		else
		{
			tip += '<td colspan="2" align="left" style="' + border + '" nowrap>' + keys[ i ] + '</td>';
		}
		tip += '</tr>';
	}
	tip += '</table>';
	document.getElementById( 'ii_tip' ).innerHTML = tip;
	bw_tt_show( document.getElementById( 'ii_tool' ), -1, -1, e );
}
