
<!-- inicio

function ampliarSec01(){  

        ampliacion=imagen_ampliaSec01 + imagen_ordenSec01 + ".jpg"

	var pagina ="" +   
        "    <TITLE> Junta Profomento de la Semana Santa de ASTORGA </TITLE>  "+
        "    <BODY LEFTMARGIN='0' TOPMARGIN='0' MARGINWIDTH='0' MARGINHEIGHT='0'  "+
        "    ONBLUR='self.focus()' BGCOLOR='#000000'>  "+
        "    <CENTER>  "+
        "    <TABLE ALIGN='LEFT' CELLPADDING='0' CELLSPACING='0' HSPACE='0' VSPACE='0' BORDER='0'>  "+
        "      <TR>  "+
        "        <TD ALIGN='CENTER' VALIGN='TOP' BACKGROUND='../adminfotos/cargando.gif'>"+
        "      <A HREF='javascript:window.close();'>"+
        "<IMG SRC="+ampliacion+" ALT='Pulse aquí para Cerrar la Ventana.' WIDTH='640' HEIGHT='480' BORDER='0' NAME='imagenamplia'>" +        
        "</A>"+
        "        </TD>  "+
        "      </TR>  "+
        "    </TABLE>  "+
        "    </CENTER>  "+
        "  </BODY>  ";
	  
	ventana = window.open("","ampliacion",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=640,height=480')  
	ventana.document.write(pagina)  
	ventana.document.close()
}


function vernavegador() 
       {
        if (navigator.appName== "Netscape" && parseInt(navigator.appVersion) >= 3 ) 
          {
           return true;
          } 
        else if (navigator.appName.indexOf("Microsoft") >= 0 && parseFloat( navigator.appVersion ) >= 3.01 ) 
	  {
           return true;
          }
        return false;
       }

function mensajeSec01(msgStr) {
// document.returnValue = false;
  window.status = msgStr;
// document.returnValue = true;
}

function ver_flechasSec01() {
}

// mostrar cargando antes de sacar imagen
function Cargando_Sec01() {
    document.imagenSec01.src = '../adminfotos/cargandop.gif';
//    alert("--inicia");
}

// imgName -> indica la imagen a mostrar
function img_inicioSec01(imgName) {
  if (vernavegador()) {
  if (imgName > 0) {
     imagen_ordenSec01 = imgName; 
  }
//     alert(">>"+imgName+">>"+imagen_ordenSec01);
// si sobrepaso las cargadas en memoria las saco directamente.
// sino, tiro del array
    if (imagen_ordenSec01 > CargarMemoria) 
       {
        Cargando_Sec01();
	cargar = imagen_prefijoSec01 + imagen_ordenSec01 + "." + imagen_tipo;
	imgOn = cargar;
    } else {
	imgOn = eval("imagenesSec01[imagen_ordenSec01].src");
    }

    document.imagenSec01.src = imgOn;

    // solo para capas de texto
//    CambiarCapa('PieFoto');

// sólo para cuando hay un contador de imagenes
//    contarOn = eval("contadoresSec01[1].src");
//    document.contadorSec01.src = contarOn;
//
// sólo para cuando hay un texto-imagen que cambiar junto a la imagen
//    textoOn = eval("textoSec01[1].src");
//    document.textoSec01.src = textoOn;
//
  }
}

// imgName -> indica la imagen a mostrar
function img_masSec01(imgName) {
  if (vernavegador()) {
    imagen_ordenSec01 = imagen_ordenSec01 + 1;
    if (imagen_ordenSec01 > imagen_totalSec01)
       {
        imagen_ordenSec01 = 1;
       }

// si sobrepaso las cargadas en memoria las saco directamente.
// sino, tiro del array
    if (imagen_ordenSec01 > CargarMemoria) 
       {
        Cargando_Sec01();
	cargar = imagen_prefijoSec01 + imagen_ordenSec01 + "." + imagen_tipo;
	imgOn = cargar;
    } else {
	imgOn = eval("imagenesSec01[imagen_ordenSec01].src");
    }

    document.imagenSec01.src = imgOn;

///////////    imgOn = eval("imagenesSec01[imagen_ordenSec01].src");
///////////    document.imagenSec01.src = imgOn;

    // solo para capas de texto
//    CambiarCapa('PieFoto');

// sólo para cuando hay un contador de imagenes
//    contarOn = eval("contadoresSec01[imagen_ordenSec01].src");
//    document.contadorSec01.src = contarOn;
//
// sólo para cuando hay un texto-imagen que cambiar junto a la imagen
//    textoOn = eval("textoSec01[imagen_ordenSec01].src");
//    document.textoSec01.src = textoOn;
//

  }
}

// imgName -> indica la imagen a mostrar
function img_menosSec01(imgName) {

  if (vernavegador()) {
    imagen_ordenSec01 = imagen_ordenSec01 - 1;
    if (imagen_ordenSec01 == 0)
       {
        imagen_ordenSec01 = imagen_totalSec01;
       }

// si sobrepaso las cargadas en memoria las saco directamente.
// sino, tiro del array
    if (imagen_ordenSec01 > CargarMemoria) 
       {
        Cargando_Sec01();
	cargar = imagen_prefijoSec01 + imagen_ordenSec01 + "." + imagen_tipo;
	imgOn = cargar;
    } else {
	imgOn = eval("imagenesSec01[imagen_ordenSec01].src");
    }

    document.imagenSec01.src = imgOn;

    // solo para capas de texto
//    CambiarCapa('PieFoto');

///////////////    imgOn = eval("imagenesSec01[imagen_ordenSec01].src");
///////////////    document.imagenSec01.src = imgOn;
// sólo para cuando hay un contador de imagenes
//    contarOn = eval("contadoresSec01[imagen_ordenSec01].src");
//    document.contadorSec01.src = contarOn;
//
// sólo para cuando hay un texto-imagen que cambiar junto a la imagen
//    textoOn = eval("textoSec01[imagen_ordenSec01].src");
//    document.textoSec01.src = textoOn;

  }
}


// cambiar los textos segun la foto (imagen_ordenSec01) en la capa especificada en NombreCapa 
function CambiarCapa(NombreCapa) {
    MM_setTextOfLayer(NombreCapa,'',CargartextosPie(imagen_ordenSec01)); 
}

function MM_setTextOfLayer(objName,x,newText) { 
    if ((obj=MM_findObj(objName))!=null) with (obj)
    	if ((navigator.appName=='Netscape') && (parseInt(navigator.appVersion)==4)) {
	   document.write(unescape(newText)); 
	   document.close();
	} else innerHTML = unescape(newText);
}

function MM_findObj(n, d) { 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

// fin -->

