//
// Copyright (c) 2006 by Conor O'Mahony.
// For enquiries, please email GubuSoft@GubuSoft.com.
// Please keep all copyright notices below.
// Original author of TreeView script is Marcelino Martins.
//
// This document includes the TreeView script.
// The TreeView script can be found at http://www.TreeView.net.
// The script is Copyright (c) 2006 by Conor O'Mahony.
//
// Decide if the names are links or just the icons
USETEXTLINKS = 1 //replace 0 with 1 for hyperlinks
STARTALLOPEN = 0 //replace 0 with 1 to show the whole tree
HIGHLIGHT = 1
USEICONS = 1
BUILDALL = 1
USEFRAMES = 0
WRAPTEXT = 1
ICONPATH = "/php/rasp/wg/"
var currMapID = 'none'
var currMapType = 'none'
var currRegion = 'none'
//var Server = "http://www.ilpulcino.org/rasp/blipmapper.php?region=ITALIA_CENTRO&"
var Server = "http://www.ilpulcino.org/rasp/blipmapper.php?"
foldersTree = gFld("Windgrams", "")
foldersTree.treeID = "windgrams"
generateRadioB(foldersTree, "dayGroup", "lunedì 26 (Archivio)", "-4")
generateRadioB(foldersTree, "dayGroup", "martedì 27 (Archivio)", "-3")
generateRadioB(foldersTree, "dayGroup", "mercoledì 28 (Archivio)", "-2")
generateRadioB(foldersTree, "dayGroup", "giovedì 29 (Archivio)", "-1")
generateRadioB(foldersTree, "dayGroup", "venerdì 30", "0")
generateRadioB(foldersTree, "dayGroup", "sabato 31", "1")
generateRadioB(foldersTree, "dayGroup", "domenica 01", "2")
generateRadioB(foldersTree, "dayGroup", "lunedì 02", "3")
zoneFolder = insFld(foldersTree, gFld("Lazio e Abruzzo", "javascript:parent.op()"))
docAux = insDoc(zoneFolder, gLnk("S", "Assergi - Montecristo (AQ)", "javascript:change_map(\\'windgram\\',\\'MONTECRISTO_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Campo Imperatore (AQ)", "javascript:change_map(\\'windgram\\',\\'CIMPERATORE_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Campocatino (FR)", "javascript:change_map(\\'windgram\\',\\'CAMPOCATINO_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Cannatina (PE)", "javascript:change_map(\\'windgram\\',\\'CANNATINA_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Cervara di Roma (RM)", "javascript:change_map(\\'windgram\\',\\'CERVARA_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Civitella Roveto (AQ)", "javascript:change_map(\\'windgram\\',\\'CIVITELLA_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Cori (LT)", "javascript:change_map(\\'windgram\\',\\'CORI_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Cortino (TE)", "javascript:change_map(\\'windgram\\',\\'CORTINO_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Fondi", "javascript:change_map(\\'windgram\\',\\'FONDI_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Fumone (FR)", "javascript:change_map(\\'windgram\\',\\'FUMONE_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Laga - Macchie Piane (RI)", "javascript:change_map(\\'windgram\\',\\'MACCHIEPIANE_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Leonessa (RI)", "javascript:change_map(\\'windgram\\',\\'LEONESSA_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Magliano Dei Marsi (AQ)", "javascript:change_map(\\'windgram\\',\\'MAGLIANODEIMARSI_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Monte Lupone (LT)", "javascript:change_map(\\'windgram\\',\\'MONTELUPONE_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Monte Ocre - Decollo Est (AQ)", "javascript:change_map(\\'windgram\\',\\'M.Ocre_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Monte Velino (AQ)", "javascript:change_map(\\'windgram\\',\\'MONTEVELINO_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Norma (LT)", "javascript:change_map(\\'windgram\\',\\'NORMA_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Ofena - Panettone (AQ)", "javascript:change_map(\\'windgram\\',\\'PANETTONE_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Passo delle Capannelle (AQ)", "javascript:change_map(\\'windgram\\',\\'CAPANNELLE_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Poggio Bustone - M. Rosato (RI)", "javascript:change_map(\\'windgram\\',\\'POGGIO_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Pratica di Mare LIRE (RM)", "javascript:change_map(\\'windgram\\',\\'LIRE_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Roccasecca dei Volsci (LT)", "javascript:change_map(\\'windgram\\',\\'ROCCASECCA_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Serrone (FR)", "javascript:change_map(\\'windgram\\',\\'SERRONE_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Sezze (LT)", "javascript:change_map(\\'windgram\\',\\'SEZZE_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Sulmona - Colle delle Vacche (AQ)", "javascript:change_map(\\'windgram\\',\\'COLLEVACCHE_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Terelle (FR)", "javascript:change_map(\\'windgram\\',\\'TERELLE_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Terminillo - Pian de Valli (RI)", "javascript:change_map(\\'windgram\\',\\'TERMINILLOW_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Tivoli - Monte Ripoli (RM)", "javascript:change_map(\\'windgram\\',\\'TIVOLI_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Tocco Casauria (PE)", "javascript:change_map(\\'windgram\\',\\'TOCCO_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "ValComino (FR)", "javascript:change_map(\\'windgram\\',\\'ValComino_windgram\\',\\'ITALIA_CENTRO\\')"))
zoneFolder = insFld(foldersTree, gFld("Campania - Molise", "javascript:parent.op()"))
docAux = insDoc(zoneFolder, gLnk("S", "Alife (CE)", "javascript:change_map(\\'windgram\\',\\'ALIFE_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Bocca della Selva (BN)", "javascript:change_map(\\'windgram\\',\\'BOCCASELVA_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Campochiaro (CB)", "javascript:change_map(\\'windgram\\',\\'CAMPOCHIARO_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Campochiaro (CB) - Atterraggio", "javascript:change_map(\\'windgram\\',\\'CAMPOCHIARO_ATT_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Cima Miletto (CB)", "javascript:change_map(\\'windgram\\',\\'MATESE_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Montefalcone del Sannio (CB)", "javascript:change_map(\\'windgram\\',\\'MONTEFALCONE_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "S. Gregorio M. (CE) - Decollo M. Maio", "javascript:change_map(\\'windgram\\',\\'M.MAIO_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "San Michele (BN)", "javascript:change_map(\\'windgram\\',\\'SANMICHELE_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Tre Finestre (CB) - Decollo NE", "javascript:change_map(\\'windgram\\',\\'3FINESTRE_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Venafro (IS)", "javascript:change_map(\\'windgram\\',\\'VENAFRO_windgram\\',\\'ITALIA_CENTRO\\')"))
zoneFolder = insFld(foldersTree, gFld("Umbria - Marche", "javascript:parent.op()"))
docAux = insDoc(zoneFolder, gLnk("S", "Campello sul Clitunno (PG)", "javascript:change_map(\\'windgram\\',\\'CAMPELLO_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Castelluccio Fontanile (PG)", "javascript:change_map(\\'windgram\\',\\'FONTANILE_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Castelluccio Tabellone (PG)", "javascript:change_map(\\'windgram\\',\\'TABELLONE_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Citta' di Castello (PG)", "javascript:change_map(\\'windgram\\',\\'CITTADICASTELLO_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "E45 - Umbertide (PG)", "javascript:change_map(\\'windgram\\',\\'E45_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Forca di Presta - Vettoretto (PG)", "javascript:change_map(\\'windgram\\',\\'FORCA_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Gubbio (PG)", "javascript:change_map(\\'windgram\\',\\'GUBBIO_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Monte Catria (PU)", "javascript:change_map(\\'windgram\\',\\'M.Catria_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Monte Cucco (PG)", "javascript:change_map(\\'windgram\\',\\'CUCCO_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Monte Subasio - vers. Ovest (PG)", "javascript:change_map(\\'windgram\\',\\'SUBASIO_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Padule (PG)", "javascript:change_map(\\'windgram\\',\\'PADULE_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Piana Gubbio (PG)", "javascript:change_map(\\'windgram\\',\\'PIANA_GUBBIO_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Piana Nord Trasimeno (PG)", "javascript:change_map(\\'windgram\\',\\'TRASIMENO_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Piana Sarnano (MC)", "javascript:change_map(\\'windgram\\',\\'PIANA_SARNANO_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Piana Spello (PG)", "javascript:change_map(\\'windgram\\',\\'SPELLO_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Piana Terni (TR)", "javascript:change_map(\\'windgram\\',\\'TERNI_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Sarnano (MC)", "javascript:change_map(\\'windgram\\',\\'SARNANO_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Scheggia e Pascelupo (PG)", "javascript:change_map(\\'windgram\\',\\'SCHEGGIA_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "SS3 - Gualdo Tadino (PG)", "javascript:change_map(\\'windgram\\',\\'SS3_windgram\\',\\'ITALIA_CENTRO\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Treia (MC)", "javascript:change_map(\\'windgram\\',\\'TREIA_windgram\\',\\'ITALIA_CENTRO\\')"))
zoneFolder = insFld(foldersTree, gFld("Emilia Romagna", "javascript:parent.op()"))
docAux = insDoc(zoneFolder, gLnk("S", "Bedonia - M.te Pelpi (PR)", "javascript:change_map(\\'windgram\\',\\'M.Pelpi_windgram\\',\\'ITALIA_CN\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Monte Calvanella - Sestola (MO)", "javascript:change_map(\\'windgram\\',\\'Sestola_windgram\\',\\'ITALIA_CN\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Monte Cusna - Febbio (RE)", "javascript:change_map(\\'windgram\\',\\'Febbio_windgram\\',\\'ITALIA_CN\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Porretta Terme - Piella (BO)", "javascript:change_map(\\'windgram\\',\\'Piella_windgram\\',\\'ITALIA_CN\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Schia Montecaio - decollo M.te Caio (PR)", "javascript:change_map(\\'windgram\\',\\'M.Caio_windgram\\',\\'ITALIA_CN\\')"))
zoneFolder = insFld(foldersTree, gFld("Liguria", "javascript:parent.op()"))
docAux = insDoc(zoneFolder, gLnk("S", "Monterosso (SP)", "javascript:change_map(\\'windgram\\',\\'Monterosso_windgram\\',\\'ITALIA_CN\\')"))
zoneFolder = insFld(foldersTree, gFld("Toscana", "javascript:parent.op()"))
docAux = insDoc(zoneFolder, gLnk("S", "Croce Arcana - Cutigliano (PT)", "javascript:change_map(\\'windgram\\',\\'Croce.Arcana_windgram\\',\\'ITALIA_CN\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Diecimo - Borgo a Mozzano Lucca (LU)", "javascript:change_map(\\'windgram\\',\\'Diecimo_windgram\\',\\'ITALIA_CN\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Giogo - Scarperia (Fi)", "javascript:change_map(\\'windgram\\',\\'Giogo_windgram\\',\\'ITALIA_CN\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Iavello - Montemurlo (PO)", "javascript:change_map(\\'windgram\\',\\'Montemurlo_windgram\\',\\'ITALIA_CN\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Massanera - Regello (FI)", "javascript:change_map(\\'windgram\\',\\'Massanera_windgram\\',\\'ITALIA_CN\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Passo della Raticosa - Firenzuola (FI)", "javascript:change_map(\\'windgram\\',\\'Frenzuola_windgram\\',\\'ITALIA_CN\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Pian dei Termini - San Marcello (PT)", "javascript:change_map(\\'windgram\\',\\'P.Termini_windgram\\',\\'ITALIA_CN\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Praticino (FI)", "javascript:change_map(\\'windgram\\',\\'Praticino_windgram\\',\\'ITALIA_CN\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Prato Fiorito (FI)", "javascript:change_map(\\'windgram\\',\\'PratoFiorito_windgram\\',\\'ITALIA_CN\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "San Giuliano (PI)", "javascript:change_map(\\'windgram\\',\\'S.Gliuliano_windgram\\',\\'ITALIA_CN\\')"))
zoneFolder = insFld(foldersTree, gFld("Friuli V.G.", "javascript:parent.op()"))
docAux = insDoc(zoneFolder, gLnk("S", "Aviano - Antenne Castaldia (PN)", "javascript:change_map(\\'windgram\\',\\'Aviano_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Cercivento (UD)", "javascript:change_map(\\'windgram\\',\\'Cercivento_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Cuarnan - Gemona (UD)", "javascript:change_map(\\'windgram\\',\\'Cuarnan_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Gemona (UD)", "javascript:change_map(\\'windgram\\',\\'GEMONA_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "M. Sabotino - Gorizia (Go)", "javascript:change_map(\\'windgram\\',\\'M.Sabotino_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Meduno - M.te Valinis (PN)", "javascript:change_map(\\'windgram\\',\\'Meduno_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Nimis - M.te Bernadia (UD)", "javascript:change_map(\\'windgram\\',\\'Nimis_windgram\\',\\'ITALIA_NE\\')"))
zoneFolder = insFld(foldersTree, gFld("Trentino Alto Adige", "javascript:parent.op()"))
docAux = insDoc(zoneFolder, gLnk("S", "Acereto- Ahornach (BZ)", "javascript:change_map(\\'windgram\\',\\'C.Tures_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Alpe del Cermis - Cavalese (TN)", "javascript:change_map(\\'windgram\\',\\'Cermis_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Canazei (TN)", "javascript:change_map(\\'windgram\\',\\'Canazei_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Molveno - Decollo Alto (TN)", "javascript:change_map(\\'windgram\\',\\'Molveno_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Panarotta - Decollo Vetriolo (TN)", "javascript:change_map(\\'windgram\\',\\'Panarotta_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Passo Bordala (TN)", "javascript:change_map(\\'windgram\\',\\'P.Bordala_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Plose (BZ)", "javascript:change_map(\\'windgram\\',\\'Brixen_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Punta Cervina (BZ)", "javascript:change_map(\\'windgram\\',\\'V.Passiria_windgram\\',\\'ITALIA_NE\\')"))
zoneFolder = insFld(foldersTree, gFld("Veneto", "javascript:parent.op()"))
docAux = insDoc(zoneFolder, gLnk("S", "Alpago - Decollo Dolada (BL)", "javascript:change_map(\\'windgram\\',\\'Alpago_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Borso Decollo (TV)", "javascript:change_map(\\'windgram\\',\\'BORSO_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Campanara Decollo", "javascript:change_map(\\'windgram\\',\\'CAMPANARA_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Caprino Veronese - Decollo Grigio (VR)", "javascript:change_map(\\'windgram\\',\\'Caprino_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Cima Marana - decollo Rialto (VI)", "javascript:change_map(\\'windgram\\',\\'C.Marana_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Cogollo del Cengio - decollo Ceresana (VI)", "javascript:change_map(\\'windgram\\',\\'Cogollo_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Feltre - M.te Avena (BL)", "javascript:change_map(\\'windgram\\',\\'Feltre_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Malcesine - atterraggio (VR)", "javascript:change_map(\\'windgram\\',\\'Malcesine_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Malcesine - Decollo (VR)", "javascript:change_map(\\'windgram\\',\\'Malcesine_dec_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Pendici Pasubio (VI)", "javascript:change_map(\\'windgram\\',\\'PASUBIO_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Pieve", "javascript:change_map(\\'windgram\\',\\'PIEVE_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Pove del Grappa (VI)", "javascript:change_map(\\'windgram\\',\\'POVE_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Revine - decollo La Posa (TV)", "javascript:change_map(\\'windgram\\',\\'Revine_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Rivit - Camisino (VI)", "javascript:change_map(\\'windgram\\',\\'RIVIT_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Rubbio Decollo (TV)", "javascript:change_map(\\'windgram\\',\\'RUBBIO_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "San Bonifacio (VR)", "javascript:change_map(\\'windgram\\',\\'S.Bonifacio_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "San Germano dei Berici (VI)", "javascript:change_map(\\'windgram\\',\\'S.Germano_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Selvazzano (PD)", "javascript:change_map(\\'windgram\\',\\'Selvazzano_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Summano (VI)", "javascript:change_map(\\'windgram\\',\\'SUMMANO_windgram\\',\\'ITALIA_NE\\')"))
zoneFolder = insFld(foldersTree, gFld("Austria", "javascript:parent.op()"))
docAux = insDoc(zoneFolder, gLnk("S", "Embergeralm (Austria)", "javascript:change_map(\\'windgram\\',\\'Embergeralm_windgram\\',\\'ITALIA_NE\\')"))
zoneFolder = insFld(foldersTree, gFld("Slovenia", "javascript:parent.op()"))
docAux = insDoc(zoneFolder, gLnk("S", "Kobarid", "javascript:change_map(\\'windgram\\',\\'KOBARID_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Krn (costone sud)", "javascript:change_map(\\'windgram\\',\\'KRN_windgram\\',\\'ITALIA_NE\\')"))
docAux = insDoc(zoneFolder, gLnk("S", "Stol", "javascript:change_map(\\'windgram\\',\\'STOL_windgram\\',\\'ITALIA_NE\\')"))
//openFolderInTree(folder1);
// If your tree instead of the regular http links has "javascript:function(arg)"
// links, and the type of the argument is string, special care is needed regarding
// the quotes and double quotes. Please use exactly the same kind of
// quotes or double quotes used in this example (they change from folder to document).
// Use the exact same number of backslashes for escaping the (double)quote
// characters, and pay attention not only to the (double)quotes surrouding the
// strings, but also to any (double)quote characters inside of that string
// If you are going to use a frameless layout, you will need to move the functions
// exampleFunction and windowWithoutToolbar to the main page and change
// parent.functionname to window.functionname in this file
/**
aux3 = insFld(foldersTree, gFld("Day of the week", "javascript:parent.op()"))
generateCheckBox(aux3, "Monday", "BOX1")
generateCheckBox(aux3, "Wednesday", "BOX2")
generateCheckBox(aux3, "Friday", "BOX3")
//aux4 = insFld(foldersTree, gFld("Hour", "javascript:parent.op()"))
//Note the "S" target in the first argument of gLnk
aux5 = insFld(foldersTree, gFld("javascript: links", "javascript:parent.op()"))
//Use \" to delimit your string arguments and \\\" inside
insDoc(aux5, gLnk("S", "Window w/o bars", "javascript:parent.windowWithoutToolbar(\\\'http://www.treeview.net/treemenu/demopics/beenthere_tuscany.gif\\\', 410, 415)"))
//Use \\\' to delimit your string arguments and \\\\\\' inside
//Double quote characters (") are not allowed in the string argument
insDoc(aux5, gLnk("S", "A js: doc", "javascript:parent.exampleFunction(\\\'Special care with: " and \\\\\\'\\\')"))
//Single quote characters (') are not allowed in the string argument but you can replace them with '
aux6 = insFld(aux5, gFld("A js: folder", "javascript:parent.exampleFunction(\"Take special care with: \\\" and '\")"))
**/
/**
function doChange()
{
if (currMapID =="none") return 0;
alert ('MapType: '+currMapType+' MapID: '+currMapID+' Day: '+selected_radio('dayGroup')+' Time: '+selected_radio('timeGroup'))
}
**/
function select_next_radio(groupName, dir) {
theRadios=document.getElementsByName(groupName)
for (i=0;i"
}
// This function os similar to the one above, but instead of creating checkboxes,
// it creates radio buttons.
function generateRadioB(parentfolderObject, groupName, itemLabel, value) {
var newObj;
if ((groupName=="timeGroup" && value=="1200") || (groupName=="dayGroup" && value==0)){
checked="checked"
} else {
checked=""
}
// For an explanation of insDoc and gLnk, read the online instructions.
// They are the basis upon which TreeView is based.
newObj = insDoc(parentfolderObject, gLnk("R", itemLabel, "javascript:parent.op()"))
newObj.iconSrc = "/php/rasp/wg/calendar.gif";
// The trick to show radio buttons in a tree that was made to display links
// is to use the prependHTML. There are general instructions about this member
// in the online documentation.
newObj.prependHTML = "
"
}
// The JavaScript for the buttons at the bottom of the left-hand frame follows.
// These functions expand all nodes in the tree, collapse all nodes in the tree,
// open a specific node in the tree, or load a particular document in the
// right-hand frame.
//
// The buttons in this demo are in a separate frame both from the actual tree
// and from the actual content. If you want to include the buttons in the same
// frame as the tree, or in the same frame as the documents, move these
// functions to the appropriate file. For example, in the case of this example,
// if you want to display the buttons on the same frame as the tree, move these
// functions to the demoFuncs.html file. If you move these functions, you must
// update the DOM paths used to access the functions and used by the functions
// themselves.
// The expandTree function expands all children nodes for the specified node.
// The specified node must be a folder node.
// When the specified node is the root node, this function opens all nodes in
// the tree. When the specified is not the root node, only the children of the
// specified node are opened.
// Note that for some very large trees, the browser may time out when this
// function is used.
function expandTree(folderObj) {
var childObj;
var i;
// Open the folder
if (!folderObj.isOpen)
clickOnNodeObj(folderObj)
// Call this function for all children
for (i=0 ; i < folderObj.nChildren; i++) {
childObj = folderObj.children[i]
if (typeof childObj.setState != "undefined") { // If this is a folder
expandTree(childObj)
}
}
}
// The collapseTree function closes all nodes in the tree.
function collapseTree() {
// Close all folder nodes
clickOnNodeObj(foldersTree)
// Restore the tree to the top level
clickOnNodeObj(foldersTree)
}
// The openFolderInTree function open all children nodes of the specified
// node. Note that in order to open a folder, we need to open the parent
// folders all the way to the root. (Of course, this does not affect
// selection highlight.)
function OLDopenFolderInTree(linkID) {
var folderObj;
folderObj = findObj(linkID);
folderObj.forceOpeningOfAncestorFolders();
if (!folderObj.isOpen)
clickOnNodeObj(folderObj);
}
function openFolderInTree(folderObj) {
//folderObj.forceOpeningOfAncestorFolders();
if (!folderObj.isOpen)
clickOnNodeObj(folderObj);
}
// The loadSynchPage function load the appropriate document, as if
// the specified node on the tree was clicked. This function also
// synchronizes the frames and highlights the selection (if highlight
// is enabled).
function loadSynchPage(linkID) {
var folderObj;
docObj = findObj(linkID);
docObj.forceOpeningOfAncestorFolders();
clickOnLink(linkID,docObj.link,'basefrm');
// Scroll the tree to show the selected node.
// For this function to work with frameless pages, you will need to
// remove the following code and also probably change other code in
// these functions.
if (typeof document.body != "undefined") // To handle scrolling not working with NS4
document.body.scrollTop=docObj.navObj.offsetTop
}