// JavaScript Document
//funcion para el menu lateral de inicio
<!--

//-->


  $(document).ready(function(){
	$("dt a:contains('Cotos de')").css({ "border-bottom-width":"1px", "border-bottom-style":"solid", "border-bottom-color":"#878787", "background-color": "transparent"});
	$("dt a:contains('Especies')").css({ "border-bottom-width":"1px", "border-bottom-style":"solid", "border-bottom-color":"#878787", "background-color": "transparent"});
	$("dt a:contains('cnicas')").css({ "border-bottom-width":"1px", "border-bottom-style":"solid", "border-bottom-color":"#878787", "background-color": "transparent"});
	$("dt a:contains('Temas')").css({ "border-top-color":"#f4ac7f", "border-bottom-width":"1px", "border-bottom-style":"solid", "border-bottom-color":"#d9d9d9" , "background-color":"#d9d9d9"});
	$("#cotos, #especies, #tecnicas").hide();
	$("#temas").fadeIn("slow");
	
	$("dt a:contains('Temas')").click(function () { 
      $("dt a:contains('Cotos de')").css({ "border-top-color":"#ffffff", "border-bottom-width":"1px", "border-bottom-style":"solid", "border-bottom-color":"#878787", "background-color": "transparent"});
	  $("dt a:contains('Temas')").css({ "border-top-color":"#f4ac7f", "border-bottom-width":"1px", "border-bottom-style":"solid", "border-bottom-color":"#d9d9d9" , "background-color":"#d9d9d9"});
	  $("dt a:contains('Especies')").css({ "border-top-color":"#ffffff", "border-bottom-width":"1px", "border-bottom-style":"solid", "border-bottom-color":"#878787", "background-color": "transparent"});
	  $("dt a:contains('cnicas')").css({ "border-top-color":"#ffffff", "border-bottom-width":"1px", "border-bottom-style":"solid", "border-bottom-color":"#878787", "background-color": "transparent"}); 
	  $("#cotos, #especies, #tecnicas").fadeOut("fast");
	  $("#temas").fadeIn("slow");
	  
    });
	
	$("dt a:contains('Cotos de')").click(function () { 
      $("dt a:contains('Temas')").css({ "border-top-color":"#ffffff", "border-bottom-width":"1px", "border-bottom-style":"solid", "border-bottom-color":"#878787", "background-color": "transparent"});
	  $("dt a:contains('Cotos de')").css({ "border-top-color":"#f4ac7f", "border-bottom-width":"1px", "border-bottom-style":"solid", "border-bottom-color":"#d9d9d9" , "background-color":"#d9d9d9"});
	$("dt a:contains('Especies')").css({ "border-top-color":"#ffffff", "border-bottom-width":"1px", "border-bottom-style":"solid", "border-bottom-color":"#878787", "background-color": "transparent"});
	$("dt a:contains('cnicas')").css({ "border-top-color":"#ffffff", "border-bottom-width":"1px", "border-bottom-style":"solid", "border-bottom-color":"#878787", "background-color": "transparent"}); 
	$("#temas, #especies, #tecnicas").fadeOut("fast");
	$("#cotos").fadeIn("slow");
    });
	
	$("dt a:contains('Especies')").click(function () { 
      $("dt a:contains('Temas')").css({ "border-top-color":"#ffffff", "border-bottom-width":"1px", "border-bottom-style":"solid", "border-bottom-color":"#878787", "background-color": "transparent"});
	  $("dt a:contains('Especies')").css({ "border-top-color":"#f4ac7f", "border-bottom-width":"1px", "border-bottom-style":"solid", "border-bottom-color":"#d9d9d9" , "background-color":"#d9d9d9"});
	$("dt a:contains('Cotos de')").css({ "border-top-color":"#ffffff", "border-bottom-width":"1px", "border-bottom-style":"solid", "border-bottom-color":"#878787", "background-color": "transparent"});
	$("dt a:contains('cnicas')").css({ "border-top-color":"#ffffff", "border-bottom-width":"1px", "border-bottom-style":"solid", "border-bottom-color":"#878787", "background-color": "transparent"}); 
	$("#temas, #cotos, #tecnicas").fadeOut("fast");
	$("#especies").fadeIn("slow");
    });
	
	$("dt a:contains('cnicas')").click(function () { 
      $("dt a:contains('Temas')").css({ "border-top-color":"#ffffff", "border-bottom-width":"1px", "border-bottom-style":"solid", "border-bottom-color":"#878787", "background-color": "transparent"});
	  $("dt a:contains('cnicas')").css({ "border-top-color":"#f4ac7f", "border-bottom-width":"1px", "border-bottom-style":"solid", "border-bottom-color":"#d9d9d9" , "background-color":"#d9d9d9"});
	$("dt a:contains('Especies')").css({ "border-top-color":"#ffffff", "border-bottom-width":"1px", "border-bottom-style":"solid", "border-bottom-color":"#878787", "background-color": "transparent"});
	$("dt a:contains('Cotos de')").css({ "border-top-color":"#ffffff", "border-bottom-width":"1px", "border-bottom-style":"solid", "border-bottom-color":"#878787", "background-color": "transparent"}); 
	$("#temas, #cotos, #especies").fadeOut("fast");
	$("#tecnicas").fadeIn("slow");
    });
					 
  });


// Mauricio Escobar, 30/08/00. Validacion de campos sin usar expresiones regulares.
//
//Este script y otros muchos pueden
//descarse on-line de forma gratuita
//en El Código: www.elcodigo.net

function ValidaCampo(campo, caract_extra, nulo) {
  
  var ubicacion
  var enter = "\n"
  var caracteres = "abcdefghijklmnopqrstuvwxyzñ1234567890 ABCDEFGHIJKLMNOPQRSTUVWXYZÑáéíóúÁÉÍÓÚ" + String.fromCharCode(13) + enter + caract_extra

  var contador = 0
  for (var i=0; i < campo.length; i++) {
    ubicacion = campo.substring(i, i + 1)
    if (caracteres.indexOf(ubicacion) != -1) {
      contador++
    } else {
      alert("ERROR: No se acepta el caracter '" + ubicacion + "'.")
      return false
    }
}
  }

<!--
window.onload=montre;
function montre(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}