// Vettore Immagini-Link-Descrizione
var Lnk,Img,Dsc;
var Banner,DataAt;

Lnk = new Array();
Img = new Array();
Dsc = new Array();
Eml = new Array();
Htl = new Array();
Banner = new Array();

var Oggi = new Date();
var gg = Oggi.getDate();
var mm = Oggi.getMonth() + 1;
var aa = Oggi.getFullYear();

//Init valori
TipoBanner = 'Pasqua';
Email='segretaria@abcvacanze.it';
DataAt = (aa*10000) + (mm*100) + gg;
R=-1;


// Hotel Regina Elena 57
if (DataAt <= 99999999) {
R=R+1;
Htl[R]="hotel-regina-elena-57";
Lnk[R]="http://www.reginaelena57.it/offerte-news.php";
Img[R]="http://www.abcvacanze.it/banner/hotel-regina-elena-57.jpg";
Dsc[R]="<b>Hotel Regina Elena 57</b><br>3 stelle Rimini";
Eml[R]="info@reginaelena57.it";
}


// Hotel Baia
if (DataAt <= 99999999) {
R=R+1;
Htl[R]="hotel-baia";
Lnk[R]="http://www.hotelbaia.it/";
Img[R]="http://www.abcvacanze.it/img/33b2f20fe974bee04350cb38ac6ab803.jpg";
Dsc[R]="<b>Hotel Baia</b><br>3 stelle Viserbella";
Eml[R]="info@hotelbaia.it";
}


/*
// Hotel Ave
if (DataAt <= 20100401) {
R=R+1;
Htl[R]="hotel-ave";
Lnk[R]="http://www.abcvacanze.it/hotel-patty-hotel-ave/hotel-patty-hotel-ave.html";
Img[R]="http://www.abcvacanze.it/img/hotel-ave.jpg";
Dsc[R]="<b>Hotel Ave</b><br>2 stelle Miramare";
Eml[R]="info@avehotel.it";
}
*/


/*
// Hotel Jumbo
if (DataAt <= 20091231) {
R=R+1;
Htl[R]="hotel-jumbo";
Lnk[R]="http://www.riminiin.it";
Img[R]="http://www.abcvacanze.it/banner/hotel-jumbo.jpg";
Dsc[R]="<b>Hotel Jumbo</b><br>3 stelle Marebello";
Eml[R]="infohotel@riminiin.it";
}
*/


// Hotel Jorena
if (DataAt <= 99999999) {
R=R+1;
Htl[R]="hotel-jorena";
Lnk[R]="http://www.hoteljorena.it/";
Img[R]="http://www.abcvacanze.it/banner/hotel-jorena-parchi.jpg";
Dsc[R]="<b>Hotel Jorena</b><br>3 stelle Marebello";
Eml[R]="info@hoteljorena.it";
}


// Hotel Ciondolo D'oro
if (DataAt <= 99999999) {
R=R+1;
Htl[R]="hotel-ciondolo-oro";
Lnk[R]="http://www.hotelciondolodoro.com/";
Img[R]="http://www.abcvacanze.it/img/7a7e464fa30b1db6f48345cd0db138d3.jpg";
Dsc[R]="<b>Hotel Ciondolo D&acute;oro</b><br>3 stelle Torre Pedrera";
Eml[R]="info@hotelciondolodoro.com";
}


// Hotel Toledo
if (DataAt <= 99999999) {
R=R+1;
Htl[R]="hotel-toledo";
Lnk[R]="http://www.hoteltoledo.info";
Img[R]="http://www.abcvacanze.it/img/hotel-toledo-san-giuliano.jpg";
Dsc[R]="<b>Hotel Toledo</b><br>2 stelle San Giuliano Mare";
Eml[R]="hoteltoledo@infinito.it";
}


// Hotel Il Gabbiano
if (DataAt <= 99999999) {
R=R+1;
Htl[R]="hotel-il-gabbiano";
Lnk[R]="http://www.ilgabbianosulmare.com";
Img[R]="http://www.abcvacanze.it/banner/hotel-gabbiano.jpg";
Dsc[R]="<b>Hotel Gabbiano</b><br>3 stelle Bellaria";
Eml[R]="info@ilgabbianosulmare.com";
}


// Hotel Bruna
if (DataAt <= 99999999) {
R=R+1;
Htl[R]="hotel-bruna";
Lnk[R]="http://www.brunahotel.it";
Img[R]="http://www.abcvacanze.it/banner/hotel-bruna.jpg";
Dsc[R]="<b>Hotel Bruna</b><br>3 stelle Cesenatico";
Eml[R]="";
}


/*
// Hotel San Domingo
if (DataAt <= 20091231) {
R=R+1;
Htl[R]="hotel-san-domingo";
Lnk[R]="http://www.hotelsandomingo.it";
Img[R]="http://www.abcvacanze.it/banner/hotel-sandomingo.jpg";
Dsc[R]="<b>Hotel San Domingo</b><br>3 stelle Igea Marina";
Eml[R]="info@hotelsandomingo.it";
}
*/



// Hotel Brown
if (DataAt <= 99999999) {
R=R+1;
Htl[R]="hotel-brown";
Lnk[R]="http://www.hotelbrown.com";
Img[R]="http://www.abcvacanze.it/banner/hotel-brown.jpg";
Dsc[R]="<b>Hotel Brown</b><br>3 stelle Rimini";
Eml[R]="info@hotelbrown.com";
}


/*
// Hotel Grune Perle
if (DataAt <= 99999999) {
R=R+1;
Htl[R]="hotel-grune-perle";
Lnk[R]="http://hotelgruneperle.sitonline.it/";
Img[R]="http://www.abcvacanze.it/banner/hotel-grune-perle.jpg";
Dsc[R]="<b>Hotel Grune Perle</b><br>2 stelle Rivazzurra";
Eml[R]="hotelgruneperle@tiscali.it";
}
*/


/*
// Hotel Carnaby
if (DataAt <= 99999999) {
R=R+1;
Htl[R]="hotel-carnaby";
Lnk[R]="http://www.hotelcarnaby.net";
Img[R]="http://www.abcvacanze.it/banner/hotel-carnaby.jpg";
Dsc[R]="<b>Hotel Carnaby</b><br>3 stelle Viserba";
Eml[R]="info@hotelcarnaby.net";
}
*/


/*
// Hotel Carignano
if (DataAt <= 20091231) {
R=R+1;
Htl[R]="hotel-carignano";
Lnk[R]="http://www.hotelcarignano.com/";
Img[R]="http://www.abcvacanze.it/banner/hotel-carignano.jpg";
Dsc[R]="<b>Hotel Carignano</b><br>3 stelle Riccione";
Eml[R]="info@hotelcarignano.com";
}
*/


// Hotel Tabor
if (DataAt <= 99999999) {
R=R+1;
Htl[R]="hotel-tabor";
Lnk[R]="http://www.hoteltabor.it";
Img[R]="http://www.abcvacanze.it/banner/hotel-tabor.jpg";
Dsc[R]="<b>Hotel Tabor</b><br>3 stelle Marebello";
Eml[R]="info@hoteltabor.it";
}


/*
// Carra Hotels
if (DataAt <= 20091231) {
R=R+1;
Htl[R]="carra-hotels";
Lnk[R]="http://www.carrahotels.com";
Img[R]="http://www.abcvacanze.it/banner/carra-hotels.jpg";
Dsc[R]="<b>Carra Hotels</b><br>Marebello";
Eml[R]="info@nuovogiardino.it";
}
*/


// Hotel Faber 
if (DataAt <= 99999999) {
R=R+1;
Htl[R]="hotel-faber";
Lnk[R]="http://www.vacanzearimini.net";
Img[R]="http://www.abcvacanze.it/banner/hotel-faber-pasqua.jpg";
Dsc[R]="<b>Hotel Faber</b><br>3 stelle Rivazzurra";
Eml[R]="info@faberhotel.it";
}



// Hotel Giumer
if (DataAt <= 99999999) {
R=R+1;
Htl[R]="hotel-giumer";
Lnk[R]="http://www.hotelgiumer.it/";
Img[R]="http://www.abcvacanze.it/banner/hotel-giumer.jpg";
Dsc[R]="<b>Hotel Giumer</b><br>3 stelle Miramare";
Eml[R]="info@hotelgiumer.it";
}



/*
// Hotel Dasamo
if (DataAt <= 20091231) {
R=R+1;
Htl[R]="hotel-dasamo";
Lnk[R]="http://www.dasamohotel.com/";
Img[R]="http://www.abcvacanze.it/banner/hotel-dasamo.jpg";
Dsc[R]="<b>Hotel Dasamo</b><br>3 stelle Viserbella";
Eml[R]="info@dasamohotel.com";
}
*/

// Hotel Holland
if (DataAt <= 99999999) {
R=R+1;
Htl[R]="hotel-holland";
Lnk[R]="http://www.alberghirimini.biz/";
Img[R]="http://www.abcvacanze.it/banner/hotel-holland-pasqua.jpg";
Dsc[R]="<b>Hotel Holland</b><br>3 stelle Marebello";
Eml[R]="info@hotelholland.it";
}



// Hotel Ravello
if (DataAt <= 99999999) {
R=R+1;
Htl[R]="hotel-ravello";
Lnk[R]="http://www.hotelravello.com/";
Img[R]="http://www.abcvacanze.it/banner/hotel-ravello-pasqua.jpg";
Dsc[R]="<b>Hotel Ravello</b><br>3 stelle Marebello";
Eml[R]="info@hotelravello.com";
}


/*
// Hotel Nautic
if (DataAt <= 99999999) {
R=R+1;
Htl[R]="hotel-nautic";
Lnk[R]="http://www.hotelnautic.it";
Img[R]="http://www.abcvacanze.it/banner/hotel-nautic.jpg";
Dsc[R]="<b>Hotel Nautic</b><br>3 stelle Viserba";
Eml[R]="info@hotelnautic.it";
}
*/


/*
// Hotel Maena
if (DataAt <= 20091231) {
R=R+1;
Htl[R]="hotel-maena";
Lnk[R]="http://www.hotelmaena.com";
Img[R]="http://www.abcvacanze.it/banner/hotel-maena.jpg";
Dsc[R]="<b>Hotel Maena</b><br>2 stelle Bellariva";
Eml[R]="info@hotelmaena.com";
}
*/


// Catolfi Hotels
if (DataAt <= 99999999) {
R=R+1;
Htl[R]="hotel-catolfi";
Lnk[R]="http://www.cattolicahotels.biz/";
Img[R]="http://www.abcvacanze.it/banner/hotel-catolfi.jpg";
Dsc[R]="<b>Catolfi Hotels</b><br>Cattolica";
Eml[R]="";
}


/*
// Residence Art
if (DataAt <= 99999999) {
R=R+1;
Htl[R]="residence-art";
Lnk[R]="http://www.residenceart.it/";
Img[R]="http://www.abcvacanze.it/banner/residence-art.jpg";
Dsc[R]="<b>Hotel Residence Art</b><br>3 stelle Rimini";
Eml[R]="";
}
*/

/*
// Hotel Clan
if (DataAt <= 20091231) {
R=R+1;
Htl[R]="hotel-clan";
Lnk[R]="http://www.hotelclanrimini.com";
Img[R]="http://www.abcvacanze.it/banner/hotel-clan.jpg";
Dsc[R]="<b>Hotel Clan</b><br>2 stelle Marebello";
Eml[R]="info@hotelclanrimini.com";
}
*/



// Hotel Andreas
if (DataAt <= 99999999) {
R=R+1;
Htl[R]="hotel-andreas";
Lnk[R]="http://www.hotelandreas.it/";
Img[R]="http://www.abcvacanze.it/banner/hotel-andreas.jpg";
Dsc[R]="<b>Hotel Andreas</b><br>3 stelle Rimini";
Eml[R]="hotelandreas@alice.it";
}



// Hotel Jumbo
if (DataAt <= 99999999) {
R=R+1;
Htl[R]="hotel-jumbo";
Lnk[R]="http://www.riminiin.it";
Img[R]="http://www.abcvacanze.it/banner/hotel-jumbo.jpg";
Dsc[R]="<b>Hotel Jumbo</b><br>3 stelle Marebello<br>";
Eml[R]="jumbo@riminiin.it";
}



// Hotel Silvana
if (DataAt <= 99999999) {
R=R+1;
Htl[R]="hotel-silvana";
Lnk[R]="http://www.bedandbreakfast-rimini.com/";
Img[R]="http://www.abcvacanze.it/banner/hotel-silvana.jpg";
Dsc[R]="<b>Hotel Silvana</b><br>2 stelle Marina Centro";
Eml[R]="hotelsilvana@alice.it";
}


// Hotel Life
if (DataAt <= 99999999) {
R=R+1;
Htl[R]="hotel-life";
Lnk[R]="http://www.hotellife.it/";
Img[R]="http://www.abcvacanze.it/banner/hotel-life-pasqua.jpg";
Dsc[R]="<b>Hotel Life</b><br>3 stelle Viserbella";
Eml[R]="info@hotellife.it";
}


// Hotel Cadiz
if (DataAt <= 99999999) {
R=R+1;
Htl[R]="hotel-cadiz";
Lnk[R]="http://www.hotelcadiz.it/";
Img[R]="http://www.abcvacanze.it/banner/hotel-cadiz-pasqua.jpg";
Dsc[R]="<b>Hotel Cadiz</b><br>3 stelle Viserbella";
Eml[R]="info@hotelcadiz.it";
}




/*
// PRENOTATO
if (DataAt <= 99999999) {
R=R+1;
Htl[R]="";
Lnk[R]="";
Img[R]="http://www.abcvacanze.it/banner/spazio-prenotato.jpg";
Dsc[R]="<b>Spazio</b><br>Prenotato";
Eml[R]="";
}
*/

// Inizializzo Banner
for (I=0; I<(Lnk.length); I++){
	Banner [I]=-1;
}


for (I=0; I<(Lnk.length); I++){
	
	if (I > 0) {
		Banner[I]=Math.floor(Math.random()*(Lnk.length))
		for (J=0; J<I; J++){
			if (Banner[I]==Banner[J]) {
				Banner[I]=Math.floor(Math.random()*(Lnk.length))
				J=-1;
			}
		}
	}
	else{
		Banner[I]=Math.floor(Math.random()*(Lnk.length));
	}
}

// Intestazione

document.write('<table border=0 cellpadding=0 cellspacing=0 align=center width=540><tr><td bgcolor=#FE9900 align=center colspan=9 width=100%><font color=#ffffff face=arial size=1><img src=http://www.abcvacanze.it/img/arrow.gif> <b>Offerte Hotel Rimini per Week end Primavera e Ferragosto in Riviera</b><br></font></td></tr>');

for (J=0; J<5; J++) {
	
	document.write('<tr><td colspan=9 height=15></td></tr>');
	
	// Immagini
	
	document.write('<tr>');
	
	for (I=0; I<5; I++) { 
	
		A=I+(J*5);

		if (A <= (Lnk.length-1)) {
			
			R=Banner[A];

			document.write('<td align=center width=100>');

			if ( Lnk[R].length > 0 ) {

				document.write('<a href="http://www.abcvacanze.net/banner/openurl.asp?url=' + Lnk[R] + '&tipo=' + TipoBanner + '&htl=' + Htl[R] + '" target="_blank">');
				document.write('<img src=' + Img[R] + ' border=0 />');										// Immagine
				document.write('</a>');
			
			} else {
			
				document.write('<img src=' + Img[R] + ' border=0 />');										// Immagine
			
			}

			document.write('</td>');
			document.write('<td width=10></td>');
			
			if ( Eml[R].length > 0 ) {
		
				Email = Email + ',' + Eml[R];
			}
			
		}
		else {
			document.write('<td align=center width=100>');
			document.write('<a href="http://www.abcvacanze.it/contatti.html" target="_blank">');
			document.write('<img src="http://www.abcvacanze.it/banner/spazio-disponibile.jpg" border=0 />');			// Spazio Disponibile
			document.write('</a>');
			document.write('</td>');
			document.write('<td width=10></td>');
		}
	}
	
	document.write('</tr>');
	
	// Descrizioni
	
	document.write('<tr>');
	
	for (I=0; I<5; I++) { 

		A=I+(J*5);

		if (A <= (Lnk.length-1)) {
			
			R=Banner[A];
			
			document.write('<td align=center width=100><font face=arial color=black size=1>');
			document.write(Dsc[R]);																		// Descrizione
			document.write('</font>');
			document.write('</td>');
			document.write('<td width=10></td>');
		}
		else {
			document.write('<td align=center width=100><font face=arial color=black size=1>');
			document.write('<b>Spazio</b><br>Disponibile');																		// Spazio Disponibile
			document.write('</font>');
			document.write('</td>');
			document.write('<td width=10></td>');
		}
	}
	
	document.write('</tr>');
}

if (Eml.length > 0) {

document.write('<tr><td colspan=9 height=15></td></tr>');

document.write('<tr><td bgcolor=#55bbff align=center colspan=9 width=100%><font color=#ffffff face=arial size=1><img src=http://www.abcvacanze.it/img/arrow.gif><a href="http://www.abcvacanze.it/prenota/prenotahotelpasqua.php?mail=' + Email + '" style="none"><b>Invia ora una richiesta di prenotazione.</b></a><br></font></td></tr>');

}

document.write('</table>');
document.write('<br><br>');