diventa
document.getElementById('homeSearch').appendChild( this.layer);
poi cambia
while(oNode.tagName != "BODY") {
in
while(oNode.id && oNode.id!='homeSearch') {
sia in AutoSuggestControl.prototype.getLeft che in AutoSuggestControl.prototype.getTop
e setta nel css homeSearch a position:relative
ciao