drops a search box with configurable behavior into a div element