function addEngine(name,ico,cat,type)
{
    if ((typeof window.sidebar == "object") && (typeof window.sidebar.addSearchEngine == "function")) { 
        window.sidebar.addSearchEngine(
            "http://www.hondoogle.com/"+name,
            ico, name, cat
        );
    } else {
        alert("Sorry, you need a Mozilla-based browser to install a search plugin.");
    } 
}

function addEngineIE(theUrl)
{
	window.external.AddSearchProvider(theUrl);
	// could be checking for errors and such, but MS-users are used to 
	// dirty error checking :-)
}
