//Aquí cambia los nombres de las imágenes por las tuyas. 

var imagenes1=new Array() 

var imagenes2= new Array()

var textos1 = new Array()

var textos2 = new Array()

var textosP1 = new Array()

var textosP2 = new Array()

var enlaces1 = new Array()

var enlaces2 = new Array()


var piso = new Array()

var titulo = new Array()

var descripcion = new Array()

var numFotos = new Array()

var enlace = new Array()

var fechaActualizacion ="06 DE SEPTIEMBRE DE 2010"



piso[0] = "40010"

titulo[0] = "SARDINERO:135 M2-3 DORM.+GARAJE"

descripcion[0] = "Vistas Panorámicas-Ref.40010-"

numFotos[0] = 4

enlace[0] = "http://www.habitat24.com/ficha.asp?IdPiso=55537011.1503&Idioma=CS&Filtro=1"


piso[1] = "40099"

titulo[1] = "MAESTRANZA: 3DORM.+2BAÑOS"

descripcion[1] = "PRECIO:222.374 €-Ref.40099"

numFotos[1] = 4

enlace[1] = "http://www.habitat24.com/ficha.asp?IdPiso=53952082.1503&Idioma=CS&Filtro=1"


piso[2] = "30148"

titulo[2] = "APARTAMENTO MUY CÉNTRICO"

descripcion[2] = "ALQUILER:690 €-Ref.30148"

numFotos[2] = 4

enlace[2] = "http://www.habitat24.com/ficha.asp?IdPiso=79714950961.1503&Idioma=CS&Filtro=1"


piso[3] = "40042"

titulo[3] = "PZA LOS REYES: 2DORM.+GARAJE"

descripcion[3] = "PRECIO:222.374€- Ref. 40042"

numFotos[3] = 4

enlace[3] = "http://www.habitat24.com/ficha.asp?IdPiso=844642450.1503&Idioma=CS&Filtro=1"


piso[4] = "40031"

titulo[4] = "PISO RECINTO 2 DORM"

descripcion[4] ="PRECIO:196.324€.Ref.40031"

numFotos[4] = 4

enlace[4] = "http://www.habitat24.com/ficha.asp?IdPiso=953156178.1503&Idioma=CS&Filtro=1"


piso[5] = "40086"

titulo[5] = "CENTRO: 2DORM.+GARAJE"

descripcion[5] ="PRECIO:208.594-Ref.40086"

numFotos[5] = 4

enlace[5] = "http://www.habitat24.com/ficha.asp?IdPiso=845252344.1503&Idioma=CS"

var total1=0;
var total2=0;

for (i=0; i<piso.length; i=i+2) {
	for (j=0;j<numFotos[i];j++) {
		imagenes1[total1] = new Image(150,100);
		imagenes1[total1].src = "fotos/" + piso[i] + "_" + j + ".jpg"
		textos1[total1] = titulo[i]
		textosP1[total1] = descripcion[i]
		enlaces1[total1] = enlace[i]
		total1 ++;
	}
	for (j=0;j<numFotos[i+1];j++) {
		imagenes2[total2] = new Image(150,100);
		imagenes2[total2].src = "fotos/" + piso[i+1] + "_" + j + ".jpg"
		textos2[total2] = titulo[i+1]
		textosP2[total2] = descripcion[i+1]
		enlaces2[total2] = enlace[i+1]
		total2 ++;
	}

}

cont1=0 
cont2=0
function presImagen() 
{ 
if (document.all){ 
document.getElementById('inmueble1').filters.blendTrans.apply() 
document.getElementById('inmueble1').src=imagenes1[cont1].src 
document.getElementById('inmueble1').filters.blendTrans.play() 
document.getElementById('texto1').value=textos1[cont1]
document.getElementById('textoP1').value=textosP1[cont1]
document.getElementById('enlace1').value=enlaces1[cont1]

document.getElementById('inmueble2').filters.blendTrans.apply() 
document.getElementById('inmueble2').src=imagenes2[cont2].src 
document.getElementById('inmueble2').filters.blendTrans.play() 
document.getElementById('texto2').value=textos2[cont2]
document.getElementById('textoP2').value=textosP2[cont2]
document.getElementById('enlace2').value=enlaces2[cont1]

} 
else 
    { 
    document.images.inmueble1.src = imagenes1[cont1].src 
	document.getElementById('texto1').value=textos1[cont1]
	document.getElementById('textoP1').value=textosP1[cont1]
	document.getElementById('enlace1').value=enlaces1[cont1]	

    document.images.inmueble2.src = imagenes2[cont2].src 
	document.getElementById('texto2').value=textos2[cont2]
	document.getElementById('textoP2').value=textosP2[cont2]
	document.getElementById('enlace2').value=enlaces2[cont2]	

	} 
if (cont1 < imagenes1.length-1) 
{cont1 ++} 
else 
{cont1=0} 
if (cont2 < imagenes2.length-1) 
{cont2 ++} 
else 
{cont2=0} 

tiempo=window.setTimeout('presImagen()',5000) 
 //cada 5000 milisegundos (5 seg.) cambia la imagen. 
//cambia la cantidad por el tiempo que quieras que transcurra entre imagen e imagen 

}