var selezione, no_selezione
	no_selezione_base = new Image();
	no_selezione_base.src = "../../images/freccia_chiara.gif"
	no_selezione = new Image();
	no_selezione.src = "../../images/freccia_chiara1.gif"
	no_selezione2 = new Image();
	no_selezione2.src = "../../images/freccia_blu.gif"
	selezione = new Image();
	selezione.src = "../../images/freccia_arancio.gif"

function pop(url, w, h, name) {
	var win = window.open(url, name, 'width='+w+',height='+h+',toolbar=no,resizable=no,scrollbars=yes,menubar=no,status=no');
	win.moveTo(10,10);
	win.resizeTo(w,h);
	win.focus();
}

function popup(str) {
	browserName = navigator.appName.substring(0,8);
	xpos = Math.round(screen.width / 2 - 200);
	ypos = Math.round(screen.height / 2 - 200);
	if (browserName == 'Netscape') {
		dovesiamo = open(str,'dovesiamo','scrollbars=yes,height=400,width=470, resizable=no');
		dovesiamo.focus();
	}
	else {
		eval("dovesiamo = window.open(str, 'dovesiamo', 'height=400,left=" + xpos + ",location=no,menubar=no,resizable=no,scrollbars=yes,status=no,toolbar=no,top=" + ypos + ",width=470', 'false');");
		dovesiamo.focus();		
	}
}
function popup2(str) {
	browserName = navigator.appName.substring(0,8);
	xpos = Math.round(screen.width / 2 - 200);
	ypos = Math.round(screen.height / 2 - 200);
	if (browserName == 'Netscape') {
		dovesiamo = open(str,'dovesiamo','scrollbars=no,height=400,width=450, resizable=no');
		dovesiamo.focus();
	}
	else {
		eval("dovesiamo = window.open(str, 'dovesiamo', 'height=400,left=" + xpos + ",location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no,top=" + ypos + ",width=450', 'false');");
		dovesiamo.focus();		
	}
}
function popup3(str) {
	browserName = navigator.appName.substring(0,8);
	xpos = Math.round(screen.width / 2 - 300);
	ypos = Math.round(screen.height / 2 - 225);
	if (browserName == 'Netscape') {
		dovesiamo = open(str,'dovesiamo','scrollbars=no,height=450,width=600, resizable=no');
		dovesiamo.focus();
	}
	else {
		eval("dovesiamo = window.open(str, 'dovesiamo', 'height=450,left=" + xpos + ",location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no,top=" + ypos + ",width=600', 'false');");
		dovesiamo.focus();		
	}
}

function prodotti(){
seleziona(2, 4, no_selezione_base.src, selezione.src)
parent.content.location = "../prodotti/prodotti.html"
parent.menu_up.location = "../prodotti/menu_prodotti.html"
parent.sottomenu.location = "../blu.html"
parent.logo.location = "../prodotti/logo_prodotti.html"
}

function azienda(){
seleziona(1, 4, no_selezione_base.src, selezione.src)
parent.content.location = "../home.html"
parent.sottomenu.location = "../blu.html"
parent.menu_up.location = "../menu_azienda.html"
parent.logo.location = "../../logo.html"
}

function download(){
seleziona(3, 4, no_selezione_base.src, selezione.src)
parent.content.location = "../download/download.html"
parent.sottomenu.location = "../blu.html"
parent.menu_up.location = "../download/menu_download.html"
parent.logo.location = "../prodotti/logo_prodotti.html"
}


function dichiarazioni(){
seleziona(4, 4, no_selezione_base.src, selezione.src)
parent.content.location = "../download/download_dichiarazioni.html"
parent.sottomenu.location = "../blu.html"
parent.menu_up.location = "../download/menu_download.html"
parent.logo.location = "../prodotti/logo_prodotti.html"
}


function doubleLink(L1, L2, L3) {
	this.L1 = L1
	this.L2 = L2
	if (L3=="")	{this.L3 = "../blu.html";}else{this.L3 = L3}
}

var v_dove = new Array(10);
v_dove[1] = new doubleLink("ConiBlockStruttura.html", "logoTermoBlock.html", "");
v_dove[2] = new doubleLink("TurboBlock.html", "logoTurboBlock.html", "menuTurboBlock.html");
v_dove[3] = new doubleLink("LiscioFlexStruttura.html", "logoLiscioFlex.html", "menuLiscioFlex.html");
v_dove[4] = new doubleLink("TecnoInoxRameStruttura.html", "logoTecnoInox_Rame.html", "");
v_dove[5] = new doubleLink("Uninox.html", "logoUninox.html", "menuUninox.html");
v_dove[6] = new doubleLink("Ovalinox.html", "logoOvalinox.html", "");
v_dove[7] = new doubleLink("MonoFlex.html", "logoMonoFlex.html", "menuMonoFlex.html");
v_dove[8] = new doubleLink("MiniFlex.html", "logoMiniFlex.html", "");
v_dove[9] = new doubleLink("Mito.html", "logoMito.html", "");
v_dove[10] = new doubleLink("accessori.html", "logoaccessori.html", "menuaccessori.html");
v_dove[11] = new doubleLink("airblockStruttura.html", "logoMito.html", "");
v_dove[12] = new doubleLink("meniplastStruttura.html", "logoMito.html", "");
v_dove[13] = new doubleLink("meniboxStruttura.html", "logoMito.html", "");
v_dove[14] = new doubleLink("terminale_coassiale.html", "logoMito.html", "");
v_dove[15] = new doubleLink("verniciato_nero.html", "logoMito.html", "");
v_dove[16] = new doubleLink("programma_calcolo.html", "logoMito.html", "");

function aggiorna(n){
	seleziona(n, v_dove.length, no_selezione.src, selezione.src)
	parent.content.location = v_dove[n].L1;
	parent.logo.location = v_dove[n].L2;
	parent.sottomenu.location = v_dove[n].L3;
}

function seleziona(n, valmax, nosel, sel){
		for (i=1;i< valmax; i++) {
			document.images["img"+i].src = nosel;
		}
		document.images["img"+n].src = sel;
	}

function init(){
	nav=new verificaBrowser();
	Cont=new CostruttoreOggetto('layerContenitoreSquadre');
	Area=new CostruttoreOggetto('Contenuto','layerContenitoreSquadre');
	Cont.css.visibility='visible';
	Area.MuoviArea(0,0);
	init=true;
 }
 function downl(n,tot){
 	seleziona(n, tot, no_selezione2.src, selezione.src)
	n= (n-1) *2
	parent.dw_dx.location = "file.asp?cd=" + n
 }

 function veditecnodoppio(){
	parent.parent.menu_up.location = "../prodotti/menu_prodotti.html";
	
	parent.parent.sottomenu.location = "../blu.html";
	parent.parent.logo.location = "../prodotti/logoTecnoInox_Rame.html";
	parent.parent.content.location = "../prodotti/TecnoInoxRameStruttura.html";
	parent.parent.menu_down.seleziona(2, 4, no_selezione_base.src, selezione.src);
 }

