function hem_ffsearchload() {
  a = document.createElement('script');
  a.setAttribute('type','text/javascript');
  a.setAttribute('src',hem_ffscript);
  document.getElementsByTagName('head')[0].appendChild(a);
  
  setTimeout("hem_ffsearchload_FFSuggest();",200);
  
  document.getElementById("ffquery").onclick = "";  
}

function hem_ffsearchload_FFSuggest() {
  if(typeof(window.FFSuggest) == "function") {
    suggest	= new FFSuggest();
    formname		= "search_word_inc";
    queryParamName	= "query";
    divLayername	= "suggestLayer";
    instanceName	= "suggest";
    setTimeout("hem_ffsearchload_ffsearchform();",100);
  } else {
    setTimeout("hem_ffsearchload_FFSuggest();",200);  
  }
}

// kopiert aus /WebRoot/Store/ffsearchform.js
function hem_ffsearchload_ffsearchform() {
                    suggest.init(searchURL, formname, queryParamName, divLayername, instanceName, debugMode);
                    document.onmousedown = suggest.hideLayerOutsideCall;

                        var Div = document.getElementById("suggestLayer");
                        Div.parentNode.removeChild(Div);
                        document.body.appendChild(Div);
                        setStyle("div.suggestLayer", "font-family:Arial;position:absolute;display:none;padding:0px;margin:0px;z-index:1000;background-color:white;background:transparent;opacity:.9;filter:alpha(opacity=90);");
                        setStyle("table.suggestLayer", "font-size:11px;width:1px;border:1px solid #000000;height:12px;background-color:white;color:#173553;cursor:pointer;");
                        setStyle("tr.suggestLayer", "height:12px;");
                        setStyle("td.suggestLayer", "padding: 0;height:12px;");
                        setStyle("tr.suggestHeader", "color:#173553;font-weight:normal;font-size:10px;");
                        setStyle("tr.suggestHeader td", "border-bottom: 1px solid #5C637D; padding: 3 3 3 5px");
                        setStyle("td.suggestTextQuery", "font-weight: bold; padding-top:2pm; padding-right:15px; padding-bottom:2px; padding-left:10px;");
                        setStyle("span.suggestTextQueryTyped", "color: #5c7997; text-decoration: underline;");
                        setStyle("td.suggestTextType", "padding-top:2pm; padding-right:15px; padding-bottom:2px; padding-left:15px; width: 30%;");
                        setStyle("td.suggestTextAmount", "padding-top:2pm; padding-right:15px; padding-bottom:2px; padding-left:15px; width: 30%; text-align: right;");
                        setStyle("tr.suggestRow", "padding-top:2pm; padding-right:2px; padding-bottom:2px; padding-left:2px;background-color:#FCFCFC;");
                        setStyle("tr.suggestHighlight", "color:#FCFCFC; background-color:#D9DCDF;");
                        setStyle("tr.suggestHighlight span.suggestTextQueryTyped", "color: #173553;");
                        setStyle("td.suggestFooter", "height:25px; border-top:solid 1px #5C637D; font-size:9px; color: #173553; background-color: #FCFCFC; background-image: url(\"/WebRoot/Store/SF/logo_fact-finder_suggest.gif\"); background-repeat: no-repeat; background-position: right;");
                        var Offset;
                        Offset = $("#ffquery").offset();
                        Offset.top = Offset.top + $("#ffquery").outerHeight();
                        $("#suggestLayer").css(Offset);
                        if (!document.getElementById("overSuggestLayer")) {
                            var suggestLayer = document.getElementById("suggestLayer");
                            var previous = suggestLayer.previousSibling;
                            var iframe = document.createElement("iframe");
                            iframe.style.position ="absolute";
                            iframe.style.zIndex="4";
                            iframe.src="javascript:'<html></html>';";
                            iframe.id="overSuggestLayer";
                            iframe.scrolling = "no";
                            iframe.frameBorder ="0";
                            document.body.insertBefore(iframe, suggestLayer);
                        }
                        $("#overSuggestLayer").css($("#suggestLayer").offset());
                        $("#overSuggestLayer").width($("#suggestLayer").width());
                        $("#overSuggestLayer").height($("#suggestLayer").height());

				// IE7
    				if (document.getElementById("overSuggestLayer")
				&& $.browser.msie && window.XMLHttpRequest) {
					var overSuggestLayer = document.getElementById ("overSuggestLayer");
					overSuggestLayer.parentNode.removeChild(overSuggestLayer);
				}
				  document.getElementById("ffquery").focus();
}