var passo=0;  //0 dall'inizio , 9 per saltare l'introduzione   
var fade=80; // lentezza delle transizioni
var lentezza_acqua=300; // velocità di simulazione delle onde

var lentezza_rotaz=60
var larghezza_rotaz=1

var tendina=0; //0 testo senza tendina, 1 apre la tendina ma non la chiude, 2 chiude una tendina aperta, 3 apre e chiude 
var lascia=0;
var apri=1;
var chiudi=2;
var aprichiudi=3;

var lentezza_txt=100; // velocità dell'animazione del testo
var step_txt=10; // passo di espansione
var dim_txt=4; // variabile per dimensioni delle scritte nell'animazione dei testi
var min_txt=4;
var max_txt=60;

var end_txt=20;  // dimensioni del testo che segue l'animazione
var spiega_txt=16;  // dimensioni del testo di spiegazione tasti
var key_txt=13;  // dimensioni delle scritte dei tasti
var lang_txt=20; // dimensioni del testo scelta lingue iniziale
var k_txt=100;   // fattore di riduzione del testo per la compensazione delle preferenze del browser

var contalang=0;
/*
if
{
}
*/

var offsetx=167; //39;
var offsety=32; //36;

var abilitatasti=1;        // abilita le normali funzioni dei tasti
var abilitatastoEndDemo=0; // disabilita le funzioni associate

var lingue=6;
var lingua=0;


var lingua_disponibile=new Array(lingue);
lingua_disponibile[0]=1; // italiano
lingua_disponibile[1]=1; // inglese
lingua_disponibile[2]=0; // francese
lingua_disponibile[3]=0; // tedesco
lingua_disponibile[4]=0; // spagnolo
lingua_disponibile[5]=0; // portoghese

var txt_linguanondisp=new Array(lingue);
txt_linguanondisp[0]='spiacente... verrà utilizzato l\'Italiano'
txt_linguanondisp[1]='sorry... English will be used instead'
txt_linguanondisp[2]='sorry...'
txt_linguanondisp[3]='sorry...'
txt_linguanondisp[4]='sorry...'
txt_linguanondisp[5]='sorry...'


// scritte dei tasti

var txt_tasto1=new Array(lingue);
txt_tasto1[0]='<b>Videoregistratori<br>digitali (DVR)</b>'
txt_tasto1[1]='<b>Digital Video<br>Recorder (DVR)</b>'
var txt_tasto2=new Array(lingue);
txt_tasto2[0]='<b>Localizzatori<br>GPS telelink</b>';
txt_tasto2[1]='<b>GPS Locator<br>telelink</b>';
var txt_tasto3=new Array(lingue);
txt_tasto3[0]='<b>Allarmi senza<br>fili e cablati</b>';
txt_tasto3[1]='<b>Wireless and<br>standard alarms</b>';
var txt_tasto4=new Array(lingue);
txt_tasto4[0]='<b>Domotica e<br>videocitofonia</b>';
txt_tasto4[1]='<b>Domotic and<br>videodoorphones</b>';
var txt_tasto5=new Array(lingue);
txt_tasto5[0]='<b>Telecamere TVCC<br>e accessori</b>';
txt_tasto5[1]='<b>CCTV cameras<br>and accessories</b>';
var txt_tasto6=new Array(lingue);
txt_tasto6[0]='<b>Impianti TVCC<br>e di allarme</b>';
txt_tasto6[1]='<b>TVCC and alarms<br>installation</b>';
var txt_tasto7=new Array(lingue);
txt_tasto7[0]='<b>Piattaforme<br>PC 12V</b>';
txt_tasto7[1]='<b>12V PC<br>platforms</b>';
var txt_tasto11=new Array(lingue);
txt_tasto11[0]='<b>DVR demo</b>';
txt_tasto11[1]='<b>DVR demo</b>';
var txt_tasto12=new Array(lingue);
txt_tasto12[0]='<b>Obiettivi</b>';
txt_tasto12[1]='<b>Lens choice</b>';
var txt_tasto13=new Array(lingue);
txt_tasto13[0]='<b>Dovnloads</b>';
txt_tasto13[1]='<b>Dovnloads</b>';
var txt_tasto14=new Array(lingue);
txt_tasto14[0]='<b>Dove siamo</b>';
txt_tasto14[1]='<b>Reach us</b>';


var lnk_tasto1=new Array(lingue);
lnk_tasto1[0]='security/index.html'
lnk_tasto1[1]='security/index1.html'
var lnk_tasto2=new Array(lingue);
lnk_tasto2[0]='localizzazione/index.html';
lnk_tasto2[1]='localizzazione/index1.html';
var lnk_tasto3=new Array(lingue);
lnk_tasto3[0]='allarmi/index.html';
lnk_tasto3[1]='allarmi/index1.html';
var lnk_tasto4=new Array(lingue);
lnk_tasto4[0]='domotica/index.html';
lnk_tasto4[1]='domotica/index1.html';
var lnk_tasto5=new Array(lingue);
lnk_tasto5[0]='telecamere/index.html';
lnk_tasto5[1]='telecamere/index1.html';
var lnk_tasto6=new Array(lingue);
lnk_tasto6[0]='impianti/index.html';
lnk_tasto6[1]='impianti/index1.html';
var lnk_tasto7=new Array(lingue);
lnk_tasto7[0]='pc/index.html';
lnk_tasto7[1]='pc/index1.html';
var lnk_tasto11=new Array(lingue);
lnk_tasto11[0]='#';
lnk_tasto11[1]='#';
var lnk_tasto12=new Array(lingue);
lnk_tasto12[0]='obiettivi.html';
lnk_tasto12[1]='obiettivi1.html';
var lnk_tasto13=new Array(lingue);
lnk_tasto13[0]='downloads.html';
lnk_tasto13[1]='downloads1.html';
var lnk_tasto14=new Array(lingue);
lnk_tasto14[0]='info.html';
lnk_tasto14[1]='info1.html';


//var txt_scelta=new Array(lingue);
//txt_scelta='<img src="images_flags/uk.gif" border="0">&nbsp;Please choise your language<br><img src="images_flags/france.gif" border="0">&nbsp;S\'il vous plaît choise votre langue<br><img src="images_flags/germ.gif" border="0">&nbsp;Bitte choise Ihre Sprache<br><img src="images_flags/spain.gif" border="0">&nbsp;Por favor choise su lengua';


// testi che spiegano la funzione dei tasti

var txt_spiega1=new Array(lingue);
txt_spiega1[0]='produciamo videoregistratori digitali professionali s/o Linux il cui programma è completamente sviluppato da noi; offriamo aggiornamenti <b>GRATUITI</b> e la possibilità di adattare il programma alle Vs. esigenze; possiamo anche progettare e fornire apparecchiature per la cattura e l\'elaborazione delle immagini...'
txt_spiega1[1]='we produce s/o Linux professional Digital Video Recorders whose software is fully develped by us and their software upgrades are FREE for you!!...'
var txt_spiega2=new Array(lingue);
txt_spiega2[0]='ecco un sistema di localizzazione GPS di costruzione italiana, principalmente pensato per applicazioni veicolari ma che può essere inserito anche doppio fondo di una valigia; trasmette la sua posizione via GSM/GPRS e gestisce all\'occorrenza allarmi e funzionalità di blocco motore via Internet o tramite un cellulare...';
txt_spiega2[1]='this is a GPS locator mainly developed for veiculars tracing';
var txt_spiega3=new Array(lingue);
txt_spiega3[0]='offriamo componenti (centraline e sensori) per impianti di allarme di tipo convenzionale o senza-fili (wireless), questi ultimi rappresentano una alternativa molto interessante per edifici esistenti, ove si preferisca ridurre al minimo le opere murarie...<br>';
txt_spiega3[1]='we offer components for conventional and wireless alarms...<br>';
var txt_spiega4=new Array(lingue);
txt_spiega4[0]='videocitofoni di nostra produzione con grado di protezione antivandalo e soluzioni integrate per l\'automazione e la sorveglianza TVCC negli edifici, con prodotti Italiani!<br><br>';
txt_spiega4[1]='real antivandal Video Doorphones and integrated solution of videosurveillance and Domotic products<br><br>';
var txt_spiega5=new Array(lingue);
txt_spiega5[0]='importazione diretta di telecamere e di accessori per gli impianti TVCC<br><br><br>';
txt_spiega5[1]='direct import of TVCC cameras and accessories<br><br><br>';
var txt_spiega6=new Array(lingue);
txt_spiega6[0]='affidateVi a noi per la realizzazione completa dei Vostri impianti di allarme, di telelocalizzazione e di sorveglianza TVCC, la nostra esperienza nella progettazione e costruzione dei dispositivi Vi garantirà il pieno soddisfacimento delle Vostre necessità al miglior costo';
txt_spiega6[1]='we can give you full service: not only TVCC and alarm components but also installation';
var txt_spiega7=new Array(lingue);
txt_spiega7[0]='piattaforme PC a 12V a basso consumo, piattaforme PC personalizzate e sviluppo di applicazioni custom s/o Linux';
txt_spiega7[1]='low power 12V PC platforms, customized PC platforms s/o Linux ';

var txt_spiega11=new Array(lingue);
txt_spiega11[0]='Vuoi toccare con mano la semplicità d\'uso dei videoregistratori digitali di nostra produzione?<br>Premi questo pulsante per una visita virtuale guidata al nostro software ...<br>'
txt_spiega11[1]='Would you like to make a virtual tour in our Digital Video Recorder software? If so click here...<br>'
var txt_spiega12=new Array(lingue);
txt_spiega12[0]='Ecco una guida per scegliere correttamente obiettivo, telecamera e illuminatore;<br>premi questo pulsante per iniziare...<br><br>';
txt_spiega12[1]='Here you can find a guide to a correct choice of lens, cameras and illuminators for your surveillance system...<br><br>';
var txt_spiega13=new Array(lingue);
txt_spiega13[0]='Qui è possibile scaricare:<br>- l\'ultimo aggiornamento del software dei nostri videoregistratori<br>- il manuale dei videoregistratori in formato pdf<br>- i cataloghi di telecamere, obiettivi, illuminatori,  etc...<br>';
txt_spiega13[1]='Here you can download:<br>- the last update of software for our Digital Video Recorders<br>- the manual of our Digital Video Recorders in pdf format<br>- the catalogues of cameras, lens and other TVCC accessories and more...<br>';
var txt_spiega14=new Array(lingue);
txt_spiega14[0]='il nostro indirizzo è:<br> via Vittorio Veneto 8 - 20030 Bovisio Masciago (MI) - tel. 0362 559013<br>volete una piantina e maggiori informazioni su di noi?';
txt_spiega14[1]='our address is:<br> via Vittorio Veneto 8 - 20030 Bovisio Masciago (MI) - tel. 0362 559013,<br>click here to learn how to reach us';


var txt_anim1=new Array(lingue);
txt_anim1[0]='affidabilità';
txt_anim1[1]='reliability';
txt_anim1[2]='';
txt_anim1[3]='';
txt_anim1[4]='';
txt_anim1[5]='confiança';
var txt_anim2=new Array(lingue);
txt_anim2[0]='qualità';
txt_anim2[1]='quality';
txt_anim2[2]='';
txt_anim2[3]='';
txt_anim2[4]='';
txt_anim2[5]='qualidade';
var txt_anim3=new Array(lingue);
txt_anim3[0]='competenza';
txt_anim3[1]='competence';
txt_anim3[2]='';
txt_anim3[3]='';
txt_anim3[4]='';
txt_anim3[5]='competência';

var txt_intro1=new Array(lingue);
txt_intro1[0]='e tutta l\'assistenza che solo un produttore può dare';
txt_intro1[1]='and all the assistence that only a producer can offer';
var txt_intro2=new Array(lingue);
txt_intro2[0]='perchè non c\'è nessuno che conosce le cose...';
txt_intro2[1]='because there isn\'t anyone else that know things...';
var txt_intro3=new Array(lingue);
txt_intro3[0]='meglio di chi le ha progettate e realizzate...';
txt_intro3[1]='better than the one that has developed and built them...';
var txt_intro4=new Array(lingue);
txt_intro4[0]='ed è disposto ad ascoltare le Vostre esigenze';
txt_intro4[1]='and that can listen to your needs';
var txt_intro5=new Array(lingue);
txt_intro5[0]='';


//var txt_=new Array(lingue);
//txt_[0]='';

var moto_acqua=1;

var colors=5;
var nero=0;
var rosso=1;
var blu=2;
var verde=3;
var giallo=4;
var color_txt=nero; //stabilisce il colore del testo

var color0txt=new Array(colors);
var color1txt=new Array(colors);
var color2txt=new Array(colors);
var color3txt=new Array(colors);
var color4txt=new Array(colors);
var color5txt=new Array(colors);
var color6txt=new Array(colors);
var color7txt=new Array(colors);
var color8txt=new Array(colors);
var color9txt=new Array(colors);

color0txt[nero]='#FFFFFFFF';
color1txt[nero]='#CCCCCCCC';
color2txt[nero]='#AAAAAAAA';
color3txt[nero]='#88888888';
color4txt[nero]='#66666666';
color5txt[nero]='#44444444';
color6txt[nero]='#22222222';
color7txt[nero]='#00000000';

color0txt[blu]='#FFFFFFFF';
color1txt[blu]='#CCCCCCFF';
color2txt[blu]='#AAAAAAFF';
color3txt[blu]='#888888FF';
color4txt[blu]='#666666FF';
color5txt[blu]='#444444FF';
color6txt[blu]='#222222FF';
color7txt[blu]='#000000FF';

color0txt[rosso]='#FFFFFFFF';
color1txt[rosso]='#FFCCCCCC';
color2txt[rosso]='#FFAAAAAA';
color3txt[rosso]='#FF888888';
color4txt[rosso]='#FF666666';
color5txt[rosso]='#FF444444';
color6txt[rosso]='#FF222222';
color7txt[rosso]='#FF000000';

color0txt[verde]='#FFFFFFFF';
color1txt[verde]='#CCFFFFCC';
color2txt[verde]='#AAFFFFAA';
color3txt[verde]='#88FFFF88';
color4txt[verde]='#66FFFF66';
color5txt[verde]='#44FFFF44';
color6txt[verde]='#22FFFF22';
color7txt[verde]='#00FFFF00';

color0txt[giallo]='#FFFFFFFF';
color1txt[giallo]='#FFFFFFCC';
color2txt[giallo]='#FFFFFFAA';
color3txt[giallo]='#FFFFFF88';
color4txt[giallo]='#FFFFFF66';
color5txt[giallo]='#FFFFFF44';
color6txt[giallo]='#FFFFFF22';
color7txt[giallo]='#FFFFFF00';



var ax1='0';
var ay1='0';
var ax2='0';
var ay2='0';
var ax3='0';
var ay3='0';
var ax4='0';
var ay4='0';
var passo_muovi=0;
var alentezza=150;

var xtext=' ';
//var tempo=2000;
var passo_scrivi=0;
var xpermanenza=0;
var xlentezza=150;
var mascheraMoto=1;

var correzFrecciax=-16;
var correzFrecciay=-15;

//=============================================================================================================
// aggiunte demo

var txt_DemoOut=new Array(lingue);
txt_DemoOut[0]='Dimostrazione conclusa,<br>attendere prego...';
txt_DemoOut[1]='Demo is finished,<br>please wait... ';
txt_DemoOut[2]='';
txt_DemoOut[3]='';
txt_DemoOut[4]='';
txt_DemoOut[5]='';

var txt_intro6=new Array(lingue);
txt_intro6[0]='Dopo aver acceso il Videoregistratore Digitale...';
txt_intro6[1]='After having turned the Digital Video Recorder on... ';
txt_intro6[2]='';
txt_intro6[3]='';
txt_intro6[4]='';
txt_intro6[5]='Depois ter acendido o Registrador Vídeo Digital';

var txt_scusa=new Array(lingue);
txt_scusa[0]='spiacente... non è consentito'
txt_scusa[1]='sorry... it is not permitted'
txt_scusa[2]='désolé... il n\'est pas permis'
txt_scusa[3]='schade... wird es nicht erlaubt'
txt_scusa[4]='lamentable... no es permitido'
txt_scusa[5]='arrependido... não é permitido'

var txt_endDemo=new Array(lingue);
txt_endDemo[0]='<b>Fine DVR demo</b>'
txt_endDemo[1]='<b>End DVR demo</b>'
txt_endDemo[2]='<b></b>'
txt_endDemo[3]='<b></b>'
txt_endDemo[4]='<b></b>'
txt_endDemo[5]='<b></b>'

// demo

var txt_quad_ini=new Array(lingue);
txt_quad_ini[0]='... vedremo la schermata iniziale che mostra tutte le immagini che avete scelto di visualizzare';
txt_quad_ini[1]='... we will see the initial screen that shows all the images selected for the surveillance purpose';
txt_quad_ini[2]='...';
txt_quad_ini[3]='...';
txt_quad_ini[4]='...';
txt_quad_ini[5]='... a tela inicial mostra todas as imagens selecionadas para o objetivo de vigilância';
var txt_quad_exp=new Array(lingue);
txt_quad_exp[0]='per espandere a pieno schermo e ridimensionare un\'immagine è sufficente cliccare su di essa';
txt_quad_exp[1]='in order to enlarge one of the images, or to return to a quad-view, just click on it';
txt_quad_exp[2]='';
txt_quad_exp[3]='';
txt_quad_exp[4]='';
txt_quad_exp[5]='para alargar uma das imagens, ou voltar a uma visão de quadrângulo, somente clique nele';
var txt_quad_contr=new Array(lingue);
txt_quad_contr[0]='se si clicca sul bordo destro si apre il pannello di controllo da cui';
txt_quad_contr[1]='when clicking on the right bord of the image, a control menu appears from which';
txt_quad_contr[2]='';
txt_quad_contr[3]='';
txt_quad_contr[4]='';
txt_quad_contr[5]='clicando à direita bord da imagem, um cardápio de controle aparece de que';
var txt_quad_film=new Array(lingue);
txt_quad_film[0]='è possibile rivedere i filmati registrati,';
txt_quad_film[1]='you can: access to the stored movies,';
txt_quad_film[2]='';
txt_quad_film[3]='';
txt_quad_film[4]='';
txt_quad_film[5]='';
var txt_quad_rec=new Array(lingue);
txt_quad_rec[0]='fare partire o fermare la registrazione,';
txt_quad_rec[1]='start/stop the video-recording,';
txt_quad_rec[2]='';
txt_quad_rec[3]='';
txt_quad_rec[4]='';
txt_quad_rec[5]='';
var txt_quad_key=new Array(lingue);
txt_quad_key[0]='modificare il livello di accesso,';
txt_quad_key[1]='modify the access level,';
txt_quad_key[2]='';
txt_quad_key[3]='';
txt_quad_key[4]='';
txt_quad_key[5]='';
var txt_quad_off=new Array(lingue);
txt_quad_off[0]='spegnere il videoregistratore,';
txt_quad_off[1]='switch off the video-recorder,';
txt_quad_off[2]='';
txt_quad_off[3]='';
txt_quad_off[4]='';
txt_quad_off[5]='';
var txt_quad_man=new Array(lingue);
txt_quad_man[0]='aprire il manuale in linea,';
txt_quad_man[1]='open the on-line User Manual,';
txt_quad_man[2]='';
txt_quad_man[3]='';
txt_quad_man[4]='';
txt_quad_man[5]='';
var txt_quad_brand=new Array(lingue);
txt_quad_brand[0]='controllare le telecamere brandeggiabili';
txt_quad_brand[1]='control the dome cameras';
txt_quad_brand[2]='';
txt_quad_brand[3]='';
txt_quad_brand[4]='';
txt_quad_brand[5]='control the dome cameras';
var txt_quad_inst=new Array(lingue);
txt_quad_inst[0]='e accedere al pannello di installazione';
txt_quad_inst[1]='and access the install menu';
txt_quad_inst[2]='';
txt_quad_inst[3]='';
txt_quad_inst[4]='';
txt_quad_inst[5]='';
var txt_inst=new Array(lingue);
txt_inst[0]='qui luminosità, contrasto, colore e saturazione di ciascuna immagine possono essere modificate; '+
  'per cambiare canale è sufficiente cliccare sulle frecce di navigazione in alto a destra';
txt_inst[1]='brightness, contrast, color and saturation of each image can be here adjusted; '+
  'to change the video-channel, simply click on top-right navigation arrows';
txt_inst[2]=''
txt_inst[3]=''
txt_inst[4]=''
txt_inst[5]=''
var txt_inst_moto=new Array(lingue);
txt_inst_moto[0]='ora apriremo il pannello di programmazione del rilievo di moto';
txt_inst_moto[1]='now let us have a look at the motion detection programming menu';
txt_inst_moto[2]='';
txt_inst_moto[3]='';
txt_inst_moto[4]='';
txt_inst_moto[5]='';
var txt_moto=new Array(lingue);
txt_moto[0]='ogni telecamera ha una maschera di moto che può essere programmata con estrema facilità: '+
   'potrete scegliere sensibilità diverse per aree diverse e introdurre filtraggi spazio-temporali';
txt_moto[1]='each camera has a motion-mask that can be easily programmed: '+
   'different sesitivity levels and time-space filters can be user-defined';
txt_moto[2]='';
txt_moto[3]='';
txt_moto[4]='';
txt_moto[5]='';
var txt_inst_all=new Array(lingue);
txt_inst_all[0]='siamo tornati al pannello delle impostazioni per accedere alle schede di installazione completa';
txt_inst_all[1]='returning back to the main menu, we can now select the complete install menu';
txt_inst_all[2]='';
txt_inst_all[3]='';
txt_inst_all[4]='';
txt_inst_all[5]='';
var txt_all_imm=new Array(lingue);
txt_all_imm[0]='nella scheda IMMAGINI si possono cambiare: titolazione, formato di cattura delle immagini, dimensioni e qualità dei filmati MPEG e dei fotogrammi JPEG';
txt_all_imm[1]='in the IMAGES section it is possible to choose: titles, image capture form, dimensions and type of compression of the MPEG movies and JPEG images';
txt_all_imm[2]='';
txt_all_imm[3]='';
txt_all_imm[4]='';
txt_all_imm[5]='';
var txt_all_imm1=new Array(lingue);
txt_all_imm1[0]='una tastiera virtuale permette di cambiare la titolazione usando solo il mouse';
txt_all_imm1[1]='a virtual keypad allows titles editing by simply using the mouse';
txt_all_imm1[2]='';
txt_all_imm1[3]='';
txt_all_imm1[4]='';
txt_all_imm1[5]='';

var txt_all_monitor=new Array(lingue);
txt_all_monitor[0]='nella scheda MONITOR si può scegliere quali immagini mostrare, come e dove visualizzarle';
txt_all_monitor[1]='in the MONITOR section it is possible to choose which images to show, how and where to show them';
txt_all_monitor[2]='';
txt_all_monitor[3]='';
txt_all_monitor[4]='';
txt_all_monitor[5]='';
var txt_all_orario=new Array(lingue);
txt_all_orario[0]='nella scheda ORARIO è possibile programmare per ciascuna telecamera quando registrare, abilitare il rilievo di moto, accettare allarmi, generare allarmi';
txt_all_orario[1]='in the TIMING section it is possible to program (by each camera) when record, enable the motion detection, accept alarms, generate alarms';
txt_all_orario[2]='';
txt_all_orario[3]='';
txt_all_orario[4]='';
txt_all_orario[5]='';
var txt_all_varie=new Array(lingue);
txt_all_varie[0]='nella scheda VARIE possiamo configurare la rete, i destinatari delle email di allarme, l\'accesso http, la modalità di cancellazione automatica dei filmati';
txt_all_varie[1]='in the OTHER section it is possible to configure the newtwork, the email addresses for alarms, the http access, the automatic erasing of old movies';
txt_all_varie[2]='';
txt_all_varie[3]='';
txt_all_varie[4]='';
txt_all_varie[5]='';
var txt_all_processi=new Array(lingue);
txt_all_processi[0]='nella scheda PROCESSI si possono scegliere funzioni esterne e operazioni di manutenzione da effettuare al riavvio';
txt_all_processi[1]='in the PROCESS section it is possible to choose external functions and other maintenance features to run at start-up';
txt_all_processi[2]='';
txt_all_processi[3]='';
txt_all_processi[4]='';
txt_all_processi[5]='';
var txt_all_porte=new Array(lingue);
txt_all_porte[0]='la scheda PORTE permette di programmare gli ingressi e le uscite digitali';
txt_all_porte[1]='in the PORTS section digital inputs/outputs can be programmed';
txt_all_porte[2]='';
txt_all_porte[3]='';
txt_all_porte[4]='';
txt_all_porte[5]='';
var txt_all_hardware=new Array(lingue);
txt_all_hardware[0]='nella scheda HARDWARE possiamo cambiare il numero di canali associati ad ogni scheda di acquisizione, salvare e recuperare le impostazioni da pendisk';
txt_all_hardware[1]='in the HARDWARE section we can set the number of channels per each acquisition and we can save / restore the initial settings to / from a pendisk';
txt_all_hardware[2]='';
txt_all_hardware[3]='';
txt_all_hardware[4]='';
txt_all_hardware[5]='';
var txt_quad_film_entra=new Array(lingue);
txt_quad_film_entra[0]='ora diamo un\'occhiata al pannello di navigazione che permette di visionare i filmati registrati';
txt_quad_film_entra[1]='we can now give a look to the menu allowing the show of recorded movies';
txt_quad_film_entra[2]='';
txt_quad_film_entra[3]='';
txt_quad_film_entra[4]='';
txt_quad_film_entra[5]='';
var txt_film=new Array(lingue);
txt_film[0]='quì si può scegliere un filmato registrato, per rivederlo in moviola, esportarlo su pendisk o estrarre le immagini che interessano';
txt_film[1]='it is possible to select a recorded movie, to see it in a slow-motion, to export it on a pendisk or to extract interesting images';
txt_film[2]='';
txt_film[3]='';
txt_film[4]='';
txt_film[5]='';
var txt_film1=new Array(lingue);
txt_film1[0]='supponiamo di voler vedere un filmato';
txt_film1[1]='suppose we want to see a movie';
txt_film1[2]='';
txt_film1[3]='';
txt_film1[4]='';
txt_film1[5]='';
var txt_film2=new Array(lingue);
txt_film2[0]='e ora inseriamo un pendisk e lo esportiamo';
txt_film2[1]='we can then use a pendisk and export the file';
txt_film2[2]='';
txt_film2[3]='';
txt_film2[4]='';
txt_film2[5]='';
var txt_film3=new Array(lingue);
txt_film3[0]='poi chiudiamo il visore e usciamo dal pannello di navigazione';
txt_film3[1]='after that, we can select the exit button from the menu';
txt_film3[2]='';
txt_film3[3]='';
txt_film3[4]='';
txt_film3[5]='';
var txt_quad_toglicontr=new Array(lingue);
txt_quad_toglicontr[0]='cliccando sul bordo destro togliamo il pannello laterale';
txt_quad_toglicontr[1]='by clicking on the right bord the menu can be hidden';
txt_quad_toglicontr[2]='';
txt_quad_toglicontr[3]='';
txt_quad_toglicontr[4]='';
txt_quad_toglicontr[5]='';
var txt_quad_tutte=new Array(lingue);
txt_quad_tutte[0]='e cliccando sull\'immagine la rimpiccioliamo rendendo visibili anche le altre';
txt_quad_tutte[1]='while clicking on the image, the quad vision appears again';
txt_quad_tutte[2]='';
txt_quad_tutte[3]='';
txt_quad_tutte[4]='';
txt_quad_tutte[5]='';
var txt_bye=new Array(lingue);
txt_bye[0]='grazie per aver seguito questa presentazione';
txt_bye[1]='thank you for your attention';
txt_bye[2]='';
txt_bye[3]='';
txt_bye[4]='';
txt_bye[5]='';







//=============================================================================================================



///document.getElementById('layer1').style.top= offsety;
///document.getElementById('layer_msk').style.top= offsety;
///document.getElementById('layer2').style.top= offsety;
///document.getElementById('layer_txt').style.top= offsety;
///document.getElementById('layer4').style.top= offsety;
///document.getElementById('layer1').style.left= offsetx;
///document.getElementById('layer_msk').style.left= offsetx;
///document.getElementById('layer2').style.left= offsetx;
///document.getElementById('layer_txt').style.left= offsetx;
///document.getElementById('layer4').style.left= offsetx;

// attenzione: mozzilla firefoz non accetta:
//    document.getElementById('sfondo_pannello_quad').background='images/griglia.gif';

// browser & os detection -----------------------------------------------------

var detect = navigator.userAgent.toLowerCase();
var OS,browser,version,total,thestring;
//
if (checkIt('konqueror'))
{
	browser = "Konqueror";
	OS = "Linux";
}
else if (checkIt('safari')) browser = "Safari"
else if (checkIt('omniweb')) browser = "OmniWeb"
else if (checkIt('opera')) browser = "Opera"
else if (checkIt('webtv')) browser = "WebTV";
else if (checkIt('icab')) browser = "iCab"
else if (checkIt('msie')) browser = "Internet Explorer"
else if (!checkIt('compatible'))
{
	browser = "Netscape Navigator"
	version = detect.charAt(8);
}
else browser = "An unknown browser";
//
if (!version) version = detect.charAt(place + thestring.length);
//
if (!OS)
{
	if (checkIt('linux')) OS = "Linux";
	else if (checkIt('x11')) OS = "Unix";
	else if (checkIt('mac')) OS = "Mac"
	else if (checkIt('win')) OS = "Windows"
	else OS = "an unknown operating system";
}
//
function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}
//-----------------------------------------------------------------

function testObj()
{
	if (document.getElementById)
	{
		//alert('ById')
	}
	else if (document.all)
	{
		//alert('document.all')
		alert('si consiglia di aggiornare la versione del browser');
	}
	else if (document.layers)
	{
		//alert('document.layers')
		alert('si consiglia di aggiornare la versione del browser');
	}
}


function writit(text,id)
{
	if (document.getElementById)
	{
		x = document.getElementById(id);
		x.innerHTML = '';
		x.innerHTML = text;
	}
	else if (document.all)
	{
		x = document.all[id];
		x.innerHTML = text;
	}
	else if (document.layers)
	{
		x = document.layers[id];
		text2 = '<P CLASS="testclass">' + text + '</P>';
		x.document.open();
		x.document.write(text2);
		x.document.close();
	}
}


function scrivi1()
{
   var yxy=0;
   var stempo=0;
   var xlentezza2=xlentezza/2;
   
   if ( (tendina==1) || (tendina==3) )
   {
     if(passo_scrivi==yxy)
     {
      document.getElementById('sfondo_testo').src='images/tendina1.gif';
      stempo=xlentezza2;
     }
     yxy++;
     if(passo_scrivi==yxy)
     {
      document.getElementById('sfondo_testo').src='images/tendina2.gif';
      stempo=xlentezza2;
     }
     yxy++;
     if(passo_scrivi==yxy)
     {
      document.getElementById('sfondo_testo').src='images/tendina3.gif';
      stempo=xlentezza2;
     }
     yxy++;
     if(passo_scrivi==yxy)
     {
      document.getElementById('sfondo_testo').src='images/tendina4.gif';
      stempo=xlentezza2;
     }
     yxy++;
   }

/*
   if(passo_scrivi==yxy)
   {
     // document.getElementById('tab_testo').background='images/bianco.gif';
     document.getElementById('testo').color='white';
     stempo=xlentezza;
   }
   yxy++;
   if(passo_scrivi==yxy)
   {
     writit(xtext,'testo');
     document.getElementById('testo').color=color0txt[color_txt];
     stempo=xlentezza*2;
   }
   yxy++;

   if(passo_scrivi==yxy)
   {
     document.getElementById('testo').color=color1txt[color_txt];
     stempo=xlentezza*2;
   }
   yxy++;
   if(passo_scrivi==yxy)
   {
     document.getElementById('testo').color=color2txt[color_txt];
     stempo=xlentezza*2;
   }
   yxy++;
*/
   if(passo_scrivi==yxy)
   {
     writit(xtext,'testo');
     document.getElementById('testo').color=color3txt[color_txt];
     stempo=xlentezza*4;
   }
   yxy++;
   if(passo_scrivi==yxy)
   {
     document.getElementById('testo').color=color4txt[color_txt];
     stempo=xlentezza*4;
   }
   yxy++;
   if(passo_scrivi==yxy)
   {
     document.getElementById('testo').color=color5txt[color_txt];
     stempo=xlentezza*4;
   }
   yxy++;
   if(passo_scrivi==yxy)
   {
     document.getElementById('testo').color=color6txt[color_txt];
     stempo=xlentezza*4;
   }
   yxy++;
   if(passo_scrivi==yxy)
   {
     document.getElementById('testo').color=color7txt[color_txt];
     stempo=xpermanenza-((50*xlentezza)+500);
   }
   yxy++;

   if(passo_scrivi==yxy)
   {
     document.getElementById('testo').color=color6txt[color_txt];
     stempo=xlentezza*4;
   }
   yxy++;
   if(passo_scrivi==yxy)
   {
     document.getElementById('testo').color=color5txt[color_txt];
     stempo=xlentezza*4;
   }
   yxy++;
   if(passo_scrivi==yxy)
   {
     document.getElementById('testo').color=color4txt[color_txt];
     stempo=xlentezza*4;
   }
   yxy++;
   if(passo_scrivi==yxy)
   {
     document.getElementById('testo').color=color3txt[color_txt];
     stempo=xlentezza*4;
   }
   yxy++;
/*
   if(passo_scrivi==yxy)
   {
     document.getElementById('testo').color=color2txt[color_txt];
     stempo=xlentezza*2;
   }
   yxy++;
   if(passo_scrivi==yxy)
   {
     document.getElementById('testo').color=color1txt[color_txt];
     stempo=xlentezza*2;
   }
   yxy++;
   if(passo_scrivi==yxy)
   {
     document.getElementById('testo').color=color0txt[color_txt];
     stempo=xlentezza*2;
   }
   yxy++;
*/
   if(passo_scrivi==yxy)
   {
     writit(' ','testo');
     stempo=xlentezza*2;
   }
   yxy++;

   if ( (tendina==2) || (tendina==3) )
   {

     if(passo_scrivi==yxy)
     {
       document.getElementById('sfondo_testo').src='images/tendina4.gif';
       stempo=xlentezza2;
     }
     yxy++;
     if(passo_scrivi==yxy)
     {
       document.getElementById('sfondo_testo').src='images/tendina3.gif';
       stempo=xlentezza2;
     }
     yxy++;
     if(passo_scrivi==yxy)
     {
       document.getElementById('sfondo_testo').src='images/tendina2.gif';
       stempo=xlentezza2;
     }
     yxy++;
     if(passo_scrivi==yxy)
     {
       document.getElementById('sfondo_testo').src='images/tendina1.gif';
       stempo=xlentezza2;
     }
     yxy++;
     if(passo_scrivi==yxy)
     {
       //document.getElementById('tab_testo').background='images/spazio.gif';
       document.getElementById('sfondo_testo').src='images/spazio.gif';
     }
     yxy++;
   }
   if(passo_scrivi==yxy)
   {
     stempo=0;
   }
   if (stempo>0)
   {
     passo_scrivi++;
     setTimeout('scrivi1()',stempo);
   }
   else
   {
     //all'uscita passo_scrivi==0
     passo_scrivi=0;
   }
}



function scrivi(lentezza, permanenza, text)
{
   var yxy=0;
   var sstempo=0;
   xtext=text;
   xpermanenza=permanenza-1000;
   xlentezza=lentezza;
   if(xpermanenza<((50*xlentezza)+500))
      alert('errore: deve essere permanenza<(50*lentezza)');
   //alert('2) ' + xtext);
   sstempo=100;
   setTimeout('scrivi1()',sstempo);
   passo_scrivi=0;
}






function lampeggioFreccia1()
{
   document.getElementById('freccia').src='images/freccia1.gif';
}

function lampeggioFreccia(durata)
{
   document.getElementById('freccia').src='images/freccia2.gif';
   setTimeout('lampeggioFreccia1()',durata);
   passo_scrivi=0;
}

function posFreccia(x,y)
{
   document.getElementById('freccia').src='images/freccia1.gif';
   document.getElementById('layer3').style.top=y+offsety+correzFrecciay;
   document.getElementById('layer3').style.left=x+offsetx+correzFrecciax;
}


function togliFreccia()
{
   document.getElementById('freccia').src='images/spazio.gif';
}


function  lampMascheraMoto1()
{
   document.getElementById('schpieno_msk').src='images_demo/motomsk1.gif';
   setTimeout('lampMascheraMoto()',1000);
}

function  lampMascheraMoto()
{
   if (mascheraMoto)
   {
      document.getElementById('schpieno_msk').src='images_demo/motomsk2.gif';
      setTimeout('lampMascheraMoto1()',1000);
   }
   else
   {
      // termina togliendo la maschera
      document.getElementById('schpieno_msk').src='images/spazio.gif';
   }
}



function  acqua3()
{
      //document.getElementById('schpieno_low').src='images/htskyr4.jpg';
      document.getElementById('schpieno_low4').width=0;
      document.getElementById('schpieno_low4').height=0;
      document.getElementById('schpieno_low1').width=600;
      document.getElementById('schpieno_low1').height=191;
      setTimeout('acqua()',lentezza_acqua);
}

function  acqua2()
{
      //document.getElementById('schpieno_low').src='images/htskyr3.jpg';
      document.getElementById('schpieno_low3').width=0;
      document.getElementById('schpieno_low3').height=0;
      document.getElementById('schpieno_low4').width=600;
      document.getElementById('schpieno_low4').height=191;
      setTimeout('acqua3()',lentezza_acqua);
}


function  acqua1()
{
      //document.getElementById('schpieno_low').src='images/htskyr2.jpg';
      document.getElementById('schpieno_low2').width=0;
      document.getElementById('schpieno_low2').height=0;
      document.getElementById('schpieno_low3').width=600;
      document.getElementById('schpieno_low3').height=191;
      setTimeout('acqua2()',lentezza_acqua);
}

function  acqua()
{
   if (moto_acqua)
   {
      document.getElementById('schpieno_low1').width=0;
      document.getElementById('schpieno_low1').height=0;
      document.getElementById('schpieno_low2').width=600;
      document.getElementById('schpieno_low2').height=191;
      setTimeout('acqua1()',lentezza_acqua);
   }
}

/*
function  precarica_immagini()
{
   var i=0;
   // crea object
   imageObj= new Image();
   // crea l'array acqua
   imm= new Array(); 
   imm[0]="'images/htskyr1.jpg'"
   imm[1]="'images/htskyr1.jpg'"
   imm[2]="'images/htskyr1.jpg'"
   // precarica
   for (i=0;i<=2;i++)
   {
   }
}
*/


function zoom_txt(finoa)
{
   dim_txt=dim_txt+step_txt;
   document.getElementById('testo').style.fontSize=dim_txt;
   if (dim_txt<finoa)
   {
     passo--; //resta su questa istruzione fino al raggiungimento della larghezza finale
   }
}


   
function allarga_imm(increm,finoa)
{
   larghezza_rotaz +=increm;
   document.getElementById('sfondo_testo').width=larghezza_rotaz
   if (larghezza_rotaz<finoa)
   {
     passo--; //resta su questa istruzione fino al raggiungimento della larghezza finale
   }
}

function stringi_imm(decr,finoa)
{
   larghezza_rotaz -=decr;
   document.getElementById('sfondo_testo').width=larghezza_rotaz
   if (larghezza_rotaz>finoa)
   {
     passo--; //resta su questa istruzione fino al raggiungimento della larghezza finale
   }
}


//=======================================================================
// funzioni dei tasti del navigatore


function myMouseOver(btnum)
{
 if (abilitatasti)
 {
  //document.getElementById('tasto'+ btnum.toString()).src="images/bt_rosso.gif"
  document.getElementById('tasto'+ btnum.toString()).width=0;
  document.getElementById('tasto'+ btnum.toString()+'o').width=133;
  document.getElementById('spiegaimm').src='images/spiegaimm'+btnum.toString()+'.gif';
  if (btnum==1) 
  {
    writit(txt_spiega1[lingua],'spiegasottotxt');
    writit(txt_spiega1[lingua],'spiegatxt');
  }
  if (btnum==2) 
  {
    writit(txt_spiega2[lingua],'spiegasottotxt');
    writit(txt_spiega2[lingua],'spiegatxt');
  }
  if (btnum==3) 
  {
    writit(txt_spiega3[lingua],'spiegasottotxt');
    writit(txt_spiega3[lingua],'spiegatxt');
  }
  if (btnum==4) 
  {
    writit(txt_spiega4[lingua],'spiegasottotxt');
    writit(txt_spiega4[lingua],'spiegatxt');
  }
  if (btnum==5)
  {
    writit(txt_spiega5[lingua],'spiegasottotxt');
    writit(txt_spiega5[lingua],'spiegatxt');
  }
  if (btnum==6)
  {
    writit(txt_spiega6[lingua],'spiegasottotxt');
    writit(txt_spiega6[lingua],'spiegatxt');
  }
  if (btnum==7)
  {
    writit(txt_spiega7[lingua],'spiegasottotxt');
    writit(txt_spiega7[lingua],'spiegatxt');
  }
  if (btnum==11)
  {
    writit(txt_spiega11[lingua],'spiegasottotxt');
    writit(txt_spiega11[lingua],'spiegatxt');
  }
  if (btnum==12)
  {
    writit(txt_spiega12[lingua],'spiegasottotxt');
    writit(txt_spiega12[lingua],'spiegatxt');
  }
  if (btnum==13)
  {
    writit(txt_spiega13[lingua],'spiegasottotxt');
    writit(txt_spiega13[lingua],'spiegatxt');
  }
  if (btnum==14)
  {
    writit(txt_spiega14[lingua],'spiegasottotxt');
    writit(txt_spiega14[lingua],'spiegatxt');
  }
 }
 if (abilitatastoEndDemo)
  if (btnum==11)
  {
    document.getElementById('tasto'+ btnum.toString()).width=0;
    document.getElementById('tasto'+ btnum.toString()+'o').width=133;
  }
}

function myMouseOut(btnum)
{
   document.getElementById('tasto'+ btnum.toString()+'o').width=0;
   document.getElementById('tasto'+ btnum.toString()).width=133;
   writit(' ','spiegasottotxt');
   writit(' ','spiegatxt');
   document.getElementById('spiegaimm').src='images/spazio.gif';
}

function myMouseClick(btnum)
{
 if (abilitatasti)
 {
   //document.getElementById('tasto'+ btnum.toString()).src="images/bt_bianco.gif"
   //alert("!!!");
  if (btnum==11)
  {
    passo=1000
  }
 }
 if (abilitatastoEndDemo)
  if (btnum==11)
  {
    //concludi la demo del dvr
    document.getElementById('schpieno').src='images_demo/nero.jpg';
    writit(txt_DemoOut[lingua],'spiegasottotxt');
    writit(txt_DemoOut[lingua],'spiegatxt');
    passo=1900
  }
}

// --- funzioni relative al layer per la scelta della lingua ---

function setlangMouseOver(xxlang)
{
   document.getElementById('testo_lang'+ xxlang.toString()).color='orange'
   contalang=0;     // sospendi l'attesa
}

function setlangMouseOut(xxlang)
{
   document.getElementById('testo_lang'+ xxlang.toString()).color='red'
   contalang=0;    // sospendi l'attesa
}

function setlangClick(xxlang)
{
   if (lingua_disponibile[xxlang]==0) 
   {
     lingua=1; // alle lingue non disponibili associa l'inglese
     writit(txt_linguanondisp[lingua],'spiegasottotxt');
     writit(txt_linguanondisp[lingua],'spiegatxt');
   }
   else
   {
     lingua=xxlang;
   }
   
   contalang=1000; // forza l'uscita dal ciclo di attesa
}

// --- funzioni per il controllo delle dimensioni dei caratteri e delle scritte sui tasti ----

function TestChSize()
{
	// verifica le impostazioni del browser per aggiustare la dimensione dei caratteri dei tasti
	// h=0 significa che il browser non permette il test
	var h=0;
	var scaling=100;
	if ((document.createElement) && (document.createTextNode))
	{
		document.writeln('<div id="emsTest" style="position:absolute; visibility:hidden; font-family:arial,helvetica,sans-serif">&nbsp;<br />&nbsp;<br />&nbsp;<br />&nbsp;<br />&nbsp;<br /></div>');
		scaling=100;
		//if ((navigator.platform=="Win32") && (navigator.appName=="Microsoft Internet Explorer")) scaling=110;
		if (navigator.platform=="Win32") scaling=110;
		h=999;
		if (document.getElementById('emsTest').clientHeight) h=parseInt(document.getElementById('emsTest').clientHeight);
		else if (document.getElementById('emsTest').offsetHeight) h=parseInt(document.getElementById('emsTest').offsetHeight);
		//if (h<85) document.body.style.fontSize=Math.round(scaling*90/h)+"%";
		//alert(h.toString());
	}
	return Math.round((h*100)/scaling);
}


function old_initasti()
{
   // verifica le impostazioni del browser
   var ch_dim= TestChSize();
   // prepara i tasti con le scritte per la scelta del linguaggio
   //document.getElementById('testo_tasto1').size=2;
   //document.getElementById('testo_tasto2').face="sans-serif";
   writit(txt_tasto1[lingua],'testo_tasto1');
   writit(txt_tasto2[lingua],'testo_tasto2');
   writit(txt_tasto3[lingua],'testo_tasto3');
   writit(txt_tasto4[lingua],'testo_tasto4');
   writit(txt_tasto5[lingua],'testo_tasto5');
   writit(txt_tasto6[lingua],'testo_tasto6');
   writit(txt_tasto7[lingua],'testo_tasto7');
   //writit('<img src=\'images_flags/uk.gif\' border=0> &nbsp;<b>ENGLISH</b>','testo_tasto11');
   //writit('<img src=\'images_flags/france.gif\' border=0> &nbsp;<b>FRANCAIS</b>','testo_tasto12');
   //writit('<img src=\'images_flags/germ.gif\' border=0> &nbsp;<b>DEUTSCHE</b>','testo_tasto13');
   //writit('<img src=\'images_flags/spain.gif\' border=0> &nbsp;<b>ESPANIOL</b>','testo_tasto14');
   writit(txt_tasto11[lingua],'testo_tasto11');
   writit(txt_tasto12[lingua],'testo_tasto12');
   writit(txt_tasto13[lingua],'testo_tasto13');
   writit(txt_tasto14[lingua],'testo_tasto14');
   // in IE non vengono inizializzati correttamente i bottoni in basso a destra
   // con firefox questa funzione è inutile
   document.getElementById('tasto11o').width=0;
   document.getElementById('tasto12o').width=0;
   document.getElementById('tasto13o').width=0;
   document.getElementById('tasto14o').width=0;
   //
   //writit(ch_dim,'testo_tasto11');
   //k_txt=Math.round(scaling*90/h)+"%";
   k_txt= Math.round((89*100)/ch_dim);
   //writit(k_txt,'testo_tasto12');
   key_txt= Math.round((key_txt*k_txt)/100);
   //writit(key_txt,'testo_tasto13');
   document.getElementById('navigatore_txt').style.fontSize=key_txt;
   document.getElementById('navigatore1_txt').style.fontSize=key_txt;
   document.getElementById('htesto').style.fontSize=key_txt;
   document.getElementById('testo').style.fontSize=end_txt;
   document.getElementById('spiegatxt').style.fontSize=spiega_txt;
   document.getElementById('spiegasottotxt').style.fontSize=spiega_txt;
   min_txt= Math.round(k_txt*min_txt/100)
   max_txt= Math.round(k_txt*max_txt/100)
   end_txt= Math.round(k_txt*end_txt/100)
   spiega_txt= Math.round(k_txt*spiega_txt/100)
   lang_txt= Math.round(k_txt*lang_txt/100)
}


function initasti()
{
   abilitatastoEndDemo=0; // disabilita le funzioni associate
   abilitatasti=0; // disabilita le funzioni associate
   // togli i riferimenti alle pagine html
   document.getElementById('navlink1').href='#';
   document.getElementById('navlink2').href='#';
   document.getElementById('navlink3').href='#';
   document.getElementById('navlink4').href='#';
   document.getElementById('navlink5').href='#';
   document.getElementById('navlink6').href='#';
   document.getElementById('navlink7').href='#';
   document.getElementById('navlink11').href='#';
   document.getElementById('navlink12').href='#';
   document.getElementById('navlink13').href='#';
   document.getElementById('navlink14').href='#';
   document.getElementById('testo_tasto1').color='black';
   document.getElementById('testo_tasto2').color='black';
   document.getElementById('testo_tasto3').color='black';
   document.getElementById('testo_tasto4').color='black';
   document.getElementById('testo_tasto5').color='black';
   document.getElementById('testo_tasto6').color='black';
   document.getElementById('testo_tasto7').color='black';
   document.getElementById('testo_tasto11').color='black';
   document.getElementById('testo_tasto12').color='black';
   document.getElementById('testo_tasto13').color='black';
   document.getElementById('testo_tasto14').color='black';
   // togli eventuali scritte residue
   writit(' ','spiegasottotxt');
   writit(' ','spiegatxt');
   document.getElementById('spiegaimm').src='images/spazio.gif';
   // verifica le impostazioni del browser
   var ch_dim= TestChSize();
   // in IE non vengono inizializzati correttamente i bottoni in basso a destra
   // con firefox questa funzione è inutile
   document.getElementById('tasto11o').width=0;
   document.getElementById('tasto12o').width=0;
   document.getElementById('tasto13o').width=0;
   document.getElementById('tasto14o').width=0;
   //
   //writit(ch_dim,'testo_tasto11');
   //k_txt=Math.round(scaling*90/h)+"%";
   k_txt= Math.round((89*100)/ch_dim);
   //writit(k_txt,'testo_tasto12');
   key_txt= Math.round((key_txt*k_txt)/100);
   //writit(key_txt,'testo_tasto13');
   min_txt= Math.round(k_txt*min_txt/100)
   max_txt= Math.round(k_txt*max_txt/100)
   end_txt= Math.round(k_txt*end_txt/100)
   spiega_txt= Math.round(k_txt*spiega_txt/100)
   lang_txt= Math.round(k_txt*lang_txt/100)
   document.getElementById('navigatore_txt').style.fontSize=key_txt;
   document.getElementById('navigatore1_txt').style.fontSize=key_txt;
   document.getElementById('htesto').style.fontSize=key_txt;
   document.getElementById('testo').style.fontSize=end_txt;
   document.getElementById('spiegatxt').style.fontSize=spiega_txt;
   document.getElementById('spiegasottotxt').style.fontSize=spiega_txt;
   document.getElementById('tab_lang').style.fontSize=lang_txt;
}


function attivaTasti()
{
   abilitatastoEndDemo=0; // disabilita le funzioni associate
   // prepara i tasti con le scritte nella lingua scelta
   writit(txt_tasto1[lingua],'testo_tasto1');
   writit(txt_tasto2[lingua],'testo_tasto2');
   writit(txt_tasto3[lingua],'testo_tasto3');
   writit(txt_tasto4[lingua],'testo_tasto4');
   writit(txt_tasto5[lingua],'testo_tasto5');
   writit(txt_tasto6[lingua],'testo_tasto6');
   writit(txt_tasto7[lingua],'testo_tasto7');
   writit(txt_tasto11[lingua],'testo_tasto11');
   writit(txt_tasto12[lingua],'testo_tasto12');
   writit(txt_tasto13[lingua],'testo_tasto13');
   writit(txt_tasto14[lingua],'testo_tasto14');
   // cambia i riferimenti alle pagine html nelle diverse lingue
   document.getElementById('navlink1').href=lnk_tasto1[lingua];
   document.getElementById('navlink2').href=lnk_tasto2[lingua];
   document.getElementById('navlink3').href=lnk_tasto3[lingua];
   document.getElementById('navlink4').href=lnk_tasto4[lingua];
   document.getElementById('navlink5').href=lnk_tasto5[lingua];
   document.getElementById('navlink6').href=lnk_tasto6[lingua];
   document.getElementById('navlink7').href=lnk_tasto7[lingua];
   document.getElementById('navlink11').href='#'; //lnk_tasto11[lingua];
   document.getElementById('navlink12').href=lnk_tasto12[lingua];
   document.getElementById('navlink13').href=lnk_tasto13[lingua];
   document.getElementById('navlink14').href=lnk_tasto14[lingua];
   //document.getElementById('navlink14').href='#';
   document.getElementById('testo_tasto1').color='yellow';
   document.getElementById('testo_tasto2').color='yellow';
   document.getElementById('testo_tasto3').color='yellow';
   document.getElementById('testo_tasto4').color='yellow';
   document.getElementById('testo_tasto5').color='yellow';
   document.getElementById('testo_tasto6').color='yellow';
   document.getElementById('testo_tasto7').color='yellow';
   document.getElementById('testo_tasto11').color='yellow';
   document.getElementById('testo_tasto12').color='yellow';
   document.getElementById('testo_tasto13').color='yellow';
   document.getElementById('testo_tasto14').color='yellow';
   abilitatasti=1; // abilita le funzioni associate
}



function disattivaTasti()
{
   // annerisci le scritte e disattiva
   abilitatasti=0; // disabilita le funzioni associate ai tasti
   // togli i riferimenti alle pagine html
   document.getElementById('navlink1').href='#';
   document.getElementById('navlink2').href='#';
   document.getElementById('navlink3').href='#';
   document.getElementById('navlink4').href='#';
   document.getElementById('navlink5').href='#';
   document.getElementById('navlink6').href='#';
   document.getElementById('navlink7').href='#';
   document.getElementById('navlink11').href='#';
   document.getElementById('navlink12').href='#';
   document.getElementById('navlink13').href='#';
   document.getElementById('navlink14').href='#';
   document.getElementById('testo_tasto1').color='black';
   document.getElementById('testo_tasto2').color='black';
   document.getElementById('testo_tasto3').color='black';
   document.getElementById('testo_tasto4').color='black';
   document.getElementById('testo_tasto5').color='black';
   document.getElementById('testo_tasto6').color='black';
   document.getElementById('testo_tasto7').color='black';
   document.getElementById('testo_tasto11').color='black';
   document.getElementById('testo_tasto12').color='black';
   document.getElementById('testo_tasto13').color='black';
   document.getElementById('testo_tasto14').color='black';
   // togli eventuali scritte residue
   writit(' ','spiegasottotxt');
   writit(' ','spiegatxt');
   document.getElementById('spiegaimm').src='images/spazio.gif';
}

function attivaTastoEndDemo()
{
   writit(txt_endDemo[lingua],'testo_tasto11');
   document.getElementById('testo_tasto11').color='red';
   abilitatastoEndDemo=1; // abilita le funzioni associate
}


function setLang()
{
    // estrae l'indicazione relativa alla lingua dall'URL
    // ad esempio per selezionare l'Italiano: http://www.htd.it?0
    // ?0 italiano
    // ?1 inglese
    // ?2 francese
    // ?3 tedesco
    // ?4 spagnolo
    // ?5 portoghese
    var ook=0;
    var locate = window.location
    document.fff.hhh.value = locate
    var str = document.fff.hhh.value
    var point =0;
    point = str.indexOf("?");
    if (point>0)
    {
        lingua=parseInt(str.substring(point+1,str.length))
        ook=1;
        //alert (lingua); 
    }
    return(ook);
    //document.write("lingua: " + lingua);
}



//================================================================================================

function nextstep()
{
 // alert('ok');
 // document.getElementById('layer2').style.top=vpos.toString()+'px';
 var xxx=0;
 var tempo=0;
 var sposta_testo=0;

 
 // inizializza nullo il campo testo e carica l'immagine animata di sfondo
 if(passo==xxx)
 {
   tempo=2500;
   self.resizeTo(1000,774)  
   //document.getElementById('spiegatxt').color='black';
   //document.getElementById('spiegatxt').color='blue';
   //document.getElementById('spiegatxt').color='darkgreen';
   document.getElementById('spiegatxt').color='red';
   
   //document.getElementById('spiegasottotxt').color='yellow';
   document.getElementById('spiegasottotxt').color='lightyellow';
   // document.getElementById('spiegasottotxt').color='black';
   // scritta
   tendina=lascia;
   writit(' ','testo');
   writit(' ','spiegasottotxt');
   writit(' ','spiegatxt');
   //posFreccia(518,388);
   //alert(browser);
   //testObj()
   document.getElementById('sfondo_testo').border='0'
   document.getElementById('testo').color='red';
   //document.getElementById('testo').size='5';
   document.getElementById('testo').style.fontSize=end_txt;
   document.getElementById('spiegatxt').style.fontSize=spiega_txt;
   document.getElementById('spiegasottotxt').style.fontSize=spiega_txt;
   document.getElementById('schpieno').height='241';
   document.getElementById('schpieno_low1').height='191';
   document.getElementById('schpieno').src='images/htsky1.jpg';
   document.getElementById('schpieno_low1').src='images/htskyr1.jpg';
   initasti();
   acqua();
   contalang=0;
 }
 xxx++;


 if(passo==xxx)
 {
   tempo=500;
   attivaTasti();
   // se la pagina è stata chiamata con la lingua impostata salta oltre
   if (setLang()) 
     passo=passo+2; 
   //altrimenti porta a galla il layer per la scelta della lingua
   else 
     document.getElementById('layer_lang').style.zIndex=10
 }
 xxx++;


 // hai 6 secondi per scegliere la lingua, default=italiano
 if(passo==xxx)
 {
   tempo=500;
   contalang++;
   if (contalang<12) passo--; //resta fermo
 }
 xxx++;

/*
 if(passo==xxx)
 {
   tempo=2500;
   document.getElementById('testo').style.fontSize=lang_txt;
   document.getElementById('tab_testo').width=400;
   document.getElementById('testo_align').align='left'
   //writit(txt_scelta,'testo');
 }
 xxx++;

 
 if(passo==xxx)
 {
   tempo=500;
   document.getElementById('testo_tasto11').color="blue"
   document.getElementById('testo_tasto12').color="yellow"
   document.getElementById('testo_tasto13').color="yellow"
   document.getElementById('testo_tasto14').color="yellow"
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=500;
   document.getElementById('testo_tasto11').color="yellow"
   document.getElementById('testo_tasto12').color="blue"
   document.getElementById('testo_tasto13').color="yellow"
   document.getElementById('testo_tasto14').color="yellow"
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=500;
   document.getElementById('testo_tasto11').color="yellow"
   document.getElementById('testo_tasto12').color="yellow"
   document.getElementById('testo_tasto13').color="blue"
   document.getElementById('testo_tasto14').color="yellow"
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=500;
   document.getElementById('testo_tasto11').color="yellow"
   document.getElementById('testo_tasto12').color="yellow"
   document.getElementById('testo_tasto13').color="yellow"
   document.getElementById('testo_tasto14').color="blue"
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=2500;
   document.getElementById('testo_tasto11').color="yellow"
   document.getElementById('testo_tasto12').color="yellow"
   document.getElementById('testo_tasto13').color="yellow"
   document.getElementById('testo_tasto14').color="yellow"
 }
 xxx++;
*/

 // metti a pieno schermo il testo
 if(passo==xxx)
 {
   tempo=100;
   //togli il layer per la scelta della lingua
   document.getElementById('layer_lang').style.zIndex=0
   //
   document.getElementById('tab_testo').width=600;
   document.getElementById('tab_testo').height=432;
   writit(' ','testo');
   document.getElementById('testo_align').align='center'
 }
 xxx++;

 //cambia le scritte nella lingua scelta
 if(passo==xxx)
 {
   tempo=200;
   attivaTasti();
 }
 xxx++;


 // carica il testo da animare
 if(passo==xxx)
 {
   tempo=lentezza_txt*2;
   dim_txt=min_txt;
   document.getElementById('testo').style.fontSize=dim_txt;
   writit(txt_anim1[lingua],'testo');
 }
 xxx++;
 //anima il testo
 if(passo==xxx)
 {
   tempo=lentezza_txt;
   zoom_txt(max_txt)  
 }
 xxx++;
 //lascia il testo visibile 
 if(passo==xxx)
 {
   tempo=500;
 }
 xxx++;
 
 // carica il testo da animare
 if(passo==xxx)
 {
   tempo=lentezza_txt*2;
   dim_txt=min_txt;
   document.getElementById('testo').style.fontSize=dim_txt;
   writit(txt_anim2[lingua],'testo');
 }
 xxx++;
 //anima il testo
 if(passo==xxx)
 {
   tempo=lentezza_txt;
   zoom_txt(max_txt)  
 }
 xxx++;
 //lascia il testo visibile 
 if(passo==xxx)
 {
   tempo=500;
 }
 xxx++;

 // carica il testo da animare
 if(passo==xxx)
 {
   tempo=lentezza_txt*2;
   dim_txt=min_txt;
   document.getElementById('testo').style.fontSize=dim_txt;
   writit(txt_anim3[lingua],'testo');
 }
 xxx++;
 //anima il testo
 if(passo==xxx)
 {
   tempo=lentezza_txt;
   zoom_txt(max_txt)  
 }
 xxx++;
 //lascia il testo visibile 
 if(passo==xxx)
 {
   tempo=500;
 }
 xxx++;
 
 //togli la scritta e ridimensiona il testo
 if(passo==xxx)
 {
   tempo=lentezza_txt;
   writit(' ','testo');
   dim_txt=end_txt;
   document.getElementById('testo').style.fontSize=dim_txt;
 }
 xxx++;

 // prepara i layer
 if(passo==xxx)
 {
   tempo=200;
   document.getElementById('schpieno_msk').align='center';
   document.getElementById('schpieno_msk').src='images/spazio.gif';
   document.getElementById('sfondo_testo').src='images/spazio.gif' 
   document.getElementById('sfondo_testo').width='596' 
   document.getElementById('sfondo_testo').height='427'
   document.getElementById('schpieno_msk').src='images/spazio.gif';
   document.getElementById('schpieno_msk').align='right';
 }
 xxx++;

 // confina il testo in un riquadro centrale di dimensioni ridotte
 if(passo==xxx)
 {
   tempo=200;
   document.getElementById('tab_testo').width=350;
   document.getElementById('tab_testo').height=300;
   color_txt= rosso; // scegli il colore del testo tra nero, rosso, blu, verde, giallo
 }
 xxx++;

 if(passo==xxx)
 {
   tempo=9000;
   scrivi(fade,tempo,txt_intro1[lingua]);
 }
 xxx++;
 
 if(passo==xxx)
 {
   tempo=9000;
   scrivi(fade,tempo,txt_intro2[lingua]);
 }
 xxx++;

 if(passo==xxx)
 {
   tempo=9000;
   scrivi(fade,tempo,txt_intro3[lingua]);
 }
 xxx++;

 if(passo==xxx)
 {
   tempo=9000;
   scrivi(fade,tempo,txt_intro4[lingua]);
 }
 xxx++;

 if(passo==xxx)
 {
   tempo=1000;
   document.getElementById('sfondo_testo').src="images/spazio.gif" 
 }
 xxx++;


 // animazione immagine
 if(passo==xxx)
 {
   tempo=500;
   // sfondo testo viene utilizzato per l'animazione di una immagine
   document.getElementById('sfondo_testo').border="0"
   document.getElementById('sfondo_testo').width="1" 
   document.getElementById('sfondo_testo').height="89"
   larghezza_rotaz=1;
   document.getElementById('sfondo_testo').src="images/tranquilla.gif" 
 }
 xxx++;


 if(passo==xxx)
 {
   tempo=lentezza_rotaz;
   allarga_imm(10,361);
 }
 xxx++;
 
 /*
 if(passo==xxx)
 {
   tempo=8000;
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=lentezza_rotaz;
   stringi_imm(10,20);
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=1000;
   document.getElementById('sfondo_testo').src="images/spazio.gif" 
 }
 xxx++;
 */

 if(passo==xxx)
 {
    tempo=100;
    // cambia anche il colore della scritta dei tasti
    passo=900;
 }
 xxx++;
 
 //-----------------------------------------------------
 //ciclo infinito che fa lampeggiare le scrtte dei tasti
 xxx=900;

 if(passo==xxx)
 {
    tempo=300;
   // cambia anche il colore della scritta dei tasti
   document.getElementById('testo_tasto11').color="orange"
   document.getElementById('testo_tasto1').color="yellow"
 }
 xxx++;
 if(passo==xxx)
 {
    tempo=300;
   // cambia il colore della scritta dei tasti
   document.getElementById('testo_tasto11').color="yellow"
   document.getElementById('testo_tasto1').color="orange"
   passo--;
   passo--;
 }
 xxx++;

 //-----------------------------------------------------



/*
 if(passo==xxx)
 {
   //togliFreccia();
   // durante lo sviluppo conviene mettere la griglia guida
   //   document.getElementById('sfondo_testo').src='images/griglia.gif';
   //document.getElementById('sfondo_testo').src='images/menu1.gif';
   //document.getElementById('link_sf_testo').href='http://www.htd.it';
   // togli l'oscuramento creato dal layer di testo sul layer sfondo_testo
   // se vuoi rendere attiva la mappatura ipertestuale dell'immagine
   // document.getElementById('layer_txt').style.left= "-500px";

   tempo=1000;
 }
 
 if (tempo>0)
 {
    passo++;
    setTimeout('nextstep()',tempo);
 }
 else
 {
    //all'uscita passo==0, per ripetere dall'inizio occorre setTimeout()
    passo=0;
    //setTimeout('nextstep()',tempo);
    //chiamata alla pagina successiva al termine della sequenza
    //window.location="menu1.html";
 }
}

function nextstep_demo()
//demo_quad
{
 var xxx=0;
 var tempo=0;
 var sposta_testo=0;

*/

//--------------------------------------------------------------------------------------------------

 xxx=1000; //ponendo passo=1000 inizia la demo del dvr
 
 // ferma il moto ondoso simulato
 if(passo==xxx)
 {
   tempo= lentezza_acqua * 5;
   moto_acqua=0;
   disattivaTasti();
   tendina=lascia;
   writit(' ','testo');
   writit(' ','spiegasottotxt');
   writit(' ','spiegatxt');
   document.getElementById('testo').style.fontSize=end_txt;
   //nascondi l'eventuale layer scelta lingua
   document.getElementById('layer_lang').style.zIndex=0; 
 }
 xxx++;

 if(passo==xxx)
 {
   tempo=100;
   color_txt=blu;
   tendina=aprichiudi;
 }
 xxx++;

 // apri a tuttoschermo la parte superiore
 if(passo==xxx)
 {
   tempo=1000;
   document.getElementById('sfondo_testo').src='images/spazio.gif' 
   document.getElementById('sfondo_testo').width='596' 
   document.getElementById('sfondo_testo').height='427'
   document.getElementById('sfondo_testo').border='0'
   document.getElementById('schpieno_msk').src='images/spazio.gif';
   document.getElementById('schpieno_msk').align='right';
   document.getElementById('schpieno').src='images_demo/nero.jpg';
   document.getElementById('schpieno').height='432';
   //document.getElementById('schpieno').src='images_demo/quad.jpg';
   document.getElementById('schpieno_low1').src='images/spazio.gif';
   document.getElementById('schpieno_low1').height='0';
   document.getElementById('schpieno_low1').width='0';
   document.getElementById('schpieno_low2').src='images/spazio.gif';
   document.getElementById('schpieno_low2').height='0';
   document.getElementById('schpieno_low2').width='0';
   document.getElementById('schpieno_low3').src='images/spazio.gif';
   document.getElementById('schpieno_low3').height='0';
   document.getElementById('schpieno_low3').width='0';
   document.getElementById('schpieno_low4').src='images/spazio.gif';
   document.getElementById('schpieno_low4').height='0';
   document.getElementById('schpieno_low4').width='0';
   document.getElementById('testo_align').align='left'
   //document.getElementById('testo').size='4';
   document.getElementById('tab_testo').width="300"
   attivaTastoEndDemo();
 }
 xxx++;

 if(passo==xxx)
 {
   tempo=8000;
   color_txt=blu;
   tendina=aprichiudi;
   scrivi(fade,tempo,txt_intro6[lingua]);
 }
 xxx++;

 if(passo==xxx)
 {
   tempo=8000;
   document.getElementById('schpieno').src='images_demo/quad.jpg';
   color_txt=blu;
   tendina=aprichiudi;
   scrivi(fade,tempo,txt_quad_ini[lingua]);
 }
 xxx++;

 if(passo==xxx)
 {
   tempo=10000;
   scrivi(fade,tempo,txt_quad_exp[lingua]);
 }
 xxx++;

 // sposta la freccia sull'immagine 1
 if(passo==xxx)
 {
   posFreccia(290,140)
   tempo=200;
 }
 xxx++;
 if(passo==xxx)
 {
   posFreccia(270,120)
   tempo=200;
 }
 xxx++;
 if(passo==xxx)
 {
   posFreccia(250,100)
   tempo=200;
 }
 xxx++;

 // clicca l'immagine1 e mettila a schermo pieno
 if(passo==xxx)
 {
   lampeggioFreccia('400');
   document.getElementById('schpieno').src='images_demo/interno1.jpg';
   tempo=1500;
 }
 xxx++;

 // un altro click, ridimensiona l'immagine e mostra tutte le telecamere
 if(passo==xxx)
 {
   lampeggioFreccia('400');
   document.getElementById('schpieno').src='images_demo/quad.jpg';
   tempo=1000;
 }
 xxx++;

 // sposta la freccia al bordo destro
 if(passo==xxx)
 {
   posFreccia(576,208)
   tempo=200;
 }
 xxx++;
 if(passo==xxx)
 {
   posFreccia(596,228)
   tempo=200;
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=11000;
   scrivi(fade,tempo,txt_quad_contr[lingua]);
 }
 xxx++;

 // clicca sul bordo destro e apri il pannello main_vis
 if(passo==xxx)
 {
   lampeggioFreccia('400');
   document.getElementById('pannello_quad').src='images_demo/main_vis.jpg';
   tempo=1000;
 }
 xxx++;


 // sposta la freccia su FILMATI
 if(passo==xxx)
 {
   tempo=8000;
   //sposta_testo=15; // sposta a sinistra la finestra di spiegazione
   document.getElementById('layer2').style.left= offsetx-sposta_testo;
   document.getElementById('layer_txt').style.left= offsetx-sposta_testo;
   tendina=apri;
   scrivi(fade,tempo,txt_quad_film[lingua]);
   posFreccia(568,124);
 }
 xxx++;

 // sposta la freccia su START
 if(passo==xxx)
 {
   tempo=8000;
   tendina=lascia;
   scrivi(fade,tempo,txt_quad_rec[lingua]);
   posFreccia(568,236);
 }
 xxx++;

 // sposta la freccia su CHIAVE
 if(passo==xxx)
 {
   tempo=8000;
   scrivi(fade,tempo,txt_quad_key[lingua]);
   posFreccia(568,294)
 }
 xxx++;


 // sposta la freccia su SPEGNI
 if(passo==xxx)
 {
   tempo=8000;
   scrivi(fade,tempo,txt_quad_off[lingua]);
   posFreccia(568,342)
 }
 xxx++;

 // sposta la freccia sul logo (manuale in linea)
 if(passo==xxx)
 {
   tempo=8000;
   scrivi(fade,tempo,txt_quad_man[lingua]);
   posFreccia(555,388)
 }
 xxx++;

 // sposta la freccia sul brandeggio
 if(passo==xxx)
 {
   tempo=8000;
   scrivi(fade,tempo,txt_quad_brand[lingua]);
   posFreccia(522,372)
 }
 xxx++;

 // sposta la freccia e clicca INSTALLA
 if(passo==xxx)
 {
   posFreccia(558,332)
   tempo=200;
 }
 xxx++;
 if(passo==xxx)
 {
   posFreccia(568,322)
   tempo=200;
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=8000;
   tendina=chiudi;
   scrivi(fade,tempo,txt_quad_inst[lingua]);
 }
 xxx++;
 if(passo==xxx)
 {
   lampeggioFreccia('400');
   tempo=200;
 }
 xxx++;

 // apri il pannello delle impostazioni (controllo luminosità etc...)
 if(passo==xxx)
 {
   tempo=3000;
   document.getElementById('schpieno').src='images_demo/interno1.jpg';
   document.getElementById('pannello_quad').src='images_demo/impostazioni1.jpg';
 }
 xxx++;

 // clicca sul pulsante freccia dx per selezionare il secondo canale
 if(passo==xxx)
 {
   posFreccia(569,200)
   tempo=200;
 }
 xxx++;
 if(passo==xxx)
 {
   posFreccia(569,100)
   tempo=200;
 }
 xxx++;
 if(passo==xxx)
 {
   posFreccia(570,44)
   tempo=500;
 }
 xxx++;

 if(passo==xxx)
 {
   tempo=16000;
   tendina=aprichiudi;
   scrivi(fade,tempo,txt_inst[lingua]);
 }
 xxx++;

 if(passo==xxx)
 {
   tempo=2000;
   lampeggioFreccia('400');
   document.getElementById('schpieno').src='images_demo/interno2.jpg';
   document.getElementById('pannello_quad').src='images_demo/impostazioni2.jpg';
 }
 xxx++;

 // clicca sul pulsante freccia sin per tornare al primo canale
 if(passo==xxx)
 {
   posFreccia(504,44)
   tempo=500;
 }
 xxx++;

 if(passo==xxx)
 {
   tempo=1000;
   lampeggioFreccia('400');
   document.getElementById('schpieno').src='images_demo/interno1.jpg';
   document.getElementById('pannello_quad').src='images_demo/impostazioni1.jpg';
 }
 xxx++;

 if(passo==xxx)
 {
   tempo=10000;
   scrivi(fade,tempo,txt_inst_moto[lingua]);
 }
 xxx++;

 // clicca sul pulsante che manda al pannello del rilievo di moto
 if(passo==xxx)
 {
   posFreccia(544,182);
   tempo=200;
 }
 xxx++;
 if(passo==xxx)
 {
   posFreccia(555,202);
   tempo=200;
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=600;
   posFreccia(565,242);
   lampeggioFreccia('400');
 }
 xxx++;

 // sovraimprimi la maschera di moto lampeggiante e mostra il pannello di moto
 if(passo==xxx)
 {
   tempo=1000;
   document.getElementById('schpieno').src='images_demo/interno1.jpg';
   document.getElementById('pannello_quad').src='images_demo/moto.jpg';
   mascheraMoto=1; lampMascheraMoto();
 }
 xxx++;

 if(passo==xxx)
 {
   tempo=13000;
   scrivi(fade,tempo,txt_moto[lingua]);
 }
 xxx++;

 // dal pannello di moto clicca su ok per totnare al pannello delle impostazioni
 if(passo==xxx)
 {
   tempo=600;
   posFreccia(568,405);
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=600;
   posFreccia(570,415);
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=600;
   lampeggioFreccia('400');
 }
 xxx++;

 // torna al pannello delle impostazioni (controllo luminosità etc...)
 if(passo==xxx)
 {
   tempo=1000;
   // forza l'arresto del lampeggio e la soppressione immediata della maschera di moto
   mascheraMoto=0; document.getElementById('schpieno_msk').src='images/spazio.gif';
   // torna al pannello precedente
   document.getElementById('pannello_quad').src='images_demo/impostazioni1.jpg';
   togliFreccia();
 }
 xxx++;

 if(passo==xxx)
 {
   tempo=11000;
   scrivi(fade,tempo,txt_inst_all[lingua]);
 }
 xxx++;

 // clicca il pulsante di accesso all'installazione completa
 if(passo==xxx)
 {
   posFreccia(565,290);
   tempo=1000;
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=800;
   lampeggioFreccia('400');
 }
 xxx++;

 // apri il pannello di installazione completa, scheda IMMAGINI
 if(passo==xxx)
 {
   tempo=1000;
   document.getElementById('pannello_quad').src='images/spazio.gif';
   document.getElementById('schpieno').src='images_demo/immagini.jpg';
   togliFreccia();
 }
 xxx++;

 if(passo==xxx)
 {
   tempo=11000;
   scrivi(fade,tempo,txt_all_imm[lingua]);
 }
 xxx++;

 // posiziona la freccia sul pulsante di titolazione
 if(passo==xxx)
 {
   posFreccia(270,130);
   tempo=1000;
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=600;
   lampeggioFreccia('400');
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=2000;
   document.getElementById('pannello_quad').src='images_demo/tastiera.jpg';
 }
 xxx++;

 if(passo==xxx)
 {
   tempo=11000;
   scrivi(fade,tempo,txt_all_imm1[lingua]);
 }
 xxx++;

 if(passo==xxx)
 {
   // pulsante di ok della tastiera virtuale
   posFreccia(460,250);
   tempo=1000;
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=2000;
   lampeggioFreccia('400');
 }
 xxx++;

 if(passo==xxx)
 {
   tempo=1000;
   // togli la tastiera virtuale
   document.getElementById('pannello_quad').src='images/spazio.gif';
 }
 xxx++;

 //_---------________________________________
 // clicca il pulsante della scheda MONITOR ...
 if(passo==xxx)
 {
   posFreccia(160,65);
   tempo=1000;
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=800;
   lampeggioFreccia('400');
 }
 xxx++;

 // ... e aprila
 if(passo==xxx)
 {
   tempo=1000;
   document.getElementById('pannello_quad').src='images/spazio.gif';
   document.getElementById('schpieno').src='images_demo/monitor.jpg';
   //togliFreccia();
 }
 xxx++;

 if(passo==xxx)
 {
   tempo=11000;
   scrivi(fade,tempo,txt_all_monitor[lingua]);
 }
 xxx++;


 //_---------________________________________
 // clicca il pulsante della scheda ORARIO ...
 if(passo==xxx)
 {
   posFreccia(240,65);
   tempo=1000;
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=800;
   lampeggioFreccia('400');
 }
 xxx++;

 // ... e aprila
 if(passo==xxx)
 {
   tempo=1000;
   document.getElementById('pannello_quad').src='images_demo/spazio.gif';
   document.getElementById('schpieno').src='images_demo/orario.jpg';
   //togliFreccia();
 }
 xxx++;

 if(passo==xxx)
 {
   tempo=11000;
   scrivi(fade,tempo,txt_all_orario[lingua]);
 }
 xxx++;

 //_---------________________________________
 // clicca il pulsante della scheda VARIE ...
 if(passo==xxx)
 {
   posFreccia(310,65);
   tempo=1000;
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=800;
   lampeggioFreccia('400');
 }
 xxx++;

 // ... e aprila
 if(passo==xxx)
 {
   tempo=1000;
   document.getElementById('pannello_quad').src='images/spazio.gif';
   document.getElementById('schpieno').src='images_demo/varie.jpg';
   //togliFreccia();
 }
 xxx++;

 if(passo==xxx)
 {
   tempo=11000;
   scrivi(fade,tempo,txt_all_varie[lingua]);
 }
 xxx++;


 //_---------________________________________
 // clicca il pulsante della scheda PROCESSI ...
 if(passo==xxx)
 {
   posFreccia(398,65);
   tempo=1000;
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=800;
   lampeggioFreccia('400');
 }
 xxx++;

 // ... e aprila
 if(passo==xxx)
 {
   tempo=1000;
   document.getElementById('pannello_quad').src='images/spazio.gif';
   document.getElementById('schpieno').src='images_demo/processi.jpg';
   //togliFreccia();
 }
 xxx++;

 if(passo==xxx)
 {
   tempo=11000;
   scrivi(fade,tempo,txt_all_processi[lingua]);
 }
 xxx++;


 //_---------________________________________
 // clicca il pulsante della scheda PORTE I/O ...
 if(passo==xxx)
 {
   posFreccia(490,65);
   tempo=1000;
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=800;
   lampeggioFreccia('400');
 }
 xxx++;

 // ... e aprila
 if(passo==xxx)
 {
   tempo=1000;
   document.getElementById('pannello_quad').src='images/spazio.gif';
   document.getElementById('schpieno').src='images_demo/porte.jpg';
   //togliFreccia();
 }
 xxx++;

 if(passo==xxx)
 {
   tempo=11000;
   scrivi(fade,tempo,txt_all_porte[lingua]);
 }
 xxx++;


 //_---------________________________________
 // clicca il pulsante della scheda HARDWARE ...
 if(passo==xxx)
 {
   posFreccia(585,65);
   tempo=1000;
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=800;
   lampeggioFreccia('400');
 }
 xxx++;

 // ... e aprila
 if(passo==xxx)
 {
   tempo=1000;
   document.getElementById('pannello_quad').src='images/spazio.gif';
   document.getElementById('schpieno').src='images_demo/hardware.jpg';
   //togliFreccia();
 }
 xxx++;

 if(passo==xxx)
 {
   tempo=11000;
   scrivi(fade,tempo,txt_all_hardware[lingua]);
 }
 xxx++;

 //click ok delle schede di installazione
 if(passo==xxx)
 {
   posFreccia(580,420);
   tempo=1000;
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=800;
   lampeggioFreccia('400');
 }
 xxx++;

 // torna al pannello delle impostazioni (controllo luminosità etc...)
 if(passo==xxx)
 {
   tempo=1000;
   // rimetti a schermo pieno il primo canale
   document.getElementById('schpieno').src='images_demo/interno1.jpg';
   // pannello impostazioni
   document.getElementById('pannello_quad').src='images_demo/impostazioni1.jpg';
   //togliFreccia();
 }
 xxx++;

 //click ok del pannello impostazioni
 if(passo==xxx)
 {
   posFreccia(540,410);
   tempo=1000;
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=800;
   lampeggioFreccia('400');
 }
 xxx++;

 // torna al pannello principale main_vis
 if(passo==xxx)
 {
   tempo=1000;
   document.getElementById('schpieno').src='images_demo/interno1.jpg';
   // torna al pannello precedente
   document.getElementById('pannello_quad').src='images_demo/main_vis.jpg';
   //togliFreccia();
 }
 xxx++;

 // sposta la freccia su FILMATI e clicca
 if(passo==xxx)
 {
   tempo=11000;
   scrivi(fade,tempo,txt_quad_film_entra[lingua]);
   posFreccia(568,124);
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=800;
   lampeggioFreccia('400');
 }
 xxx++;

 // apri il pannello del visore dei filmati
 if(passo==xxx)
 {
   tempo=1000;
   document.getElementById('pannello_quad').src='images/spazio.gif';
   document.getElementById('schpieno').src='images_demo/navigatore.jpg';
   //togliFreccia();
 }
 xxx++;

 if(passo==xxx)
 {
   tempo=11000;
   scrivi(fade,tempo,txt_film[lingua]);
 }
 xxx++;

 if(passo==xxx)
 {
   tempo=11000;
   scrivi(fade,tempo,txt_film1[lingua]);
 }
 xxx++;

 //simula la selezione del filmato e la sua la visualizzazione
 if(passo==xxx)
 {
   tempo=800;
   posFreccia(400,220);
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=800;
   lampeggioFreccia('400');
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=800;
   posFreccia(550,90);
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=800;
   lampeggioFreccia('400');
 }
 xxx++;

 // mostra avviso caricamento in corso
 if(passo==xxx)
 {
   tempo=2000;
   document.getElementById('pannello_quad').src='images_demo/vis1.jpg';
   document.getElementById('align_pannello_quad').align='left';
 }
 xxx++;
 //mostra visore filmato
 if(passo==xxx)
 {
   tempo=2000;
   document.getElementById('pannello_quad').src='images_demo/vis2.jpg';
 }
 xxx++;

 //
 if(passo==xxx)
 {
   tempo=11000;
   scrivi(fade,tempo,txt_film2[lingua]);
 }
 xxx++;

 //simula l'esportazione su pendisk

 if(passo==xxx)
 {
   tempo=800;
   posFreccia(550,130);
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=2000;
   lampeggioFreccia('400');
 }
 xxx++;

 // mostra alert fine esportazione
 if(passo==xxx)
 {
   tempo=1000;
   document.getElementById('schpieno_msk').src='images_demo/okexp.jpg';
   //togliFreccia();
 }
 xxx++;

 // clicca ok di alert fine esportazione
 if(passo==xxx)
 {
   tempo=800;
   posFreccia(560,250);
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=800;
   lampeggioFreccia('400');
 }
 xxx++;

 // togli alert di fine esportazione
 if(passo==xxx)
 {
   tempo=1000;
   document.getElementById('schpieno_msk').src='images/spazio.gif';
   //togliFreccia();
 }
 xxx++;

 if(passo==xxx)
 {
   tempo=11000;
   scrivi(fade,tempo,txt_film3[lingua]);
 }
 xxx++;


 // chiudi il visore del filmato
 if(passo==xxx)
 {
   tempo=800;
   posFreccia(204,310);
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=800;
   lampeggioFreccia('400');
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=1000;
   document.getElementById('pannello_quad').src='images/spazio.gif';
   document.getElementById('align_pannello_quad').align='right';
 }
 xxx++;

 //click ok del pannello navigatore e torna al pannello principale
 if(passo==xxx)
 {
   posFreccia(570,410);
   tempo=1000;
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=800;
   lampeggioFreccia('400');
 }
 xxx++;

 // torna al pannello principale main_vis
 if(passo==xxx)
 {
   tempo=1000;
   // forza l'arresto del lampeggio e la soppressione immediata della maschera di moto
   //mascheraMoto=0; document.getElementById('schpieno_msk').src='images/spazio.gif';
   document.getElementById('schpieno').src='images_demo/interno1.jpg';
   // torna al pannello precedente
   document.getElementById('pannello_quad').src='images_demo/main_vis.jpg';
   //togliFreccia();
 }
 xxx++;

 // sposta la freccia al bordo destro
 if(passo==xxx)
 {
   posFreccia(576,208)
   tempo=200;
 }
 xxx++;
 if(passo==xxx)
 {
   posFreccia(596,228)
   tempo=200;
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=11000;
   scrivi(fade,tempo,txt_quad_toglicontr[lingua]);
 }
 xxx++;

 // clicca sul bordo destro e chiudi il pannello main_vis
 if(passo==xxx)
 {
   lampeggioFreccia('400');
   document.getElementById('pannello_quad').src='images/spazio.gif';
   tempo=1000;
 }
 xxx++;


 // sposta la freccia al centro dell'immagine
 if(passo==xxx)
 {
   posFreccia(576,208)
   tempo=200;
 }
 xxx++;
 if(passo==xxx)
 {
   posFreccia(520,180)
   tempo=200;
 }
 xxx++;
 if(passo==xxx)
 {
   tempo=11000;
   scrivi(fade,tempo,txt_quad_tutte[lingua]);
 }
 xxx++;

 // clicca e mostra il pannello multischermo
 if(passo==xxx)
 {
   lampeggioFreccia('400');
   document.getElementById('schpieno').src='images_demo/quad.jpg';
   tempo=1000;
 }
 xxx++;

 if(passo==xxx)
 {
   tempo=10000;
   scrivi(fade,tempo,txt_bye[lingua]);
 }
 xxx++;


 if(passo==xxx)
 {
    tempo=100;
    passo=1900;
 }
 xxx++;
 
 //-----------------------------------------------------
 // ripristina lo schermo per rientrare al termine della presentazione del sito
 xxx=1900;


/*
 // inizializza nullo il campo testo e carica l'immagine animata di sfondo
 if(passo==xxx)
 {
   tempo=500;
   // scritta
   tendina=lascia;
   writit(' ','testo');
   writit(' ','spiegasottotxt');
   writit(' ','spiegatxt');
   //posFreccia(518,388);
   //alert(browser);
   //testObj()
   document.getElementById('sfondo_testo').border='0'
   document.getElementById('testo').color='red';
   document.getElementById('testo').size='5';
   document.getElementById('schpieno').height='241';
   document.getElementById('schpieno_low1').height='191';
   document.getElementById('schpieno').src='images/htsky1.jpg';
   document.getElementById('schpieno_low1').src='images/htskyr1.jpg';
   initasti();
   acqua();
   contalang=0;
 }
 xxx++;


 if(passo==xxx)
 {
   togliFreccia();
   // durante lo sviluppo conviene mettere la griglia guida
//   document.getElementById('sfondo_testo').src='images/griglia.gif';
   //document.getElementById('sfondo_testo').src='images/menu1.gif';
   //document.getElementById('link_sf_testo').href='http://www.htd.it';
   // togli l'oscuramento creato dal layer di testo sul layer sfondo_testo
   // se vuoi rendere attiva la mappatura ipertestuale dell'immagine
   // document.getElementById('layer_txt').style.left= "-500px";

   tempo=1000;
 }

*/

 if (tempo>0)
 {
    passo++;
    setTimeout('nextstep()',tempo);
 }
 else
 {
//    passo=900; // torna al termine della presentazione del sito
//    setTimeout('nextstep_demo()',tempo);
    //all'uscita passo==0, ripeti dall'inizio
    //passo=0;
    //setTimeout('nextstep()',tempo);
    //chiamata alla pagina successiva al termine della sequenza
    window.location="refresh.html?"+lingua;
 }
}


