function est_NS4() { if
((navigator.userAgent.indexOf("Nav") != -1) && (parseInt(navigator.appVersion) >= 4))
return true
}

function est_NS6() { if
((navigator.userAgent.indexOf("Netscape") != -1) && (parseInt(navigator.appVersion) >= 5))
return true
}

function est_Mozilla() { if
((navigator.userAgent.indexOf("Mozilla") != -1) && (navigator.userAgent.indexOf("Netscape") == -1) && (parseInt(navigator.appVersion) >= 5))
return true
}

function est_Opera() { if
(navigator.userAgent.indexOf("Opera") !=-1)
return true
}

function est_IE5() { if
((navigator.userAgent.indexOf("MSIE") != -1) && (parseInt(navigator.appVersion) >= 4) && !est_Opera())
/* Opera could identify itself as MSIE */
return true
}

function vabene() { if (est_IE5() || est_NS6() || est_Mozilla())
return true
}

function aprimenu(miomenu, qui) {
if (self.location == window.top.location) {
document.write("<frameset rows='34, 1*' border='0'><frame frameborder='0' marginwidth='8' marginheight='0' noresize><frame frameborder='0' marginwidth='8' marginheight='0' noresize></frameset>");
frames[0].location.href=miomenu;
frames[1].location.href=qui;
}
}

function apriduemenu(primomenu, secondomenu, qui) {
if (self.location == window.top.location) {
document.write("<frameset rows='34, 34, 1*' border='0'><frame frameborder='0' marginwidth='8' marginheight='0' noresize><frame frameborder='0' marginwidth='8' marginheight='0' noresize><frame frameborder='0' marginwidth='8' marginheight='0' noresize name='testo'></frameset>");
frames[0].location.href=primomenu;
frames[1].location.href=secondomenu;
frames[2].location.href=qui;
}
}

function popup(nomefile, nomefinestra, larghezza, altezza)
{
win_popup=window.open(nomefile, nomefinestra, "toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0, copyhistory=0, width=" + larghezza + ", height=" + altezza + ", left=" + Math.round((screen.width-larghezza)/3?(screen.width-larghezza)/3:0) + ", top=" + Math.round((screen.height-altezza)/3?(screen.height-altezza)/3:0));
}

