// JavaScript Document

/*adImage = new Array("banners/banner1.gif","banners/banner2.gif","banner3.gif")
adURL = new Array("yahoo.com","google.com","iberia.com")*/
thisAd = 0
imgCt = adImage.length
function rotacion() {
if (document.images) {
thisAd++
if (thisAd == imgCt) {
thisAd = 0
}
document.anuncio.src=adImage[thisAd];
	/*introducido el día:12 abril 09*/
	document.anuncio.onclick=function(){
		window.open("http://www." + adURL[thisAd],"window1");
	}
setTimeout("rotacion()", 3 * 1500)
}
}
/*adImage1 = new Array("banners/banner4.gif","banners/banner5.gif","banners/banner6.gif")
adURL2 = new Array("yahoo.com","google.com","iberia.com")*/
thisAd1 = 0
imgCt = adImage1.length
function rotacion1() {
if (document.images) {
thisAd1++
if (thisAd1 == imgCt) {
thisAd1 = 0
}
document.anuncio1.src=adImage1[thisAd1];
	/*introducido el día:12 abril 09*/
	document.anuncio1.onclick=function(){
		window.open("http://www." + adURL2[thisAd1],"window2");
	}
setTimeout("rotacion1()", 3 * 1800)
}
}
/*adImage2 = new Array("banners/banner7.gif","banners/banner8.gif","banners/banner9.gif")
adURL3 = new Array("yahoo.com","google.com","iberia.com")*/
thisAd2 = 0
imgCt = adImage2.length
function rotacion2() {
if (document.images) {
thisAd2++
if (thisAd2 == imgCt) {
thisAd2 = 0
}
document.anuncio2.src=adImage2[thisAd2];
	/*introducido el día:12 abril 09*/
	document.anuncio2.onclick=function(){
		window.open("http://www." + adURL3[thisAd2],"window3");
	}
setTimeout("rotacion2()", 3 * 1600)
}
}

function newLocation() {
	/*window.open("http://www." + adURL[thisAd],"window2");
	window.open("http://www." + adURL[thisAd1],"window2");
	window.open("http://www." + adURL[thisAd2],"window2");*/
}
