I wrote a post recently about using the google ajax search api in wordpress. Turned out it is a simple matter of putting the javascript in the header of the template, adding the onload function to the body tag and popping the div into a page or a post or even into the template.
I’ve set up a page here where you can see it in action.
