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

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

//Init valori
TipoBanner = 'Notte-Rosa';
R=-1;


// Hotel per la Notte Rosa 2008

// Hotel Regina Elena 57
R=R+1;
Htl[R]="hotel-regina-elena-57";
Lnk[R]="http://www.reginaelena57.it/";
Img[R]="http://www.abcvacanze.it/banner/hotel-regina-elena-57.jpg";
Dsc[R]="<b>Hotel Regina Elena 57</b><br>3 stelle Rimini";


// Hotel Life
R=R+1;
Htl[R]="hotel-life";
Lnk[R]="http://www.hotellife.it/";
Img[R]="http://www.abcvacanze.it/img/2b041fe9c6e7ca2311a789f0b78d93f5.jpg";
Dsc[R]="<b>Hotel Life</b><br>3 stelle Viserbella";


// Hotel Bel Sogno
R=R+1;
Htl[R]="hotel-bel-sogno";
Lnk[R]="http://www.hotelbelsogno.com/";
Img[R]="http://www.abcvacanze.it/img/1089a427303d2567aca7ffc6ea3fe754.jpg";
Dsc[R]="<b>Hotel Bel Sogno</b><br>3 stelle Bellariva";



// Hotel Paola Garden
//R=R+1;
//Htl[R]="hotel-paola-garden";
//Lnk[R]="http://www.hotelpaolagarden.com/";
//Img[R]="http://www.abcvacanze.it/img/fd436daa66f238ff61c85dee8791815e.jpg";
//Dsc[R]="<b>Hotel Paola Garden</b><br>3 stelle Bellariva";


// Hotel Gialpina
R=R+1;
Htl[R]="hotel-gialpina";
Lnk[R]="http://www.hotelgialpina.it/";
Img[R]="http://www.abcvacanze.it/img/hotel-gialpina.jpg";
Dsc[R]="<b>Hotel Gialpina</b><br>1 stella Viserba";


// Hotel Toledo
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";


// Hotel Arlesiana
R=R+1;
Htl[R]="hotel-arlesiana";
Lnk[R]="http://www.hotelarlesiana.com/";
Img[R]="http://www.abcvacanze.it/img/420601c04e1e2b9728ff1760b6324faf.jpg";
Dsc[R]="<b>Hotel Arlesiana</b><br>2 stelle San Giuliano Mare";


/*
// Hotel Nelson
R=R+1;
Htl[R]="hotel-nelson";
Lnk[R]="http://www.abcvacanze.it/hotel-consul-hotel-nelson/hotel-consul-hotel-nelson.html";
Img[R]="http://www.abcvacanze.it/img/99b6dea25ecdddaa74c9f9139da2e5be.gif";
Dsc[R]="<b>Hotel Nelson</b><br>3 stelle Riccione";
*/



// Hotel Edelweiss
R=R+1;
Htl[R]="hotel-edelweiss";
Lnk[R]="http://www.hoteledelweissriccione.it";
Img[R]="http://www.abcvacanze.it/img/hotel-edelweiss.jpg";
Dsc[R]="<b>Hotel Edelweiss</b><br>3 stelle Riccione";



// Hotel Diplomatic
R=R+1;
Htl[R]="hotel-diplomatic";
Lnk[R]="http://www.hoteldiplomatic.net";
Img[R]="http://www.abcvacanze.it/banner/hotel-diplomatic.jpg";
Dsc[R]="<b>Hotel Diplomatic</b><br>3 stelle Riccione";


/*
// Hotel Spring
R=R+1;
Htl[R]="hotel-spring";
Lnk[R]="http://www.hotelspring.it";
Img[R]="http://www.abcvacanze.it/banner/hotel-spring.jpg";
Dsc[R]="<b>Hotel Spring</b><br>3 stelle San Giuliano";
*/

/*
// Hotel Rolanda
R=R+1;
Htl[R]="hotel-rolanda";
Lnk[R]="http://www.hotelrolanda.it/";
Img[R]="http://www.abcvacanze.it/banner/hotel-rolanda.jpg";
Dsc[R]="<b>Hotel Rolanda</b><br>2 stelle Viserba";
*/

// Hotel Giumer
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";


/*
// Hotel Ca' Vanni
R=R+1;
Htl[R]="hotel-ca-vanni";
Lnk[R]="http://www.hotelcavanni.it/";
Img[R]="http://www.abcvacanze.it/banner/hotel-cavanni-notterosa.jpg";
Dsc[R]="<b>Hotel Ca' Vanni</b><br>3 stelle Rivazzurra";
*/

/*
// Hotel Patty
R=R+1;
Htl[R]="hotel-patty";
Lnk[R]="http://www.hotelpattyrimini.com/";
Img[R]="http://www.abcvacanze.it/banner/hotel-patty.jpg";
Dsc[R]="<b>Hotel Patty</b><br>2 stelle Miramare";
*/


// Hotel Grune Perle
R=R+1;
Htl[R]="hotel-grune-perle";
Lnk[R]="http://hotelgruneperle.sitonline.it/1/speciale_notte_rosa_929272.html";
Img[R]="http://www.abcvacanze.it/banner/hotel-grune-perle.jpg";
Dsc[R]="<b>Hotel Grune Perle</b><br>2 stelle Rivazzurra";



// Hotel Naica
R=R+1;
Htl[R]="hotel-naica";
Lnk[R]="http://www.hotelnaica.it/";
Img[R]="http://www.abcvacanze.it/banner/hotel-naica.jpg";
Dsc[R]="<b>Hotel Naica</b><br>3 stelle Marebello";



// 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=#FD99CD 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 La Notte Rosa 2009</b><br></font></td></tr>');

for (J=0; J<3; 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>');

			document.write('<a href="http://www.abcvacanze.net/banner/openurl.asp?url=' + Lnk[R] + '&tipo=' + TipoBanner + '&htl=' + Htl[R] + '" target="_blank">');	// Link
			document.write('<img src=' + Img[R] + ' border=0 />');										// Immagine
			document.write('</a>');
			
			document.write('</td>');
			document.write('<td width=10></td>');
		}
		else {
			document.write('<td align=center width=100>');
			document.write('<img src="http://www.abcvacanze.it/img/vuoto.jpg" border=0 />');			// Immagine vuota
			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('</font>');
			document.write('</td>');
			document.write('<td width=10></td>');
		}
	}
}
document.write('</table>');