		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  *********************/
////////////////////////////////////////////////////////////////////////////////////////

/******** precargo imagenes*********/
c=-1;
precarga=new Array();
c++;precarga[c]=new Image(); precarga[c].src="imagenes/base_bot_a02_lapi_acti.gif";
c++;precarga[c]=new Image(); precarga[c].src="imagenes/base_bot_b02_mate_acti.gif";
c++;precarga[c]=new Image(); precarga[c].src="imagenes/base_bot_d02_souv_acti.gif";
c++;precarga[c]=new Image(); precarga[c].src="imagenes/base_bot_f01_empre_acti.gif";
c++;precarga[c]=new Image(); precarga[c].src="imagenes/base_bot_g01_clie_acti.gif";
c++;precarga[c]=new Image(); precarga[c].src="imagenes/base_bot_h01_cons_acti.gif";
c++;precarga[c]=new Image(); precarga[c].src="imagenes/base_bot_e02_rega_acti.gif";
c++;precarga[c]=new Image(); precarga[c].src="imagenes/base_bot_f01_empre_acti.gif";
c++;precarga[c]=new Image(); precarga[c].src="imagenes/base_bot_g01_clie_acti.gif";
c++;precarga[c]=new Image(); precarga[c].src="imagenes/base_bot_h01_cons_acti.gif";


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;

}

mbot=new Array(); //matriz que contiene todos los nombres y links de la botonera
mbot_link=new Array(); //matriz que contiene todos los nombres y links de la botonera
cont=new Array(); for (t=0;t<MAXIMO_NIVEL;t++) cont[t]=-2; //creo contador para matrices
posi_vie=0;
function carga (posi, nombre, valor_link){
	if (posi==posi_vie || posi<posi_vie){
		cont[posi]+=2;
	}else{
		cont[posi]=0; // reinicio contador para esa matriz
	}
	posi_vie=posi;
	armopos="mbot";
//	armopos_link="mbot_link";
	for (nivel=0;nivel<posi;nivel++){
		armopos+="["+(cont[nivel]+1)+"]";
	}
	

	posiNombre=armopos+"["+(cont[posi])+"]";
	posiLink=armopos+"["+(cont[posi]+1)+"]";
//	alert(posiNombre);	
	pongo_nombre(posiNombre,nombre);
	if (valor_link) pongo_link(posiLink,valor_link);
	else pongo_link(posiLink);
	
}

function pongo_nombre(posi, nombre){
	eval (posi+"='"+nombre+"'");
}

function pongo_link(posi, valor_link){
	if (valor_link) {
		eval (posi+"='"+valor_link+"'");
	}else{
		eval (posi+"=new Array()");
	}
}

/****** FUNCIONES DE APARICION Y DESAPARICION *//////////
estado=new Array();for (t=0;t<MAXIMO_NIVEL;t++) estado[t]=0;
function saca_retardo(menu,nivel,tiempo){
		if (tiempo){
			setTimeout("saca_menu('"+menu.id+"',"+nivel+")",tiempo);
		}else{	
			setTimeout("saca_menu('"+menu.id+"',"+nivel+")",400);
		}
}
function saca_menu(nombre,nivel){
//	if (estado[nivel]==0){
		tomo=eval(nombre+".style");
//		posicion.style.top=tomo.pixelTop+tomo.pixelHeight;
		hacer=0;
		if (msie4){
			if (!(mousex>tomo.pixelLeft && mousex<tomo.pixelLeft+tomo.pixelWidth && mousey>tomo.pixelTop && mousey<tomo.pixelTop+tomo.pixelHeight)){	
				hacer=1
//				alert(msie4);
			}
		}else{
			lfir=parseInt(tomo.left);wfir=parseInt(tomo.width);
			tfir=parseInt(tomo.top);hfir=parseInt(tomo.height);
			if (!(mousex>lfir && mousex<lfir+wfir && mousey>tfir && mousey<tfir+hfir)){	
				hacer=1;
			}		
		}	
		if (hacer){	
			//verifico si existe alguna botonera en el nivel superior activa
			activos=0;
			for (t=nivel+1; t<MAXIMO_NIVEL; t++){
				if (estado[t]==1) {activos=1;}
			}

			//si esta activa alguna, entonces no desaparesco
			if (activos){
				estado[nivel]=1;
				tomo.visibility='visible';
			}else{
				if (sobreBotoneras==0){
					estado[nivel]=0;
					tomo.visibility='hidden';
			
					if (nivel>0){
						saca_retardo(eval("botolayer"+(nivel-1)),nivel-1,100)
					}
				}			
			}		
		}else{
			estado[nivel]=1;
		}
		
		
//	}
}
function pone_retardo(menu,nivel){
	setTimeout("pone_menu('"+menu.id+"',"+nivel+")",0);
}
function pone_menu(nombre,nivel){

////// ANTES DE ARMAR LA BOTONERA DEBO PONER Y SACAR OTRAS BOTONERAS

//		posicion.style.top=tomo.pixelTop+tomo.pixelHeight;
	//PRIMERO: Oculto todas las botoneras de los nivels de arriba, salvo la inmediata
	tomo=eval(nombre+".style");
	hacer=0;
	if (msie4){
		if ((mousex>tomo.pixelLeft+15 && mousex<tomo.pixelLeft+tomo.pixelWidth-15 && mousey>tomo.pixelTop && mousey<tomo.pixelTop+tomo.pixelHeight)){	
			hacer=1;
		}
	}else{
		lfir=parseInt(tomo.left);wfir=parseInt(tomo.width);
		tfir=parseInt(tomo.top);hfir=parseInt(tomo.height);
		if ((mousex>lfir+15 && mousex<lfir+wfir-15 && mousey>tfir && mousey<tfir+hfir)){	
			hacer=1;
		}
	}
	if (hacer){
		nivel_comienzo=nivel+1;
		if (sub_botonera_activa==1) nivel_comienzo=nivel+2;
		for (t=nivel_comienzo; t<MAXIMO_NIVEL; t++){
			tomo=eval("botolayer"+t+".style");
			estado[t]=0;
			tomo.visibility='hidden';
		}
		//SEGUNDO: Pongo todas las botoneras de los niveles inferiores
		for (t=nivel; t>=0; t--){
			tomo=eval("botolayer"+t+".style");
			estado[t]=1;
			tomo.visibility='visible';

		}
	}
}




//creo las botoneras (layers)
function armo_botoneras_inicio(){
	ancho_pagina=document.body.clientWidth;
	diferencia_botoneras=((ancho_pagina)-789)/2;if (diferencia_botoneras<0) diferencia_botoneras=0;
	for (t=0; t<MAXIMO_NIVEL; t++){
		b=''
		b+='<div id="botolayer'+t+'" onMouseOver="pone_retardo(this,'+t+')" onMouseOut="saca_retardo(this,'+t+')" style="position:absolute; left:'+(150+(ANCHOBOTONERA*t)+diferencia_botoneras)+'px; top:160px; width:'+(ANCHOBOTONERA+1)+'px; height:75px; z-index:'+t+'; visibility: hidden;" class="botoneras">';
		b+='      </div>';
		document.write(b);
	}
}

function armo_botoneras_refresca(){
	ancho_pagina=document.body.clientWidth;
	diferencia_botoneras=((ancho_pagina)-789)/2;if (diferencia_botoneras<0) diferencia_botoneras=0;
	for (t=0; t<MAXIMO_NIVEL; t++){
		eval("botolayer"+t).style.left=(150+(120*t)+diferencia_botoneras);
	}
}

function armo_botonera(nivel, posicion, numeroItem, comienzoBotonera){
	//si ya fue armada esta misma botonera, no la vuelvo a armar
	
	if (nivel==0) {
		for (t=0; t<MAXIMO_NIVEL; t++){
			estado[t]=0;
			eval("botolayer"+t).style.visibility='hidden';			
		}
	}
	if (nivel_vie!=nivel || posicion!=posicion_vie){
		estado[nivel]=1;
	
		b=''
		//b+='<div id="Layer2" style="position:absolute; left:252px; top:160px; width:121px; height:75px; z-index:1">        '
		b+='          <table width="100%%" height="100%" border="0" cellpadding="1" cellspacing="0" bgcolor="#6D8496">'
		b+='            <tr>'
		b+='              <td width="100%" height="100%"><table width="100%%" border="0" cellpadding="7" cellspacing="0" bgcolor="#F7F8FA">'
		b+='                <tr>'
		b+='                  <td><table width="100%%" height="100%" border="0" cellpadding="2" cellspacing="0" class="botonera">'
		contItem=0;
		for (t=0;t<eval(posicion+".length");t+=2){
			b+='                    <tr>'
			valor_link=eval(posicion+"["+(t+1)+"]");
			if (t!=0){
				b+='                      <td><div align="center"><img src="../imagenes/base_botb_linea.gif" width="90%" height="1"></div>'
				b+='                      </td>'
				b+='                    </tr>'
			}
			if (valor_link.constructor==Array) {
			//alert("array"+valor_link);
			
				b+='                      <td onMouseOver="this.className=&quot;sobreBot&quot;;sub_botonera_activa=1;armo_botonera('+(nivel+1)+', &quot;'+posicion+"["+(t+1)+"]"+'&quot;,'+contItem+')" onMouseOut="this.className=&quot;sobreNoBot&quot;" ><p>'+eval(posicion+"["+t+"]")+' <img src="../imagenes/nuevo_punto.gif" width="6" height="5"></p>'
				b+='                      </td>'
				b+='                    </tr>'
				b+='                    <tr>'
		
			}else{
		
				b+='                      <td onMouseOver="this.className=&quot;sobreBot&quot;;sub_botonera_activa=0;nivel_vie=-1" onMouseOut="this.className=&quot;sobreNoBot&quot;" onClick="location.href=&quot;'+valor_link+'&quot;" style="cursor:hand"><p>'+eval(posicion+"["+t+"]")+'</p>'
				b+='                      </td>'
				b+='                    </tr>'
				b+='                    <tr>'
		
			}	
			contItem++;
		}
		b+='                  </table></td>'
		b+='                </tr>'
		b+='              </table></td>'
		b+='            </tr>'
		b+='          </table>'
		
		eval("botolayer"+nivel).innerHTML=b;
		if (msie4){
			if (numeroItem>=0){
				eval("botolayer"+nivel).style.top=eval("botolayer"+(nivel-1)).style.pixelTop+(numeroItem*23);
			}else{
				eval("botolayer"+nivel).style.top=comienzoBotonera;
			}
		}else{
			if (numeroItem>=0){
				eval("botolayer"+nivel).style.top=parseInt(eval("botolayer"+(nivel-1)).style.top)+(numeroItem*23);
			}else{
				eval("botolayer"+nivel).style.top=comienzoBotonera;
			}
		}		
		eval("botolayer"+nivel).style.height=eval(posicion+".length")*11.5+11;
		eval("botolayer"+nivel).style.visibility='visible';
		nivel_vie=nivel;
		posicion_vie=posicion;
	}
}
///////////////////////////////////////////////////////////

  // 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){
	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){
	tabla=eval(nombre + ".style");
	if (tabla.display=="block") {
		tabla.display="none";
	}
	else{
		tabla.display="block";
	}
}

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";
}



//-->



