//<!--
var BILLIARDSEARCH_SEARCH_URL = 'http://billiardsearch.net/search';
var BILLIARDSEARCH_SEARCHBOX_TYPE = '190x42';
var BILLIARDSEARCH_SEARCHBOX_FOCUS = 1;

function billiardsearch_urlencode(str)
{
	var ret = escape(str);
	ret = ret.replace( /%20/g, '+' );

	return ret;
}

document.write('\
<div id="bs" style="position: relative; padding: 0; margin: 0; background-color: #ffffff; color: #000000; width: 190px; height: 42px;"/>\
	<img style="position: absolute; top: 0px; left: 0px; border: 0 none;" src="http://billiardsearch.net/extsb/images/190x42_searchbox.jpg" alt="BilliardSearch.net"/>\
	<form method="post" action="" target="_parent" style="margin: 0; padding: 0; position: absolute; top: 21px; left: 31px;" onsubmit="this.action=BILLIARDSEARCH_SEARCH_URL+\'?q=\'+billiardsearch_urlencode(this.q.value);">\
		<input id="bs-q" type="text" name="q" value="" style="font-size: 11px; width: 98px; height: 13px; border: 1px solid #3399ff; margin: 0; padding: 0 2px; position: absolute; top: 1px; left: 0px;"/>\
		<input type="hidden" name="src" value="extsb"/>\
		<input type="hidden" name="referer" value="'+location.href+'"/>\
		<input type="submit" value="Search" style="font-size: 9px; font-weight: bold; padding: 0 2px; margin: 0 0 0 2px; border: 1px outset #3399ff; background-color: #eeeeee; width: 46px; position: absolute; top: 0px; left: 107px;"/>\
	</form>\
</div>');
var input_q = document.getElementById('bs-q');
input_q.value = '';
if ( BILLIARDSEARCH_SEARCHBOX_FOCUS )
	input_q.focus();
//-->
