var widget200 = '<div style="width:189px; *width:195px; height: 63px; *height: 68px; padding:5px 0 0 6px; overflow:hidden; background-color:#FFF; border:.1em solid #ccc; -moz-border-radius:.7em; -webkit-border-radius:.7em; font-family: Verdana, Arial, Helvetica, sans-serif; text-align:left;">'+

	'<a href="http://www.hospitalconnect.com" style="text-decoration:none;"><img src="http://www.hospitalconnect.com/util/vse/images/widget/logo_small.jpg" border="0" alt="Hospital Connect Search" /></a>'+
        
    '<form id="vse_search" name="vse_search" action="/search" method="get" style="margin:0;padding:0; height:17px;">'+
        
		'<input type="text" id="vse_q" name="q" style="color:#006; width:154px; font-size:11px; margin:3px 0; *margin:0; padding:1px; border:1px solid #ccc; border-right:0; float:left;" />'+
            
		'<input type="submit" style="border: 0; margin: 3px 0; *margin:0; padding: 0 0 1px 0; height:100%; width:21px; background-color: #fff; cursor: pointer; color: #ccc; font-family:Arial, Helvetica, sans-serif; font-size:9px; *font-size: 10px; font-weight: bold; float:left; border:1px solid #ccc; text-align:center;" name="vse_submit" id="vse_submit" value="GO" />'+
		
		'<input type="hidden" id="vse_tab" name="tab"/>'+
		
		'<input type="hidden" id="d" name="d"/>'+
            
	'</form>'+

	'<a href="/advanced-search" style="vertical-align:middle; margin:0; padding:0; color: #006; font-size: 10px; font-weight: bold;">Advanced Search</a>'+

'</div>';

function addWidget() {
	var widget200Loc = document.getElementById('AHA-VSE-WIDGET-200');
	if (widget200Loc) { 
	
		widget200Loc.innerHTML = widget200;
		
		try {
			var options = {
				script: "/util/vse/html/keywords.dhtml?",
				varname: "search_str",
				json: true,
				maxresults: 35,
				shownoresults: false
			};
			var as = new bsn.AutoSuggest('vse_q', options);
			fillSearchBar();// pre-fill the text field with the search query string
			addTab();// add the tab number value to the corresponding field.
			
		}
		catch (err) { }
		
	}
}

if (window.addEventListener) { window.addEventListener('load', addWidget, false); }
else { window.attachEvent('onload', addWidget); }//IE