/* Need to keep the everything inside the DIV */
document.write('<div id="bgBox">');

/* Write box styles */
document.write('<style type="text/css" title="text/css">');
document.write('BODY UL#bgTab * { line-height: 12px; font-weight: normal; font-size: 9px; font-family: Arial; font-style: normal; font-variant: normal; } #bgBox { width: 190px; height: 148px; background-image: url(http://www.law.com/images/design/search/widget/background.gif); background-repeat: no-repeat; text-align: center; padding: 10px 0 0 0; } #bgTab { margin: 0; list-style: none; padding: 0 0 0 15px; } #bgTab LI { float: left; height: 12px; padding: 1px 0 1px 0; } #bgTab LI SPAN A { color: #000; text-decoration: none; margin: 0; } .bgnorm { background-color: #EEEFFB; } .bgsel { background-color: #C3CCD5; } .bgsfrow { margin: 0; padding: 0 0 0 15px; } .bgtextbox { float: left; width: 157px; height: 20px; vertical-align: top; margin: -1px 0 0 0; padding: 0; border-color: #C7CDDB; border-width: 1px; border-style: solid; } .bgburow { float: left; text-align: center; width: 190px; height: 34px; display: table; position: relative; overflow:hidden; } #bgButton { background-image: url(http://www.law.com/images/design/search/widget/button_stacked.gif); background-repeat: no-repeat; background-position: 0 0; height: 24px; width: 60px; display: block; margin: auto; position: relative; top: -50% } #bgButton:hover {background-position:0% -24px;}');
document.write('</style>');
/* Write box styles */

/* Get the tab elements */
bgd=document;
function bgGetObj(id){
	var i,x;
	if(!(x=bgd[id])&&bgd.all)x=bgd.all[id];
  	for (i=0;!x&&i<bgd.forms.length;i++) x=bgd.forms[i][id];
  	if(!x && bgd.getElementById) x=bgd.getElementById(id);
  return x;
}
/* Get the tab elements */

/* Write the box HTML */
document.write('<form action="http://quest.law.com/Search/Search.do" method="GET" name="bgSearchForm" id="bgsf1" target="_top">');
document.write('<img src="http://www.law.com/images/design/search/widget/logo.gif" alt="" width="162" height="57" border="0" />');
document.write('<ul id="bgTab">');
document.write('<li id="bgt1" class="bgnorm" style="border-right:1px solid #666; width: 89px;"><span><a href="#" id=bgtlnk1 tabindex=0 onclick="if(bgPgLoaded)bgymst(this,1); return false;">Law.com&nbsp;Network</a></span></li>');
document.write('<li id="bgt2" class="bgsel" style="border-left:1px solid #666; border-right:1px solid #666; width: 67px;"><span><a href="#" id=bgtlnk2 tabindex=1 onclick="if(bgPgLoaded)bgymst(this,2); return false;">Legal&nbsp;Web</a></span></li>');
document.write('</ul><!-- Tab -->');
document.write('<div class="bgsfrow"><input type="text" class="bgtextbox" name="Ntt" /></div>');
document.write('<div class="bgburow"><div style="#position: absolute;#top: 50%;#left: 0;display: table-cell; vertical-align: middle; width:190px;"><a href="#" id="bgButton" onclick="document.bgSearchForm.submit();"></a></div></div>');
document.write('<input type="hidden" name="Nty" value="1">');
document.write('<input type="hidden" name="N" value="0">');
document.write('<input type="hidden" name="Ntk" value="SI_All">');
document.write('<input type="hidden" name="cx" value="1" />');
document.write('<input type="hidden" name="sortVar" value="1" />');
document.write('</form>');
/* Write the box HTML */

/* Function to handle the tab selection */
var tabs = new Array();
	tabs[0] = Array('0');
	tabs[1] = Array('1');
var bgTB=2; // Set to the t# for the span that's selected by default

function bgymst(o,i){
	if(i==bgTB)return false;
	fm=bgd.bgSearchForm;
	fm.cx.value=tabs[i-1][0];

	bgGetObj('bgt'+i).className="bgsel";
	bgGetObj('bgt'+bgTB).className="bgnorm";

	if(bgTB-1>0&&(bgTB-1)!=i){
		bgGetObj('bgt'+(bgTB-1)).className="bgnorm";
	}
	if(i-1>0){
		bgGetObj('bgt'+(i-1)).className="bgnorm";
	}
	bgTB=i;
}
/* Function to handle the tab selection */

/* Initialization script */
function bginit() {
  	bgPgLoaded=1;
/*	bgd.SearchForm.Ntt.focus();  This object will force focus on the search box when the page loads */
}
bginit();
/* Initialization script */

document.write('</div><!-- bgBox -->');
/* Need to keep the everything inside the DIV */
