Used plain jquery for toggling the advanced search panel as BS collapse was behaving strangely (the animation would expand the panel far too low on the page).