/*
 *	baynote_validateSearchBox()
 *
 *	Determine if the service is available and show the search box if it is.
 */
function baynote_validateSearchBox(server, customerId, code) {
	var failsafeId = baynote_tag.getFailsafeResourceId();

	baynote_tag.server = server;
	baynote_tag.customerId = customerId;
	baynote_tag.code = code;

	if ((bnResourceManager != "undefined")
			&& (bnResourceManager != null)
			&& (typeof(failsafeId) != "undefined")
			&& (failsafeId != null)) {
		bnResourceManager.waitForResource(failsafeId,
			"baynote_showSearchBox()", 
			baynote_tag.getFailsafeResourceAddress(), 
			"img");
	}
}


/*
 *	baynote_showSearchBox()
 *
 *	Make the search box visible
 */
function baynote_showSearchBox() {
	if(document.getElementById("baynote_searchBox")) {
		(document.getElementById("baynote_searchBox")).style.display = "block";
	}
}
