// ***********************************
// Script per la rotazione in home
// di banner 250x232, al posto del
// modulo calendario
// ***********************************

// ***********************************
//  Banner quadro in homepage
// ***********************************

QuadBanners = new Array(); x = 0;

// 0 = descrizione
// 1 = link
// 2 = url immagine del banner
// 3 = se il link deve mandare ad un link esterno: N per No e S per Si

  QuadBanners[x] = new Array();
  QuadBanners[x][0] = "PSDR Choice Gallery - Steam Force by Danka";
  QuadBanners[x][1] = "http://www.psdrevolution.it/forum/index.php?autocom=gallery&req=sc&cat=10";
  QuadBanners[x][2] = "http://www.psdrevolution.it/forum/psdr/quadri/010_Danka_SteamForce.jpg";
  QuadBanners[x][3] = "N"; x++;

  QuadBanners[x] = new Array();
  QuadBanners[x][0] = "PSDR Choice Gallery - Take a Café by Massy";
  QuadBanners[x][1] = "http://www.psdrevolution.it/forum/index.php?autocom=gallery&req=sc&cat=10";
  QuadBanners[x][2] = "http://www.psdrevolution.it/forum/psdr/quadri/010_Massy_Take-a-Cafè.jpg";
  QuadBanners[x][3] = "N"; x++;
  
  QuadBanners[x] = new Array();
  QuadBanners[x][0] = "PSDR Choice Gallery - Senza Titolo (Calcografia) by MauSic";
  QuadBanners[x][1] = "http://www.psdrevolution.it/forum/index.php?autocom=gallery&req=sc&cat=10";
  QuadBanners[x][2] = "http://www.psdrevolution.it/forum/psdr/quadri/010_MauSic_Calcografie.jpg";
  QuadBanners[x][3] = "N"; x++;

  QuadBanners[x] = new Array();
  QuadBanners[x][0] = "PSDR Choice Gallery - Alla ricerca di nuovi Stimoli by Selvag60";
  QuadBanners[x][1] = "http://www.psdrevolution.it/forum/index.php?autocom=gallery&req=sc&cat=10";
  QuadBanners[x][2] = "http://www.psdrevolution.it/forum/psdr/quadri/010_Selvag60_Alla-ricerca-di-nuovi-stimoli.jpg";
  QuadBanners[x][3] = "N"; x++;

  QuadBanners[x] = new Array();
  QuadBanners[x][0] = "PSDR Choice Gallery - Ombre e nebbia by Serbis";
  QuadBanners[x][1] = "http://www.psdrevolution.it/forum/index.php?autocom=gallery&req=sc&cat=10";
  QuadBanners[x][2] = "http://www.psdrevolution.it/forum/psdr/quadri/010_Serbis_Ombre-e-nebbia.jpg";
  QuadBanners[x][3] = "N"; x++;

  QuadBanners[x] = new Array();
  QuadBanners[x][0] = "PSDR Choice Gallery - we will be here by TCK";
  QuadBanners[x][1] = "http://www.psdrevolution.it/forum/index.php?autocom=gallery&req=sc&cat=10";
  QuadBanners[x][2] = "http://www.psdrevolution.it/forum/psdr/quadri/010_TCK_We-will-be-here.jpg";
  QuadBanners[x][3] = "N"; x++;

  QuadBanners[x] = new Array();
  QuadBanners[x][0] = "PSDR Choice Gallery - Alcuni scatti ad'una amica by Etto";
  QuadBanners[x][1] = "http://www.psdrevolution.it/forum/index.php?autocom=gallery&req=sc&cat=10";
  QuadBanners[x][2] = "http://www.psdrevolution.it/forum/psdr/quadri/010_Etto_alcuni-scatti-ad-una-amica.jpg";
  QuadBanners[x][3] = "N"; x++;

// ***********************************
//  La funzione di scelta e
//  visualizzazione random
// ***********************************

function Banner250() {
   max = QuadBanners.length;
   ban = Math.floor(Math.random()*max);  //ne prende una a caso tra 0 e x.
   if (QuadBanners[ban][1] == "N") target = "' target='_top'";
   else target = "' target='_new'";
   document.write("<span style=''><a href='"+QuadBanners[ban][1]+target+">");
   document.write("<img src='"+QuadBanners[ban][2]+"' style='width:250px;height:232px;border:0px;' alt='"+QuadBanners[ban][0]+"'/></a></span>");
   }
function AllBanners() {
   max = QuadBanners.length;
   for (x=0;x<max;x++) {
     // inizia il ciclo per scriverli tutti.
     if (QuadBanners[x][1] == "N") target = "' target='_top'";
     else target = "' target='_new'";
     document.write("<p><a href='"+QuadBanners[x][1]+target+">");
     document.write("<img src='"+QuadBanners[x][2]+"' style='width:250px;height:232px;border:0px;' alt='"+QuadBanners[x][0]+"'/></a></p>");
     }
   }
