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

/* Write box styles */
document.write('<style type="text/css" title="text/css">');
document.write('BODY UL#smTab * { line-height: 12px; font-weight: normal; font-size: 9px; font-family: Arial; font-style: normal; font-variant: normal; } #smBox { width: 160px; height: 132px; background-image: url(http://www.law.com/images/design/search/widget/background_2.gif); background-repeat: no-repeat; text-align: center; padding: 8px 0 0 0; } #smTab { margin: 0; list-style: none; padding: 0 0 0 10px; } #smTab LI { float: left; height: 12px; padding: 1px 0 1px 0; } #smTab LI SPAN A { color: #000; text-decoration: none; margin: 0; } .smnorm { background-color: #EEEFFB; } .smsel { background-color: #C3CCD5; } .smsfrow { margin: 0; padding: 0 0 0 10px; float: left; clear: both; } .smtextbox { width: 138px; height: 20px; vertical-align: top; margin: -1px 0 3px 0; padding: 0; border-color: #C7CDDB; border-width: 1px; border-style: solid; } .smburow { float: left; text-align: center; width: 160px; height: 28px; display: table; position: relative; overflow:hidden; } #smButton { background-image: url(http://www.law.com/images/design/search/widget/button_stacked_2.gif); background-repeat: no-repeat; background-position: 0 0; height: 20px; width: 52px; display: block; margin: auto; position: relative; top: -50% } #smButton:hover {background-position:0% -20px;}');
document.write('</style>');
/* Write box styles */

/* Get the tab elements */
smd=document;
function smGetObj(id){
	var i,x;
	if(!(x=smd[id])&&smd.all)x=smd.all[id];
  	for (i=0;!x&&i<smd.forms.length;i++) x=smd.forms[i][id];
  	if(!x && smd.getElementById) x=smd.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="smSearchForm" id="smsf1" target="_top">');
document.write('<img src="http://www.law.com/images/design/search/widget/logo_2.gif" alt="" width="138" height="49" border="0" />');
document.write('<ul id="smTab">');
document.write('<li id="smt1" class="smnorm" style="border-right:1px solid #666; width: 82px;"><span><a href="#" id=smtlnk1 tabindex=0 onclick="if(smPgLoaded)smymst(this,1); return false;">Law.com&nbsp;Network</a></span></li>');
document.write('<li id="smt2" class="smsel" style="border-left:1px solid #666; border-right:1px solid #666; width: 55px;"><span><a href="#" id=smtlnk2 tabindex=1 onclick="if(smPgLoaded)smymst(this,2); return false;">Legal&nbsp;Web</a></span></li>');
document.write('</ul><!-- smTab -->');
document.write('<div class="smsfrow"><input type="text" class="smtextbox" name="Ntt" /></div>');
document.write('<div class="smburow"><div style="#position: absolute;#top: 50%;#left: 0;display: table-cell; vertical-align: middle; width:160px;"><a href="#" id="smButton" onclick="document.smSearchForm.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 smTB=2; // Set to the t# for the span that's selected by default

function smymst(o,i){
	if(i==smTB)return false;
	fm=smd.smSearchForm;
	fm.cx.value=tabs[i-1][0];

	smGetObj('smt'+i).className="smsel";
	smGetObj('smt'+smTB).className="smnorm";

	if(smTB-1>0&&(smTB-1)!=i){
		smGetObj('smt'+(smTB-1)).className="smnorm";
	}
	if(i-1>0){
		smGetObj('smt'+(i-1)).className="smnorm";
	}
	smTB=i;
}
function sminit() {
  	smPgLoaded=1;
	smd.smSearchForm.Ntt.focus();
}
sminit();
/* Initialization script */

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