﻿
var loaded	= false

var arrTop 	= new Array('Beta Cygni					::../htm/betacygni/storia.html',
						'Prodotti					::../htm/betacygni/prodotti_consulenza.html',
						'Consulenza					::../htm/betacygni/consulenza_prodotti.html',
						'Web design					::../htm/betacygni/web_design.html',
						'Competenze					::../htm/betacygni/competenze.html::UC',
						'Referenze					::../htm/betacygni/referenze.html::UC',
						'News						::../htm/betacygni/news.html::UC'
)

var arrLft 	= new Array()
var arrDtl 	= new Array()

// --------------------------------------------------------------------------------------- BETA CYGNI
arrLft[0]	= new Array('La società					::../htm/betacygni/storia.html',
						'Le persone					::../htm/betacygni/persone.html::UC',
						'Lavora con noi				::../htm/betacygni/lavora_con_noi.html::UC',
						'Contatti					::../htm/betacygni/contatti.html'
)

arrDtl[0]	= new Array()
arrDtl[0][0]= new Array('Storia della società		::../htm/betacygni/storia.html',
						'Perché "Beta Cygni"		::../htm/betacygni/betacygni.html',
						'La sede di Bologna			::../htm/betacygni/sede_bologna.html'
)
arrDtl[0][1]= new Array('Roberto Mingozzi			::../htm/persone/roberto_mingozzi.html'
)
arrDtl[0][2]= 'VOID'
arrDtl[0][3]= 'VOID'

// --------------------------------------------------------------------------------------- PRODOTTI
arrLft[1]	= new Array('Prodotti bancari			::../htm/prodotti/prodotti_banca.html::UC',
						'Supporto al doppiaggio		::../htm/prodotti/supporto_doppiaggio.html',
						'Sviluppo software			::../htm/prodotti/sviluppo_software.html::UC',
						'Abilitazioni operative		::../htm/prodotti/abilitazioni_operative.html::UC'
)

arrDtl[1]	= new Array()
arrDtl[1][0]= new Array('Concessione del Credito	::../htm/prodotti/banca/pratica_di_fido.html::UC',
						'Delibera Organi Collegiali	::../htm/prodotti/banca/organi_collegiali.html::UC'
)
arrDtl[1][1]= new Array('Conteggio righe copioni	::../htm/prodotti/doppiaggio/conteggio_righe_copioni.html',
						'Pianificazioni turni		::../htm/prodotti/doppiaggio/pianificazione_turni.html'
)
arrDtl[1][2]= new Array('Framework applicativo		::../htm/prodotti/sviluppo_software/framework_applicativo.html::UC',
						'Interactive Data-Dictionary::../htm/prodotti/sviluppo_software/data_dictionary.html::UC',
						'Documentazione HTML		::../htm/prodotti/sviluppo_software/documentazione_html.html::UC',
						'Generatore applicazioni	::../htm/prodotti/sviluppo_software/generatore_applicazioni_html.html::UC'
)
arrDtl[1][3]= 'VOID'

// --------------------------------------------------------------------------------------- CONSULENZA
arrLft[2]	= new Array('Organizzazione				::../htm/consulenza/organizzazione.html::UC',
						'Progettazione				::../htm/consulenza/progettazione.html::UC',
						'Supporto ai progetti		::../htm/consulenza/supporto_progetti.html::UC'
)

arrDtl[2]	= new Array()
arrDtl[2][0]= new Array('Business Process Review	::../htm/consulenza/organizzazione/business_process_review.html::UC',
						'Analisi di impatto			::../htm/consulenza/organizzazione/analisi_impatto.html::UC'
)
arrDtl[2][1]= new Array('Analisi dei requisiti		::../htm/consulenza/progettazione/analisi_dei_requisiti.html::UC',
						'Specifiche funzionali		::../htm/consulenza/progettazione/specifiche_funzionali.html::UC',
						'Progettazione applicativa	::../htm/consulenza/progettazione/progettazione_applicativa.html::UC'
)
arrDtl[2][2]= new Array('Project leader/manager		::../htm/consulenza/risorse_body_rental/project_leader_manager.html::UC',
						'Analista applicativo		::../htm/consulenza/risorse_body_rental/analista_applicativo.html::UC',
						'Analista tecnico			::../htm/consulenza/risorse_body_rental/analista_tecnico.html::UC',
						'Analista programmatore		::../htm/consulenza/risorse_body_rental/analista_programmatore.html::UC',
						'Specialista WEB developer	::../htm/consulenza/risorse_body_rental/specialista_web_developer.html::UC',
						'Hardware & networking		::../htm/consulenza/risorse_body_rental/sistemista.html::UC',
						'Altre figure professionali	::../htm/consulenza/risorse_body_rental/altre_figure_professionali.html::UC'
)

// --------------------------------------------------------------------------------------- WEB DESIGN
arrLft[3]	= new Array('Specificità				::../htm/web_design/specificita.html',
						'Clienti soddisfatti		::../htm/web_design/clienti_soddisfatti.html'
)

arrDtl[3]	= new Array()
arrDtl[3][0]= new Array('Approccio e linee guida	::../htm/web_design/metodologia/approccio_linee_guida.html',
						'Sviluppo di siti internet	::../htm/web_design/metodologia/sviluppo_siti_internet.html',
						'Componenti applicative		::../htm/web_design/metodologia/componenti_applicative.html'
)
arrDtl[3][1]= new Array('GIGOTEC - Gianni Golfera	::../htm/web_design/clienti/gigotec_gianni_golfera.html::UC',
						'Loggia 49 "Amore e unità"	::../htm/web_design/clienti/loggia_49_amore_unita.html::UC'
)

// --------------------------------------------------------------------------------------- COMPETENZE
arrLft[4]	= new Array('Applicative				::../htm/competenze/competenze_applicative.html::UC',
						'Tecnologiche				::../htm/competenze/competenze_tecnologiche.html::UC'
)
arrDtl[4]	= new Array()
arrDtl[4][0]= new Array('Bancarie					::../htm/competenze/applicative/banca.html::UC',
						'Assicurative				::../htm/competenze/applicative/assicurazione.html::UC',
						'Industriali				::../htm/competenze/applicative/industria.html::UC',
						'Comparto sanità			::../htm/competenze/applicative/sanita.html::UC',
						'Security e abilitazioni	::../htm/competenze/applicative/security_abilitazioni_operative.html::UC',
						'WEB developement			::../htm/competenze/applicative/web_developement.html::UC'
)
arrDtl[4][1]= new Array('Linguaggi					::../htm/competenze/tecnologiche/linguaggi_programmazione.html::UC',
						'Ambienti operativi			::../htm/competenze/tecnologiche/ambienti_operativi.html::UC',
						'Hardware & networking		::../htm/competenze/tecnologiche/hardware_e_networking.html::UC'
)

// --------------------------------------------------------------------------------------- REFERENZE
arrLft[5]	= new Array('Settore Finance			::../htm/referenze/referenze_settore_finance.html::UC',
						'Industria					::../htm/referenze/referenze_industria.html::UC',
						'Sanità						::../htm/referenze/referenze_sanita.html::UC',
						'Partners					::../htm/referenze/partners.html::UC'
)
arrDtl[5]	= new Array()
arrDtl[5][0]= new Array('Referenze bancarie			::../htm/referenze/referenze_banca.html::UC',
						'Referenze assicurative		::../htm/referenze/referenze_assicurazione.html::UC'
)
arrDtl[5][1]= 'VOID'
arrDtl[5][2]= 'VOID'
arrDtl[5][3]= new Array('Collaboriamo con...		::../htm/referenze/collaboriamo_con.html::UC',
						'Collaborano con noi...		::../htm/referenze/collaborano_con_noi.html::UC'
)

// --------------------------------------------------------------------------------------- NEWS
arrLft[6]	= new Array('Nuove release dei prodotti	::../htm/news/nuove_release_prodotti.html::UC',
						'Prodotti allo studio		::../htm/news/nuovi_prodotti.html::UC',
						'Nuovi progetti				::../htm/news/nuovi_progetti.html::UC',
						'Success case				::../htm/news/success_case.html::UC',
						'Iniziative ed eventi		::../htm/news/iniziative_eventi.html::UC'
)
arrDtl[6]	= new Array()
arrDtl[6][0]= 'VOID'
arrDtl[6][1]= new Array('Turni doppiaggio			::../htm/prodotti/doppiaggio/pianificazione_turni.html',
						'Delibera Organi Collegiali	::../htm/prodotti/banca/organi_collegiali.html::UC'
)
arrDtl[6][2]= 'VOID'
arrDtl[6][3]= 'VOID'
arrDtl[6][4]= 'VOID'

// ---------------------------------------------------------------------------------------


var curTop
var curLft
var curDtl

function setEnv(){
	curTop = -1
	curLft = -1
	curDtl = -1
	lddMEN()
	loaded = true
}

function lddMEN(){
	var newDIV
	var tagBODY = document.getElementsByTagName('BODY')[0]
	for(var i = 0; i < arrTop.length; i++){
		newDIV = document.createElement('DIV')
		newDIV.id = 'div' + i
		newDIV.className = 'hidden'
		newDIV.innerHTML = htmDIV(i)
		tagBODY.appendChild(newDIV)
	}
}

function htmDIV(iTop){
	if(arrLft[iTop] == 'VOID'){
		return '&nbsp;'
	}
	htmLft = ''
	htmLft = htmLft + '<table id="' + iTop + '" class="menuLft" cellpadding="3" cellspacing="3">'
	for(var iLft = 0; iLft < arrLft[iTop].length; iLft++){
		htmLft = htmLft + '<tr><td id="' + iTop + iLft + '" class="menuLft">'
						+ '<a class="menuLft" href="'
						+ arrLft[iTop][iLft].split('::')[1]
						+ '" target="CNT">'
						+ arrLft[iTop][iLft].split('::')[0]
						+ '</a>'
						+ '</td></tr>'
		if(arrDtl[iTop][iLft] != 'VOID'){
			htmLft = htmLft + '<tr><td><table id="dtl' + iTop + iLft + '" class="menuDtl">'
			for(var iDtl = 0; iDtl < arrDtl[iTop][iLft].length; iDtl++){
				htmLft = htmLft + '<tr><td id="' + iTop + iLft + iDtl + '" class="menuDtl">'
								+ '&nbsp;-&nbsp;'
								+ '<a class="menuDtl" href="'
								+ arrDtl[iTop][iLft][iDtl].split('::')[1]
								+ '" target="CNT">'
								+ arrDtl[iTop][iLft][iDtl].split('::')[0]
								+ '</a>'
								+ '</td></tr>'
			}
			htmLft = htmLft	+ '</table></td></tr>'
		}
	}
	htmLft = htmLft + '</table>'
	return htmLft
}

// TOP MENU SELECTION
function doTop(selTop){
	if(selTop != curTop){
		if(curTop != -1){
			document.getElementById('div' + curTop).className = 'hidden'
		}
		TOP.document.getElementById('curTop').firstChild.nodeValue = arrTop[selTop].split('::')[0]
		document.getElementById('div' + selTop).className = ''
		curTop = selTop
	}
}

// LEFT MENU EVENT LISTENERS


































