/* ************* Tamaño fuentes ************** */
var factual = 14;

function aumentarFontSize(texto){
	if (factual < 20 ){
		factual++; 
		setFuentes(factual,texto);
	}
}

function reducirFontSize(texto){
	if (factual > 12){
		factual--;
		setFuentes(factual,texto);
	}
}
function setFuentes(fontactual,idtexto){
	var lay = document.getElementById(idtexto);
	try{
		lay.style.fontSize = (fontactual + 1) + "px";
		lay.style.lineHeight = (fontactual + 4) + "px";
	}catch(e){
		//alert(e.description  + " | " + fontactual + " | " + idtexto)
	}
}
/* ************** Agregar a Favoritos ****************** */
function add() {
if (window.sidebar&&window.sidebar.addPanel)
window.sidebar.addPanel("Bienvenidos al Valle de Punilla","http://www.vallepunilla.com.ar","");
else
window.external.AddFavorite("http://www.vallepunilla.com.ar","Bienvenidos al Valle de Punilla")
}


/* ******************* Fecha ************************** */
/* ======== Array de los meses ============ */
var monthNames = new makeArray(12);
monthNames[0] = "Enero";
monthNames[1] = "Febrero";
monthNames[2] = "Marzo";
monthNames[3] = "Abril";
monthNames[4] = "Mayo";
monthNames[5] = "Junio";
monthNames[6] = "Julio";
monthNames[7] = "Agosto";
monthNames[8] = "Septiembre";
monthNames[9] = "Octubre";
monthNames[10] = "Noviembre";
monthNames[11] = "Diciembre";

/* ========= Array de los días ============ */
var dayNames = new makeArray(7);
dayNames[0] = "Domingo";
dayNames[1] = "Lunes";
dayNames[2] = "Martes";
dayNames[3] = "Mi&eacute;rcoles";
dayNames[4] = "Jueves";
dayNames[5] = "Viernes";
dayNames[6] = "S&aacute;bado";

var now = new Date();
var year = now.getYear();

if (year < 2000) year = year + 1900;

function makeArray(len)
{
for (var i = 0; i < len; i++) this[i] = null;
this.length = len;
}

/* ************************** Verifica formularios ********************** */
/* ======= Verifica los campos del formulario de correo de los clientes =======*/
function ValidaCampoCliente(miform) {
  if (miform.elnombre.value == "") {
    alert("ERROR: El campo NOMBRE no puede estar vacío")
    return false
  }
  if (miform.elcorreo.value == "") {
    alert("ERROR: El campo E-MAIL no puede estar vacío")
    return false
  }
  if (miform.elmensaje.value == "") {
    alert("ERROR: El campo MENSAJE no puede estar vacío")
    return false
  }


  var ubicacion
  var enter = "\n"
  var caracteres = "abcdefghijklmnopqrstuvwxyzñ1234567890 ABCDEFGHIJKLMNOPQRSTUVWXYZÑáéíóúÁÉÍÓÚ.,()-" + String.fromCharCode(13) + enter

  var contador = 0
  for (var i=0; i < miform.elnombre.value.length; i++) {
    ubicacion = miform.elnombre.value.substring(i, i + 1)
    if (caracteres.indexOf(ubicacion) != -1) {
      contador++
    } else {
      alert("ERROR: No se acepta el caracter '" + ubicacion + "' en el campo NOMBRE.")
      return false
    }
  }


  contador = 0
  for (var i=0; i < miform.elmensaje.value.length; i++) {
    ubicacion = miform.elmensaje.value.substring(i, i + 1)
    if (caracteres.indexOf(ubicacion) != -1) {
      contador++
    } else {
      alert("ERROR: No se acepta el caracter '" + ubicacion + "' en el campo MENSAJE.")
      return false
    }
  }
}



/* ======= Convierte los "enter" en etiquetas <br> =======*/
function ConvertBR(input) {
var output = "";
for (var i = 0; i < input.length; i++) {
if ((input.charCodeAt(i) == 13) && (input.charCodeAt(i + 1) == 10)) {
i++;
output += "<BR>";
} else {
output += input.charAt(i);
   }
}
return output;
}



<!-- Hack para hacer las imagenes PNG transparentes en Internet Explorer 5, 6 y anteriores -->


function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.
{
  var arVersion = navigator.appVersion.split("MSIE")
  var version = parseFloat(arVersion[1])
  if ((version >= 5.5) && (document.body.filters))
  {
     for(var i=0; i<document.images.length; i++)
     {
        var img = document.images[i]
        var imgName = img.src.toUpperCase()
        if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
        {
           var imgID = (img.id) ? "id='" + img.id + "' " : ""
           var imgClass = (img.className) ? "class='" + img.className + "' " : ""
           var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
           var imgStyle = "display:inline-block;" + img.style.cssText
           if (img.align == "left") imgStyle = "float:left;" + imgStyle
           if (img.align == "right") imgStyle = "float:right;" + imgStyle
           if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
           var strNewHTML = "<span " + imgID + imgClass + imgTitle
           + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
           + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
           + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
           img.outerHTML = strNewHTML
           i = i-1
        }
     }
  }
}
window.attachEvent("onload", correctPNG);


function ocultar(nombreCapa){
	
document.getElementById(nombreCapa).style.visibility="hidden";
}