if (document.layers) {n=1;ie=0}
if (document.all) {n=0;ie=1}

n = (document.layers) ? 1 : 0;
ie = (document.all) ? 1 : 0;
dom = (document.getElementById) ? 1 : 0;
var quanti = 3
var poptext = new Array(quanti);
var i; 
var testo_su;
var prodotti = 0;


window.onresize= message;

function message() {
	init();
	if (prodotti == 1){	init_prodotti() }
}


function init() {
		centra('titoloo',780)
		centra('poptextdiv1',770)
		centra('poptextdiv2',770)
		centra('poptextdiv3',10)
		centra('poptextdiv4',770)
}



function vedi(ind) {
			nascondi();
			show('poptextdiv'+ind);
			setTimeout("nascondi()",5000);
}

function vedilog() {
			show('poptextdiv2');
			document.nmsg.user.focus();
}

function nascondilog() {
			hide('poptextdiv2');
}

function nascondi(){
			hide('poptextdiv1');
			hide('poptextdiv4');
}


function soloreg(ind) {
			show('poptextdiv'+ind);
			setTimeout("nascondiind("+ind+")",8000);
}

function nascondiind(ind){
			hide('poptextdiv'+ind);
}

function hide(nome_livello) {

       if (document.all) {
         document.all[nome_livello].style.visibility="hidden";
       }
       else if (document.layers){ //NN4

          document.layers[nome_livello].visibility="hide";
       }
       else if (document.getElementById) { //NN6 ed Opera
document.getElementById(nome_livello).style.visibility="hidden";
       }

  }  
  
 
function show(nome_livello)  {

    if (document.all) {
      document.all[nome_livello].style.visibility="visible";
    }

    else if (document.layers){
       document.layers[nome_livello].visibility="show";
    }

    else if (document.getElementById) {
       document.getElementById(nome_livello).style.visibility="visible";
    }

  } 
  
function init_prodotti(){
	prodotti = 1;
	centra('particolari',760);
	centra('applicazioni',760);
	centra('linkdati',760);
	show('linkdati');

}
function dett_img(img,de){
	var win = window.open("img2.asp?img="+img + "&de=" + de, "foto_news", "resizable=1,HEIGHT=200,WIDTH=200");
}


function vedi_ap(){
	hide('particolari');
	show('applicazioni');
}
function vedi_pa(){
	hide('applicazioni');
	show('particolari');
}
