// JavaScript Document
 
function zoomText(Accion,Elemento,Centro){
//inicializacion de variables y parámetros
var obj=document.getElementById(Elemento);
var centros=document.getElementById(Centro);

// var obj = (document.getElementById) ? document.getElementById(Elemento) : document.all(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%";
}
/*if (obj_centro.style.fontSize==""){
obj_centro.style.fontSize="80%";
}
*/
 

actual=parseInt(obj.style.fontSize); //valor actual del tamaño del texto
 
incremento=3;// el valor del incremento o decremento en el tamaño

//accion sobre el texto
if( Accion=="reestablecer" ){
obj.style.fontSize="100%";
centros.style.fontSize="80%";
 }
 
 
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+"%"
}
}
 
function cambiar (x,y) {
     document.images[x].src = "../imagenes/"+y;
 }

function volver_a (q,e) {
     document.images[q].src = "../imagenes/"+e;
///	 alert(q);
 }
 
function volver (q,e) {
     document.images[q].src = "../imagenes/"+e;
///	 alert(q);
 }
 
 function cambiar_index (x,y) {
     document.images[x].src = "imagenes/"+y;
 }

function volver_index (x,e) {
     document.images[x].src = "imagenes/"+e;
 }