

function ventana(imagename, ancho, alto){
ancho=ancho+20
alto=alto+30
if (ancho > 760) {ancho=760;};
if (alto > 550) {alto=500;};
window.open(imagename,"Imagen","menubar=no,scrollbars=yes,status=no,width="+ancho+",height="+alto+", top=0, left=0, screenX=0, screenY=0")
}

function ventanaImagen(imagename, ancho, alto){
ancho=ancho+20
alto=alto+30
anchoMax = screen.width - 20;
altoMax = screen.height - 15;
if (ancho > anchoMax) {ancho=anchoMax;};
if (alto > altoMax) {alto=altoMax;};
window.open(imagename,"Imagen","menubar=no,scrollbars=yes,status=no,width="+ancho+",height="+alto+", top=0, left=0, screenX=0, screenY=0")
}


 function infoscroll(seed,looped)
  {
    var text1  = "Portal de Alcázar de San Juan - ALCAZARWEB.COM";
    var msg    = text1;
    var putout = " ";
    var c      = 1;
    if (looped > 3) {
      
    }
    else if (seed > 100) {
         seed--;
         var cmd="infoscroll(" + seed + "," + looped + ")";
         timerTwo=window.setTimeout(cmd,100);
    }
    else if (seed <= 100 && seed > 0) {
      for (c=0 ; c < seed ; c++)
        putout += " ";
      putout += msg.substring(0, 100-seed);
      seed--;
      var cmd = "infoscroll(" + seed + "," + looped + ")";
      window.status = putout;
      timerTwo = window.setTimeout(cmd,100);
    }
    else if (seed <= 0) {
      if (-seed < msg.length) {
        putout+=msg.substring(-seed,msg.length);
        seed--;
        var cmd="infoscroll(" + seed + "," + looped + ")";
        window.status=putout;
        timerTwo=window.setTimeout(cmd,100); // 100
      }
      else {
        window.status=" ";
        looped += 1;
        var cmd = "infoscroll(100," + looped + ")";
        timerTwo=window.setTimeout(cmd,75); // 75
      }
    }
  }

  infoscroll(100,1);


function lista(form){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;
}


<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->


//empieza el codigo de pag. spain1
image=new Array("../imagenes/spain/imag1.jpg","../imagenes/spain/imag2.jpg","../imagenes/spain/imag3.jpg","../imagenes/spain/imag4.jpg","../imagenes/spain/imag5.jpg","../imagenes/spain/imag6.jpg","../imagenes/spain/imag7.jpg","../imagenes/spain/imag8.jpg","../imagenes/spain/imag9.jpg")
adelante1=0

function mover1(num){
	adelante1=adelante1+num
	if(adelante1<0 || adelante1==image.length){
	alert("Estas en la ultima imagen")
	adelante1=0
	}
	spain1.src=image[adelante1]

}

//termina el codigo de pag. spain1

//empieza el codigo de pag. body-builder

foto1=new Array("body-builder/imagenes/foto4.jpg","body-builder/imagenes/foto5.jpg","body-builder/imagenes/foto6.jpg","body-builder/imagenes/foto7.jpg","body-builder/imagenes/foto8.jpg","body-builder/imagenes/foto9.jpg","body-builder/imagenes/foto10.jpg","body-builder/imagenes/foto11.jpg","body-builder/imagenes/foto12.jpg","body-builder/imagenes/foto13.jpg","body-builder/imagenes/foto14.jpg","body-builder/imagenes/foto15.jpg",
"body-builder/imagenes/foto16.jpg","body-builder/imagenes/foto17.jpg","body-builder/imagenes/foto18.jpg","body-builder/imagenes/foto19.jpg","body-builder/imagenes/foto20.jpg")
adelante2=0

function mover2(num){
	adelante2=adelante2+num
	if(adelante2<0 || adelante2==foto1.length){
	alert("Estas en la ultima imagen")
	adelante=0
	}
	bodybuilder.src=foto1[adelante2]
	
}



//termina el codigo de pag. body-builder
//empieza el codigo de pag. checa

foto6=new Array("checa-cormecializacion/imagenes/foto3.jpg","checa-cormecializacion/imagenes/foto4.jpg","checa-cormecializacion/imagenes/foto5.jpg","checa-cormecializacion/imagenes/foto6.jpg")
adelante6=0

function mover6(num){
	adelante6=adelante6+num
	if(adelante6<0 || adelante6==foto6.length){
	alert("Estas en la ultima imagen")
	adelante6=0
	}
	checa.src=foto6[adelante6]
	
}



//termina el codigo de pag. checa

//mercal
foto=new Array("imagenes/merkal/imag1.jpg","imagenes/merkal/imag2.jpg","imagenes/merkal/imag3.jpg","imagenes/merkal/imag4.jpg","imagenes/merkal/imag5.jpg","imagenes/merkal/imag6.jpg","imagenes/merkal/imag7.jpg","imagenes/merkal/imag8.jpg","imagenes/merkal/imag9.jpg","imagenes/merkal/imag10.jpg")
adelante=0

function mover(num){
	adelante=adelante+num
	if(adelante<0 || adelante==foto.length){
	alert("Estas en la ultima imagen")
	adelante=0
	}
	merkal.src=foto[adelante]
	
}
//merkal

//SANITAS
foto3=new Array("imagenes/prod6.jpg","imagenes/prod7.jpg")
adelante3=0

function mover3(num){
	adelante3=adelante3+num
	if(adelante3<0 || adelante3==foto3.length){
	alert("Estas en la ultima imagen")
	adelante3=0
	}
	sanitas.src=foto3[adelante3]
	
}
//SANITAS

// banner rotativo DECLARAMOS TODAS LAS IMAGENES

var imagenes = new armarvector ("imagenes/publi/prieto.gif","imagenes/publi/seguritas.gif","imagenes/publi/cverde.gif","imagenes/publi/generali.gif","imagenes/publi/oriflame.gif","imagenes/publi/saboreate.gif","imagenes/publi/atardecer.gif","imagenes/publi/naturhouse.gif","imagenes/publi/sport.gif","imagenes/publi/interstyle.gif","imagenes/publi/saez.gif","imagenes/publi/hiperasia.gif","imagenes/publi/rcnails.gif","imagenes/publi/talleresrubio.gif","imagenes/publi/academiaalicia.gif","imagenes/publi/manu.gif","imagenes/publi/edades.gif","imagenes/publi/manchabyte.gif","imagenes/publi/staclara.gif","imagenes/publi/elgamonal.gif","imagenes/publi/laalcancia.gif","imagenes/publi/copigama.gif","imagenes/publi/manhattan.jpg","imagenes/publi/atisae.gif","imagenes/publi/myt.gif","imagenes/publi/iberplagas.gif","imagenes/publi/sip.gif","imagenes/publi/checa.gif","imagenes/publi/neocom.gif","imagenes/publi/veneros.gif","imagenes/publi/artehogar.gif","imagenes/publi/arenal.gif","imagenes/publi/angora.gif","imagenes/publi/hayatravel.gif","imagenes/publi/cancelas.gif","imagenes/publi/azulejosv.gif","imagenes/publi/laalcancia.gif", "imagenes/publi/maysa.gif", "imagenes/publi/CTA.gif", "imagenes/publi/espacios.jpg","imagenes/publi/poralcazar.gif","imagenes/publi/body.gif","imagenes/publi/inmob.gif","imagenes/publi/banner.gif","imagenes/publi/clinica.gif","imagenes/publi/madera.gif", "imagenes/publi/asecoman.gif","imagenes/publi/studio.gif","imagenes/publi/novosofa.gif","imagenes/publi/dlang.gif","imagenes/publi/gluten.jpg","imagenes/publi/imaye.jpg","imagenes/publi/volaria.gif","imagenes/publi/elmirador.jpg","imagenes/publi/pinturasroma.jpg","imagenes/publi/estilo.gif","imagenes/publi/intedhor.gif","imagenes/publi/hm.jpg","imagenes/publi/malet.gif");

// DECLARAMOS SUS RESPECTIVOS ENLACES

var enlaces  = new armarvector ("http://www.alcazarweb.com/armeria_prieto","http://www.alcazarweb.com/seguritas","http://www.alcazarweb.com/clinica_veterinaria","http://www.alcazarweb.com/oriflame","http://www.alcazarweb.com/saborate","http://www.alcazarweb.com/teteria-atardecer","http://www.alcazarweb.com/naturhouse","http://www.alcazarweb.com/gimnasio-sport","http://www.alcazarweb.com/interstyle","http://www.alcazarweb.com/saez-detectives","http://www.alcazarweb.com/bazarhiperasia","http://www.alcazarweb.com/rcnails","http://www.alcazarweb.com/rcnails","http://www.alcazarweb.com/talleresrubio","http://www.alcazarweb.com/academia-alicia","http://www.alcazarweb.com/manu","http://www.alcazarweb.com/edades","http://www.alcazarweb.com/manchabyte","http://www.alcazarweb.com/hotel-santa-clara","http://www.alcazarweb.com/elgamonal","http://www.alcazarweb.com/laalcancia","http://www.alcazarweb.com/copigama","http://www.alcazarweb.com/manhattan","http://www.alcazarweb.com/atisae-itv","http://www.alcazarweb.com/mobiliarioytarima","http://www.alcazarweb.com/iberplagas","http://www.alcazarweb.com/sip","http://www.alcazarweb.com/checa-cormecializacion","http://www.alcazarweb.com/neocom","http://www.alcazarweb.com/casasdelosveneros","http://www.alcazarweb.com/artehogar","http://www.alcazarweb.com/fer-arenal","http://www.alcazarweb.com/bodegas-angora","http://www.alcazarweb.com/hayatravel","http://www.alcazarweb.com/lascancelas","http://www.alcazarweb.com/azulejosvictoria","http://www.alcazarweb.com/laalcancia","http://www.alcazarweb.com/maysa","http://www.alcazarweb.com/CTA","http://www.alcazarweb.com/espacios", "http://www.alcazarweb.com/poralcazar.asp","http://www.alcazarweb.com/body-builder","http://www.alcazarweb.com/inmobiliariaalberca.asp","mailto:informacion@alcazarweb.com","http://www.alcazarweb.com/clinicadental","http://www.alcazarweb.com/cmadera.asp","http://www.alcazarweb.com/asecoman","http://www.alcazarweb.com/studio","http://www.alcazarweb.com/novosofa","http://www.alcazarweb.com/dlang","http://www.alcazarweb.com/gluten-not","http://www.alcazarweb.com/imaye","http://www.alcazarweb.com/volaria","http://www.alcazarweb.com/elmirador","http://www.alcazarweb.com/pinturasroma","http://www.alcazarweb.com/peluqueria-stylo","http://www.alcazarweb.com/intedhor","http://www.alcazarweb.com/hm","http://www.alcazarweb.com/malet");

function Imagen_Aleatoria() {
hoy= new Date();
maximo=59; // LA CANTIDAD DE IMÁGENES QUE POSEEMOS
segundos=hoy.getSeconds();

if (segundos==0) {segundos=1}
	 while (segundos>maximo) {segundos=segundos-maximo}
	 document.write ('<A HREF="'+enlaces[segundos]+' "target=_blank""><IMG SRC="'+imagenes[segundos]+'" border=0>');
}

function armarvector (v1,v2,v3,v4,v5,v6,v7,v8,v9,v10,v11,v12,v13,v14,v15,v16,v17,v18,v19,v20,v21,v22,v23,v24,v25,v26,v27,v28,v29,v30,v31,v32,v33,v34,v35,v36,v37,v38,v39,v40,v41,v42,v43,v44,v45,v46,v47,v48,v49,v50,v51,v52,v53,v54,v55,v56,v57,v58,v59) {
 this[1]=v1;
 this[2]=v2;
 this[3]=v3;
 this[4]=v4;
 this[5]=v5;
 this[6]=v6;
 this[7]=v7;
 this[8]=v8;
 this[9]=v9;
 this[10]=v10;
 this[11]=v11;
 this[12]=v12;
 this[13]=v13;
 this[14]=v14;
 this[15]=v15;
 this[16]=v16;
 this[17]=v17;
 this[18]=v18;
 this[19]=v19;
 this[20]=v20;
 this[21]=v21;
 this[22]=v22;
 this[23]=v23;
 this[24]=v24;
 this[25]=v25;
 this[26]=v26;
 this[27]=v27;
 this[28]=v28;
 this[29]=v29;
 this[30]=v30;
 this[31]=v31;
 this[32]=v32;
 this[33]=v33;
 this[34]=v34;
 this[35]=v35;
 this[36]=v36;
 this[37]=v37;
 this[38]=v38;
 this[39]=v39;
 this[40]=v40;
 this[41]=v41;
 this[42]=v42;
 this[43]=v43;
 this[44]=v44;
 this[45]=v45;
 this[46]=v46;
 this[47]=v47;
 this[48]=v48;
 this[49]=v49;
 this[50]=v50;
 this[51]=v51;
 this[52]=v52;
 this[53]=v53;
 this[54]=v54;
 this[55]=v55;
 this[56]=v56;
 this[57]=v57; 
 this[58]=v58;
 this[59]=v59;

}

// banner CABECERA DECLARAMOS TODAS LAS IMAGENES

var imagenes1 = new armarvector1 ("imagenes/publi/prieto.gif","imagenes/publi/seguritas.gif","imagenes/publi/cverde.gif","imagenes/publi/generali.gif","imagenes/publi/edn.gif","imagenes/publi/oriflame.gif","imagenes/publi/saboreate.gif","imagenes/publi/atardecer.gif","imagenes/publi/naturhouse.gif","imagenes/publi/sport.gif","imagenes/publi/interstyle.gif","imagenes/publi/saez.gif","imagenes/publi/hiperasia.gif","imagenes/publi/rcnails.gif","imagenes/publi/talleresrubio.gif","imagenes/publi/academiaalicia.gif","imagenes/publi/manu.gif","imagenes/publi/edades.gif","imagenes/publi/manchabyte.gif","imagenes/publi/dlang.gif","imagenes/publi/laalcancia.gif","imagenes/publi/elmirador.jpg","imagenes/publi/iberplagas.gif","imagenes/publi/staclara.gif","imagenes/publi/asecoman.gif","imagenes/publi/maysa.gif","imagenes/publi/CTA.gif","imagenes/publi/myt.gif","imagenes/publi/poralcazar.gif","imagenes/publi/studio.gif","imagenes/publi/madera.gif","imagenes/publi/cancelas.gif","imagenes/publi/pinturasroma.jpg", "imagenes/publi/angora.gif","imagenes/publi/body.gif","imagenes/publi/azulejosv.gif","imagenes/publi/inmob.gif","imagenes/publi/banner.gif","imagenes/publi/hayatravel.gif","imagenes/publi/clinica.gif","imagenes/publi/espacios.jpg","imagenes/publi/checa.gif","imagenes/publi/sip.gif","imagenes/publi/veneros.gif","imagenes/publi/atisae.gif","imagenes/publi/artehogar.gif","imagenes/publi/laalcancia.gif","imagenes/publi/arenal.gif","imagenes/publi/gluten.jpg","imagenes/publi/elgamonal.gif","imagenes/publi/neocom.gif","imagenes/publi/copigama.gif","imagenes/publi/novosofa.gif","imagenes/publi/manhattan.jpg","imagenes/publi/imaye.jpg","imagenes/publi/volaria.gif","imagenes/publi/estilo.gif","imagenes/publi/intedhor.gif","imagenes/publi/hm.jpg","imagenes/publi/malet.gif");

// DECLARAMOS SUS RESPECTIVOS ENLACES

var enlaces1  = new armarvector1 ("http://www.alcazarweb.com/armeria_prieto","http://www.alcazarweb.com/seguritas","http://www.alcazarweb.com/clinica_veterinaria","http://www.alcazarweb.com/generali_seguro","http://www.alcazarweb.com/edn","http://www.alcazarweb.com/oriflame","http://www.alcazarweb.com/saborate","http://www.alcazarweb.com/teteria-atardecer","http://www.alcazarweb.com/naturhouse","http://www.alcazarweb.com/gimnasio-sport","http://www.alcazarweb.com/interstyle","http://www.alcazarweb.com/saez-detectives","http://www.alcazarweb.com/bazarhiperasia","http://www.alcazarweb.com/rcnails","http://www.alcazarweb.com/talleresrubio","http://www.alcazarweb.com/academia-alicia","http://www.alcazarweb.com/manu","http://www.alcazarweb.com/edades","http://www.alcazarweb.com/manchabyte","http://www.alcazarweb.com/dlang","http://www.alcazarweb.com/laalcancia","http://www.alcazarweb.com/elmirador","http://www.alcazarweb.com/iberplagas","http://www.alcazarweb.com/hotel-santa-clara","http://www.alcazarweb.com/asecoman","http://www.alcazarweb.com/maysa","http://www.alcazarweb.com/CTA","http://www.alcazarweb.com/mobiliarioytarima","http://www.alcazarweb.com/poralcazar.asp","http://www.alcazarweb.com/studio","http://www.alcazarweb.com/cmadera.asp","http://www.alcazarweb.com/lascancelas","http://www.alcazarweb.com/pinturasroma","http://www.alcazarweb.com/bodegas-angora","http://www.alcazarweb.com/body-builder","http://www.alcazarweb.com/azulejosvictoria","http://www.alcazarweb.com/inmobiliariaalberca.asp","mailto:informacion@alcazarweb.com","http://www.alcazarweb.com/hayatravel","http://www.alcazarweb.com/clinicadental","http://www.alcazarweb.com/espacios","http://www.alcazarweb.com/checa-cormecializacion","http://www.alcazarweb.com/sip","http://www.alcazarweb.com/casasdelosveneros","http://www.alcazarweb.com/atisae-itv","http://www.alcazarweb.com/artehogar","http://www.alcazarweb.com/laalcancia","http://www.alcazarweb.com/fer-arenal","http://www.alcazarweb.com/gluten-not","http://www.alcazarweb.com/elgamonal","http://www.alcazarweb.com/neocom","http://www.alcazarweb.com/copigama","http://www.alcazarweb.com/novosofa","http://www.alcazarweb.com/manhattan","http://www.alcazarweb.com/imaye","http://www.alcazarweb.com/volaria","http://www.alcazarweb.com/peluqueria-stylo","http://www.alcazarweb.com/intedhor","http://www.alcazarweb.com/hm","http://www.alcazarweb.com/malet");

function Imagen_Aleatoria1() {
hoy= new Date();
maximo=60; // LA CANTIDAD DE IMÁGENES QUE POSEEMOS
segundos=hoy.getSeconds();

if (segundos==0) {segundos=3}
	 while (segundos>maximo) {segundos=segundos-maximo}
	 document.write ('<A HREF="'+enlaces1[segundos]+' "target=_blank""><IMG SRC="'+imagenes1[segundos]+'" border=0>');
}

function armarvector1 (va60,va59,va58,va57,va56,va55,va54,va53,va52,va51,va50,va49,va48,va47,va46,va45,va44,va43,va42,va41,va40,va39,va38,va37,va36,va35,va34,va33,va32,va31,va30,va29,va28,va27,va26,va25,va24,va23,va22,va21,va20,va19,va18,va17,va16,va15,va14,va13,va12,va11,va10,va9,va8,va7,va6,va5,va4,va3,va2,va1) { 


 this[60]=va60;
 this[59]=va59;
 this[58]=va58;
 this[57]=va57;
 this[56]=va56;
 this[55]=va55;
 this[54]=va54;
 this[53]=va53;
 this[52]=va52;
 this[51]=va51;
 this[50]=va50;
 this[49]=va49;
 this[48]=va48;
 this[47]=va47;
 this[46]=va46;
 this[45]=va45;
 this[44]=va44;
 this[43]=va43;
 this[42]=va42;
 this[41]=va41;
 this[40]=va40;
 this[39]=va39;
 this[38]=va38;
 this[37]=va37;
 this[36]=va36;
 this[35]=va35;
 this[34]=va34;
 this[33]=va33;
 this[32]=va32;
 this[31]=va31;
 this[30]=va30;
 this[29]=va29;
 this[28]=va28;
 this[27]=va27;
 this[26]=va26;
 this[25]=va25;
 this[24]=va24;
 this[23]=va23;
 this[22]=va22;
 this[21]=va21;
 this[20]=va20;
 this[19]=va19;
 this[18]=va18;
 this[17]=va17;
 this[16]=va16;
 this[15]=va15;
 this[14]=va14;
 this[13]=va13;
 this[12]=va12;
 this[11]=va11;
 this[10]=va10;
 this[9]=va9;
 this[8]=va8;
 this[7]=va7;
 this[6]=va6;
 this[5]=va5;
 this[4]=va4;
 this[3]=va3;
 this[2]=va2; 
 this[1]=va1;

}

