function zoomText(Accion,Elemento)
{
	//inicializacion de variables y parámetros 
	var obj=document.getElementById(Elemento);
	var max = 200 //tamaño máximo del fontSize
	var min = 70 //tamaño mínimo del fontSize
	
	if (obj.style.fontSize=="")
	{
	obj.style.fontSize="100%";
	}
	actual=parseInt(obj.style.fontSize); //valor actual del tamaño del texto 
	incremento=10;// el valor del incremento o decremento en el tamaño 
	
	//accion sobre el texto 
	if( Accion=="reestablecer" )
	{
	obj.style.fontSize="100%"
	}
	if( Accion=="aumentar" && ((actual+incremento) <= max ))
	{
	valor=actual+incremento;
	obj.style.fontSize=valor+"%"
	}
	if( Accion=="disminuir" && ((actual+incremento) >= min ))
	{
	valor=actual-incremento;
	obj.style.fontSize=valor+"%"
	}
} 

if ( document.images )
{
  inicio_on = new Image ( );
  inicio_off = new Image ( );
  laempresa_on = new Image ( );
  laempresa_off = new Image ( );
  catalogo_on = new Image ( );
  catalogo_off = new Image ( );
  servicios_on = new Image ( );
  servicios_off = new Image ( );
  ubicacion_on = new Image ( );
  ubicacion_off = new Image ( );
  contacto_on = new Image ( );
  contacto_off = new Image ( );
  
  inicio_on.src = "images/menu/inicio_on.jpg";
	inicio_off.src = "images/menu/inicio_off.jpg";
  laempresa_on.src = "images/menu/laempresa_on.jpg";
	laempresa_off.src = "images/menu/laempresa_off.jpg";
  catalogo_on.src = "images/menu/catalogo_on.jpg";
	catalogo_off.src = "images/menu/catalogo_off.jpg";
  servicios_on.src = "images/menu/servicios_on.jpg";
	servicios_off.src = "images/menu/servicios_off.jpg";
  ubicacion_on.src = "images/menu/ubicacion_on.jpg";
	ubicacion_off.src = "images/menu/ubicacion_off.jpg";
  contacto_on.src = "images/menu/contacto_on.jpg";
	contacto_off.src = "images/menu/contacto_off.jpg";
}

function button_on ( imgName )
{
  if ( document.images )
  {
    butOn = eval ( imgName + "_on.src" );
    document[imgName].src = butOn;
  }
}

function button_off ( imgName )
{
  if ( document.images )
  {
    butOff = eval ( imgName + "_off.src" );
    document[imgName].src = butOff;
  }
}

function favoritos()
{        
	if ((navigator.appName=="Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>=4))
  {
		window.external.addFavorite('http://www.pulido-cardoso.com','Pulido y Cardoso');
  }
  else
  { 
    if(navigator.appName == "Netscape") 
      alert("Presione Crtl+D para agregar este sitio en sus Bookmarks"); 
  }
}
			
function high(which2)
{
	theobject=which2;
	highlighting=setInterval("highlightit(theobject)",90);
	
}

function low(which2)
{
	clearInterval(highlighting);
	which2.filters.alpha.opacity=90;
}

function highlightit(cur2)
{
	if(cur2.filters.alpha.opacity<100)
		cur2.filters.alpha.opacity+=10
	else if(window.highlighting)
		clearInterval(highlighting)
}	
