function avvio(q) { with (document) { getElementById('liv0').style.display = "block"; getElementById('capo').style.visibility = "visible"; } tsx = document.getElementById('barrasx').clientHeight+383; tcont = document.getElementById('contenitore').clientHeight+383; with (document.getElementById('coda').style) { if (tsx>tcont) top = tsx; else top = tcont; height = document.getElementById('coda').clientHeight; visibility = "visible" } with (document.getElementById('barradx').style) { if (tsx>tcont) height = document.getElementById('barrasx').clientHeight+300; else height = document.getElementById('contenitore').clientHeight+300; visibility = "visible" } if (q == "v") { document.getElementById('vola').style.visibility = "visible"; flst = 370; window.setTimeout("dovesei(flst)",1); } } function dovesei(x) { mv = x; ora = document.body.scrollTop; gap = ora-mv; if (ora<=mv) { document.getElementById('vola').style.top = 372; } else { document.getElementById('vola').style.top = 372+gap; } window.setTimeout("dovesei(mv)",1); } function chiudivola() { document.getElementById('vola').style.visibility = "hidden"; } function wss() { window.open('./popup/wss.htm','webss','width=180,height=196,scrollbars=no,resizable=no'); }