// 1 - home
// 2 - chi siamo
// 4 - album fotografico
// 8 - EB
// 16 - servizi
// 32 - ricerca
// 64 - notizie eventi
// 128 - amici
// 256 - aiuto

voci = new Array (
new Array ("index.htm", "", 2047, "logosito.gif"),
new Array ("donazione.htm", "", 1, "logodo1.jpg"),


// Chi siamo 2
new Array ("chisiamo.htm", "Chi siamo", 1+2, ""),
new Array ("statuto.htm", "Lo statuto di DEBRA Italia", 2, ""),
new Array ("cariche.htm", "Le cariche sociali di DEBRA Italia", 2, ""),
new Array ("progetti.htm", "I progetti di DEBRA Italia", 2, ""),
new Array ("shuttle.htm", "Debra Italia a bordo dello Shuttle", 2, ""),
new Array ("dove.htm", "Dove siamo", 2, ""),
   
// Cosa e' l'Epidermolisi Bollosa 8
new Array ("eb.htm", "Cosa e' l'Epidermolisi Bollosa", 1+8, ""),
new Array ("ebfaq.htm", "L’EB in sintesi", 8, ""),
new Array ("centri_eb.htm", "Centri EB nazionali", 8, ""),
new Array ("molnlycke.htm", "Il trattamento dei neonati affetti da EB", 8, ""),
new Array ("atticonvegno", "Atti del Convegno Nazionale 2007", 8, ""),

// Bambini farfalla 4
new Array ("bambini%20farfalla.htm", "I Bambini Farfalla ", 1, ""),
new Array ("bambini%20farfalla.htm", "I Bambini Farfalla ", 4, ""),
new Array ("alebon.htm", "Alessandro B.", 4, ""),
new Array ("aleriz.htm", "Alessandro R.", 4, ""),
new Array ("anna.htm", "Anna", 4, ""),
new Array ("anthos.htm", "Anthos", 4, ""),
new Array ("beatrice.htm", "Beatrice", 4, ""),
new Array ("camilla.htm", "Camilla", 4, ""),
new Array ("chiara.htm", "Chiara", 4, ""),
new Array ("davide.htm", "Davide", 4, ""),
new Array ("denis.htm", "Denis", 4, ""),
new Array ("ettore.htm", "Ettore", 4, ""),
new Array ("francesco.htm", "Francesco", 4, ""),
new Array ("jessica.htm", "Jessica", 4, ""),
new Array ("luca.htm", "Luca", 4, ""),
new Array ("marco.htm", "Marco", 4, ""),
new Array ("marina.htm", "Marina", 4, ""),
new Array ("martina.htm", "Martina", 4, ""),
new Array ("mattia.htm", "Mattia", 4, ""),
new Array ("maya.htm", "Maya", 4, ""),
new Array ("michele.htm", "Michele", 4, ""),
new Array ("riccardo.htm", "Riccardo", 4, ""),
new Array ("simona.htm", "Simona", 4, ""),
new Array ("sonia.htm", "Sonia", 4, ""),
new Array ("valeria.htm", "Valeria", 4, ""),

// Servizi 16
new Array ("servizi.htm", "Servizi", 1 + 16, ""),
new Array ("istituzioni.htm", "Istituzioni", 16, ""),
new Array ("organizzazioni.htm", "Organizzazioni", 16, ""),
new Array ("archiviolegislativo.htm", "Archivio legislativo", 16, ""),
new Array ("agevolazioni.htm", "Agevolazioni fiscali", 16, ""),
new Array ("servizisoci.htm", "Servizi riservati agli associati", 16, ""),

// Ricerca 32
new Array ("cmr.htm", "Ricerca", 1, ""),
new Array ("cmr.htm", "Al via il nuovo Centro di Medicina Rigenerativa di Modena", 32, ""),
   new Array ("deluca.htm", "Il successo della terapia genica del prof.Michele De Luca", 32, ""),
   new Array ("deluca_modena.htm", "Modena 28 febbraio 2009: il prof. Michele De Luca incontra i Bambini Farfalla", 32, ""),
   new Array ("nature.pdf", "Articolo del prof. De Luca - Nature Medicine 19/11/06", 32,"" ),
   new Array ("terapiagenica.htm", "Per saperne di più sulla terapia genica", 32, ""),
   new Array ("telethon.htm", "Nota informativa su malattia e lavoro scientifico", 32, ""),
   // Rassegna stampa 1024
new Array ("rassegna.htm", "Rassegna stampa", 1024, ""),
new Array ("amici.pdf", "Telethon Notizie (marzo 2007 - Grazie al trapianto siamo amici ''per la pelle'') ", 1024, ""),
new Array ("carlino.htm", "Il resto del Carlino (21/11/2006 - Cura genica per la pelle, pazienti da tutta italia) ", 1024, ""),
new Array ("sole24ore.htm", "Il Sole 24 Ore (23/11/2006 La terapia genica cura la pelle)", 1024, ""),
new Array ("gazzettamo.htm", "La Gazzetta di Modena (20/11/2006 Malattia genetica sconfitta a Modena)", 1024, ""),
   //new Array ("capurro.htm", "Capurro Resaarch Group (www.capurroresearch.it)", 1024, ""),
   //new Array ("serono.htm", "Fondazione Cesare Serono (www.fondazioneserono.org)", 1024, ""),
new Array ("molecularlab.htm", "Molecularlab (www.molecularlab.it 22/11/2006)", 1024, ""),
new Array ("tgr.htm", "TGR Rubriche (20/11/2006)", 1024, ""),
new Array ("rassegna.htm", "Rassegna stampa", 32, ""),


// Notizie 64
   new Array ("vacanza2008.htm", "News", 1,""),
   new Array ("bocciardo.htm", "Progetto di Legge dell'On. Bocciardo sulle MR", 64, ""),
   new Array ("crem.htm", "Inaugurazione del CReM di Modena", 64, ""),
   new Array ("vacanza2008.htm", "Vacanza DEBRA 2008", 64, ""),
   new Array ("sos5x1000.htm", "S.O.S. 5x1000", 64, ""),
   new Array ("messaggiospeciale.htm", "Messaggio speciale per i Bambini Farfalla", 64, ""),
   new Array ("letteravaleria.htm", "Lettera di Valeria a Il Giornale", 64, ""),
   new Array ("vincitoriconcorsoeurordis.htm", "Doppia vittoria EB al concorso fotografico di Eurordis", 64, ""),
   new Array ("iccrea.htm", "ICCREA per i Bambini Farfalla", 64, ""),
   new Array ("bambinifarfallasitoilgiornale.htm", "IlGiornale.it al fianco di DEBRA per il 5x1000", 64,""),
   new Array ("lunaberlusconi", "Luna ambasciatrice dei Bambini Farfalla", 64, ""),
   new Array ("brandogiorgi.htm", "Brando Giorgi al fianco di DEBRA", 64, ""),
   new Array ("peterpan29febbraio.htm", "29 febbraio: Peter Pan il Musical", 64, ""),
   new Array ("IIGiornataNazionale.htm", "II Giornata Nazionale DEBRA", 64, ""),
   new Array ("ilgiornale.htm","Nuova campagna di comunicazione DEBRA", 64, ""),
   new Array ("899606061.htm","La nuova linea della solidarietà di DEBRA Italia",64, ""),
   new Array ("ebby.htm", "Fiocco rosa in casa DEBRA", 64, ""),
   new Array ("29febbraio1.htm", "29 febbraio 2008: prima Giornata Europea delle MR", 64, ""),
   new Array ("legale.htm", "Nuovo servizio di consulenza legale", 64, ""),
   new Array ("report2007", "Report attività 2007 e progetti 2008", 64, ""),
   
   new Array ("peterpan.htm", "Archivio news 2006-2007", 64, ""),
   new Array ("report2007.htm", "", 16384, "logosito.gif"),
   new Array ("peterpan.htm", "Peter Pan il Musical e i Bambini Farfalla", 16384, ""),
   new Array ("ministro.htm", "Importante dichiarazione del ministro Livia Turco sulle MR", 16384, ""),
   new Array ("passaparola.htm", "Passaparola, Sallustio e DEBRA", 16384, ""),
   new Array ("unidea.htm", "Unicredit e DEBRA Italia", 16384, ""),
   new Array ("pelu.htm", "Piero Pelù e DEBRA", 16384, ""),
   new Array ("coordinamento.htm","L'Italia coordina le linee guida europee sulle MR", 16384, ""),
   new Array ("iacchetti.htm", "Enzo Iacchetti incontra DEBRA", 16384, ""),
   new Array ("19383.htm", "19.383,98 grazie!!!", 16384, ""),
   new Array ("risultatigiornatanazionale.htm", "RISULTATI DELLA I GIORNATA NAZIONALE DEBRA", 16384, ""),
   new Array ("caputo.htm", "Donazione in memoria del prof. Caputo", 16384, ""),
   new Array ("coopchieri.htm", "DEBRA in COOP", 16384, ""),
   new Array ("giornatanazionale.htm", "I GIORNATA NAZIONALE DEBRA", 16384, ""),
   new Array ("vacanza.htm", "VACANZA DEBRA 2007", 16384, ""),
   new Array ("corrida.htm", "DEBRA da Gerry Scotti", 16384, ""),
   new Array ("reportconvegno.htm", "31 marzo: una giornata particolare di persone straordinarie", 16384, ""),
   new Array ("convegno.htm", "CONVEGNO NAZIONALE DEBRA ITALIA", 64, ""),
   new Array ("guccini.htm", "Francesco Guccini e Michele De Luca per DEBRA Italia", 64, ""),
   new Array ("guidoni_deluca.htm", "L’incontro tra l'On.Guidoni ed il prof.De Luca", 64, ""),
   new Array ("natalizie.htm", "Straordinario successo delle iniziative natalizie promosse dai soci", 16384, ""),
   new Array ("deluca_debra.htm", "Il prof. De Luca incontra DEBRA Italia a Modena", 64, ""),
   new Array ("sidemast06.htm", "DEBRA all’81° Congresso Nazionale dei Dermatologi Italiani", 16384, ""),

new Array ("calendario.htm", "Calendario eventi", 1, ""),

// Amici 128
new Array ("amici.htm", "Gli amici di DEBRA", 1, ""),

// Aiuto 256
new Array ("aiuto.htm", "Come aiutare DEBRA", 1, ""),
new Array ("aiuto.htm", "Come aiutare DEBRA", 256, ""),
new Array ("progetti1.htm", "I progetti di DEBRA Italia", 256, ""),
new Array ("natale.htm", "Natale 2007: una farfalla sotto l'albero", 256, ""),
new Array ("dshirt.htm", "Una D-SHIRT per la ricerca", 256, ""),
new Array ("tesseramento.htm", "Diventare socio", 256, ""),
new Array ("5per1000.htm", "Donare il 5x1000", 256, ""),
new Array ("donazioneccp.htm", "Conto corrente postale", 256, ""),
new Array ("bonifico.htm","Bonifico Bancario", 256, "new.gif" ),
new Array ("shopping.htm", "Shopping Solidale", 256, ""),
new Array ("memoria.htm", "Donazioni in memoria", 256, ""),
new Array ("bomboniere.htm", "Bomboniere solidali", 256, ""),
new Array ("partnership.htm", "Partnership aziendali", 256, ""),
new Array ("eventi.htm", "Organizzazione eventi", 256, ""),
new Array ("dottorivolanti.htm", "Sostieni il progetto Dottori volanti", 256, ""),

new Array ("tesseramento1.htm", "Iscriviti a DEBRA", 1, ""),

new Array ("world.htm", "A window on EB World", 4096,""),
new Array ("institutions.htm", "Institutions & Legislation", 4096, ""),
new Array ("research.htm", "Research", 4096, "new_new.gif"),
new Array ("treatments.htm", "Treatments", 4096, ""),
new Array ("delucagazzettadimodena.htm", "Modena, Italy: Health, new Frontiers", 32768, ""),
new Array ("world.htm", "A window on EB World", 32768, ""),
new Array ("events.htm", "Special events", 4096, ""),
new Array ("agenda.htm", "Agenda", 4096, ""),
new Array ("events.htm", "Special events", 8192, ""),
new Array ("photoeurordis.htm", "The Eurordis 2008 Photo Contest winners", 8192, ""),
new Array ("shanghai.htm", "Special Olympics: 3 rare medals", 8192, ""),
new Array ("belgium.htm", "DEBRA Belgium in Rome", 8192, ""),
new Array ("links.htm", "Links", 4096, ""),

// Press area 2048 
new Array ("index.htm", "", 2048, "logosito.gif"),
new Array ("pressarea.htm", "Press Area", 1, ""),
new Array ("pressarea.htm", "Press Area", 2048, ""),
new Array ("comunicatistampa.htm", "Comunicati stampa", 2048, ""),
new Array ("pressarea.htm", "Press Area", 512, ""),
new Array ("comunicatostampa28febbraio.htm", "Comunicato stampa 28 febbraio 2008", 512,"" ),
new Array ("conferenza28_02_08", "Conferenza stampa 28 febbraio 2008", 512, ""),
new Array ("stampa.htm", "Comunicato stampa Prima Giornata Nazionale", 512, ""),
new Array ("letteraaperta.htm", "Lettera aperta: EB Estrema Bellezza", 512, ""),
new Array ("comunicati.htm", "Comunicato stampa Convegno Nazionale", 512, ""),
new Array ("rassegnastampa.htm", "Rassegna stampa", 2048, "new.gif"),


 
new Array ("contatti.htm", "Contatti", 1, ""),
new Array ("credits.htm", "Credits", 1, ""),
new Array ("forum", "Forum", 1, ""),
new Array ("5per1000.htm","", 1, "logo5x1000.jpg")

);

stdDiv = 0;

function startPage (tdId, divClass, level)
{
	var cont = 0;
	var cur = 0;
   var fileName = this.location.href.substr (this.location.href.lastIndexOf ("/") + 1);

   if (fileName == '')
      fileName = "index.htm";
    
   window.onresize = onResize;
   window.onload = onResize;

	// document.writeln('<SCRIPT type="text/javascript" for="window" event="onbeforeprint">onPrint ("hi");</SCRIPT>');
	// document.writeln('<SCRIPT type="text/javascript" for="window" event="onafterprint">onPrint ("lo");</SCRIPT>');
	document.writeln('<table class="full"><tr><td id="side"><div class="menu"><p><br></p>');

	while (cont < voci.length)
		{
      if (voci[cont][2] & level)
	   	if (voci[cont][0] == fileName && cur == 0)
            cur = cont;
         else
			   {
			   document.writeln('<p><a href="'+voci[cont][0]+'">'+voci[cont][1]);
			   if (voci[cont][3] != "")
			      document.writeln('  <img src="'+voci[cont][3]+'" border="0">');
			   document.writeln('</a></p>');
			   }
		cont ++;
		}
	document.writeln('</div></td><td id="'+tdId+'">');
	if (divClass != '')
		{
		stdDiv = 1;
		document.writeln('<div class="'+divClass+'">');
		}
   if (cur != 0)
     	document.writeln('<h1 id="titolo">'+(voci[cur][1])+'</h1>');
}   

function endPage ()
{
	if (stdDiv == 1)
		document.writeln('</div>');
	document.writeln('</td></tr></table>');
}

function bufOpen ()
{
   return (window.open ("", "bufWin", "dependent"));
}

function imgL (foto)
{
	document.writeln('<div class="fotoL">');
	document.writeln('<p><img src="'+foto+'"></p>');
	document.writeln('</div>');
}

function imgR (foto)
{
	document.writeln('<div class="fotoR">');
	document.writeln('<p><img src="'+foto+'"></p>');
	document.writeln('</div>');
}

function swf (movie)
{
	document.writeln (
      '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+
      'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,0,0"'+
      'width="100%" height="100%">'+
      '  <param name="movie" value="'+ movie + '">'+
      '  <param name="bgcolor" value="#314395">'+
      '<embed id="NSmovie" src="' + movie + '" bgcolor="#314395" width="100%" height="100%"'+
      'name="movie" type="application/x-shockwave-flash"'+
      'pluginspage="http://www.macromedia.com/go/getflashplayer">'+
      '</object>');
}


function setWidth (destId, w)
{
   dest = document.getElementById (destId);
   if (dest)
      {
      dest.style.width = w;
      if (dest.offsetWidth != w)
         dest.style.width = dest.offsetWidth;
      return (dest.style.width);
      }
   return (0);
}      

function onResize ()
{
   dest = document.getElementById ('centrata');
   if (dest)
      {
      sidebar = document.getElementById ('side');
      dest.style.marginLeft = (document.body.offsetWidth - sidebar.offsetWidth - dest.offsetWidth) / 2;
      dest.style.marginTop = (document.body.offsetHeight - dest.offsetHeight) / 2;
      }
   dest = document.getElementById ('NSmovie');
   if (dest)
      dest.height = document.body.offsetHeight;
}

