How can I move the location of the advanced search form? This has been giving me troubles for some time now. I am in the process of changing my search results page on my drupal 7 site. I have modified both the search-result and search-results template files to change how my results are displayed on the page. 

However I can't figure out how to move the placement of the advanced search form. It is driving me crazy. I have created my own "advanced search" button, and want to give it the dropdown functionality that the default "advanced search" link has.

I know that I can change the "node_form_search_form_alter" function from node.module to alter the guts of this form, but thats not what I want. I just want to place it on the screen somewhere else.

I can't for the life of me figure out how to do this. I have gone through every template file, and the advanced search form just seems to magically appear. Any help would be GREATLY appreciated. 

In the image below, you can see the default advanced search link, but I want to move it to my button that I have added, on the right of the page.
One option is the Advanced search block module which makes the advanced search form available as a configurable block. 


  Provides the advanced search form (normally displayed above search results) as a block. The block includes default values for the advanced search fields making it easy to refine searches.


From a brief glance at this module's code, it looks like it hides the default form and re-creates the advanced search form in a block.