function addSearchEngine(engineURL, iconURL, suggestedTitle, suggestedCategory){
	var msg="Přidání vyhledávacího pluginu selhalo - ";

	if((typeof window.sidebar == "object") && (typeof window.sidebar.addSearchEngine == "function")){
		if(engineURL == null || engineURL == ""){
			alert(msg + "nebyla zadána jeho URL.");
			return false;
		}
		if(iconURL == null || iconURL == ""){
			alert(msg + "nebyla zadána URL ikony.");
			return false;
		}
		if(engineURL.search(/^http:\/\//i) == -1 || engineURL.search(/\.src$/i) == -1){
			alert(msg + "nebyla zadána platná URL.");
			return false;
		}
		if(iconURL.search(/^http:\/\//i) == -1 || iconURL.search(/\.(gif|jpg|jpeg|png)$/i) == -1){
			alert(msg + " nebyla platná URL ikony.");
			return false;
		}
		if(suggestedTitle == null) suggestedTitle = "";
		if(suggestedCategory == null) suggestedCategory = "";
		window.sidebar.addSearchEngine(engineURL, iconURL, suggestedTitle, suggestedCategory);
	}else{
		alert("Váš prohlížeč nepodporuje tuto funkci. Zkuste Mozillu.");
	}
	return false;
}

function addProvider(url,adult) {
if (adult == "true") {
var confirmAdult = confirm("This search plugin points to a website which may contain adult content. By clicking 'OK' you confirm you are old enough and it is legal in your country of residence to view this type of content.")
if (confirmAdult) {

} else {
return;
}
}
try {
window.external.AddSearchProvider(url);
} catch (e) {
alert("Vyhledávací modul je dostupný jen pro Internet Explorer 7 a Mozilla Firefox 2");
return;
}
}
