<!--

function registrarBusquedaBarra (name, rootname)
{
  var cat="Academic";
  if (tieneBarraBusquedas()) {
    window.sidebar.addSearchEngine(
      rootname + ".src",
      rootname + ".png",
      name, cat);
  } else {
    alert("You will need a Mozilla based browser to install a search plugin.");
  }
}

function tieneBarraBusquedas()
{
  return ((typeof window.sidebar == "object") && (typeof window.sidebar.addSearchEngine == "function"));
}

function generarEnlaceRegistro (nombre, root, nombre_fichero, texto)
{
	if (tieneBarraBusquedas()) {
		if (texto == null || texto == '') {
			texto = "Registrar en la barra de busquedas";
		}
		var enlace_registrar = 'javascript:registrarBusquedaBarra("' + nombre + '", "' + nombre_fichero + '")';
		document.write ('<p class="busqueda_mozilla">');
		document.write ("<a href='" + enlace_registrar + "'>");
		document.write ('<img src="' + root + '/img/iconos/firefox.gif' + '" alt="' + texto + '" />');
		document.write ("</a>");
		document.write (" ");
		document.write ("<a href='" + enlace_registrar + "'>");
		document.write (texto);
		document.write ("</a>");
		document.write ("</p>");
	}
}

//-->
