		browserName = navigator.appName;
		browserVer = parseInt(navigator.appVersion);
		var msie4 = (browserName == "Microsoft Internet Explorer" && browserVer >= 4);
		if ((browserName == "Netscape" && browserVer >= 3) || msie4 || browserName=="Konqueror") {version = "n3";} else {version = "n2";}
			// Blurring links:
//alert(msie4)
<!--
/**************************  Botonera GS Soluciones Gráficas **************************/
/*******************  Desarrollo y Programación : Utopía Neuquén  *********************/
////////////////////////////////////////////////////////////////////////////////////////


MAXIMO_NIVEL=5; //cantidad de botoneras posibles
sub_botonera_activa=0;
nivel_vie=-1;
posicion_vie=0;
ANCHOBOTONERA=130;

var mousex;
var mousey;
function tomomouse(e){
	if (msie4)	{
		mousex = document.body.scrollLeft+event.clientX
		mousey = document.body.scrollTop+event.clientY
	}else{
        mousex = e.pageX
        mousey = e.pageY

	}
//	control.innerHTML="x="+mousex+"y="+mousey;

}

  // Example:
// alert( readCookie("Cookoliver") );
function readCookie(name)
{
  var cookieValue = "";
  var search = name + "=";
  if(document.cookie.length > 0)
  { 
    offset = document.cookie.indexOf(search);
    if (offset != -1)
    { 
      offset += search.length;
      end = document.cookie.indexOf(";", offset);
      if (end == -1) end = document.cookie.length;
      cookieValue = unescape(document.cookie.substring(offset, end))
    }
  }
  if (cookieValue=="NaN" || cookieValue==""){cookieValue=0;}
  return cookieValue;
}

// Ejemplo
// writeCookie("Cookoliver", "imagen23.jpg", 24);
// Stores the string "my name" in the cookie "myCookie" which expires after 24 hours.
function writeCookie(name, value, hours)
{
  var expire = "";
  if(hours != null)
  {
    expire = new Date((new Date()).getTime() + hours * 3600000);
    expire = "; expires=" + expire.toGMTString();
  }
  document.cookie = name + "=" + escape(value) + expire;
}


function cambia_ima() { //Modificacion de MM_swapImage  : no se modifica con el swap
	 var i,j=0,x,a=cambia_ima.arguments; 
  for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){x.src=a[i+2];}
}  




function toHex(dec) {
	var hexCharacters = "0123456789ABCDEF"
	if (dec < 0)
		return "00"
	if (dec > 255)
		return "FF"
	var i = Math.floor(dec / 16)
	var j = dec % 16
	return hexCharacters.charAt(i) + hexCharacters.charAt(j)
}
// funcion que manda variables a otra pagina
// ej: 
// <a href="javascript:pasarVariables('destino.html', 'var1,var2','senti de,verdad')">aqu&iacute;</a>
function pasarVariables(pagina, nombres, valores) {
       pagina +="?";
    nomVec = nombres.split(",");
    valores = valores.split(",");
	for (i=0; i<nomVec.length; i++)
      pagina += nomVec[i] + "=" + escape((valores[i]))+"&";
    pagina = pagina.substring(0,pagina.length-1);
//	alert (pagina);
	ancho=200;
	alto=200;
	Ventana=window.open(pagina,'foto','scrollbars=no,height='+alto+',left='+((screen.width/2)-(ancho/2))+',top='+((screen.height/2)-(alto/2))+',width='+ancho);
	Ventana.focus()
	
  }
 
function abre_pagina(ubicacion,nombre,parametros){
window.open(ubicacion,nombre,parametros);
}

function abre_publicidad(ubicacion,ancho,alto){
	if (!alto) {alto=screen.height-90;}
	if (!ancho) {ancho=650;}
	
	recursos=window.open(ubicacion,'recursos','scrollbars=yes,status=yes,height='+alto+',left='+((screen.width/2)-(ancho/2))+',top='+(((screen.height-20)-alto)/2-20)+',width='+ancho);
	recursos.focus();

	
}

function pongo_fecha(){  //funcion tomada del home de la DPIN
   mesarray=new Array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio","Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre");
   diaarray=new Array( "Domingo","Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado");
   hoy = new Date();
   dias = hoy.getDate();
   dia = hoy.getDay();
   mes = hoy.getMonth();
   mes=mesarray[mes];
   dia =diaarray[dia];
   anno = hoy.getYear();
   document.write(dia+" "+dias+" "+" de "+mes+" de "+anno);
}

function escribo_subtitulo(texto){
	if (parent.tituloSec!=null){
		parent.tituloSec.innerHTML=texto;
	}
}

function abre_foto_chicos(nombre,descripcion){
	if (descripcion){
		pasarVariables('vis_fotos_chicos.htm', 'archivo,descripcion', nombre+','+descripcion);
	}
	else{
		pasarVariables('vis_fotos_chicos.htm', 'archivo', nombre);
	}
}

function abre_foto(nombre,descripcion){
	descripcion=reemplazoCorchetes(descripcion);
	if (descripcion){
		pasarVariables('vis_fotos.htm', 'archivo,descripcion', nombre+','+descripcion);
	}
	else{
		pasarVariables('vis_fotos.htm', 'archivo', nombre);
	}
}
function va_contacto(){
	opener.location.href='contacto.php';
	close();
}

function despliega(nombre){
	$('#'+nombre).toggle("slow");	
}

sobre=0;
function muestraAlt(texto){
		mousex_b = document.body.scrollLeft+event.clientX
		mousey_b = document.body.scrollTop+event.clientY
		TextoAlt.style.visibility="visible";
		TextoAlt.style.left=mousex_b;
		TextoAlt.style.top=mousey_b+20;
		textoAltInterior.innerHTML='<div align="center"><font color="#006699" size="1" face="Arial, Helvetica, sans-serif">'+texto+'</font></div>'

}
function NoMuestraAlt(){
	TextoAlt.style.visibility="hidden";
}
// This function decodes the any string
// that's been encoded using URL encoding technique
function URLDecode(psEncodeString)
{
  // Create a regular expression to search all +s in the string
  var lsRegExp = /\+/g;
  // Return the decoded string
  return unescape(String(psEncodeString).replace(lsRegExp, " "));
}


// standart string replace functionality
function str_replace(haystack, needle, replacement) {
	var temp = haystack.split(needle);
	return temp.join(replacement);
}
 
// needle may be a regular expression
function str_replace_reg(haystack, needle, replacement) {
	var r = new RegExp(needle, 'g');
	return haystack.replace(r, replacement);
}	

function reemplazoCorchetes(texto){

	texto=str_replace(texto,"[","<");
	texto=str_replace(texto,"]",">");
	texto=str_replace(texto,"\n","<br>");
	return texto;
}


//-->



