function tab_mnu_frigo(str_tipo){
	var num_celxrow = 2;
	var count=0;
	var i=0;
	var out='<table width=100% border=0 cellspacing=0 cellpadding=0>\n<tr><td colspan=7><img src=\"images/blnk.gif\" width=4 height=6></td></tr>';
	for(i=0;i<arr_frigo.length;i++){
		if((arr_frigo[i].tipo.indexOf(str_tipo))>=0){//se corrisponde ad una cappa del tipo richiesto la inserisce nella tabella, altrimenti salta alla successiva.
			if((count%num_celxrow)==0){
				out+='<tr><td colspan=7><img src=\"images/blnk.gif\" width=4 height=4></td></tr>\n<tr>';//prima riga spazio, e apre la riga delle celle; da utilizzare (ogni 3)
			}



			out+='<td><img src=\"images/blnk.gif\" width=4 height=4></td>\n';
			out+='<td align=center valign=top class=mini onMouseOver=\"rollon_td(this)\" onMouseOut=\"rollout_td(this)\" width=73>\n';
			out+='<a href=\"schede_frigo.htm?id='+i+'\" class=art><img src=\"images/frigoriferi/piccole/'+arr_frigo[i].file+'\" width=73 border=0><br>';
			out+= arr_frigo[i].codice+'</a></td>\n';

			if((count%num_celxrow)==num_celxrow-1){		
				out+='<td><img src="images/blnk.gif" width="4" height="4"></td></tr>';//chiude la riga delle celle; da utilizzare (ogni 3)-1;
			}

			count++;
        }  
	}
	//controlla count e inserisce le celle rimanenti e il fine riga, se count è multiplo di 3 allora il fine riga è già stato messo nel ciclo.                        
	while( ((count)%num_celxrow)> 0){//al massimo lo fa due volte!! 
			out+='<td><img src=\"images/blnk.gif\" width=4 height=4></td>\n';
			out+='<td align=center width=73>&nbsp;</td>\n';
			if((count%num_celxrow)==num_celxrow-1){		
				out+='<td><img src="images/blnk.gif" width="4" height="4"></td></tr>';//chiude la riga delle celle; da utilizzare (ogni 3)-1;
			}
			count++;
	}
	out+='<tr><td colspan=7><img src=\"images/blnk.gif\" width=4 height=15></td></tr></table>';
	document.write(out);	
}


//#################################################
//#################################################

function row(mod,codice,opzioni){
	this.mod=mod;
	this.codice=codice;
 	this.opzioni=opzioni;	
}


function frigo(codice,tipo,file,schema,materiale,schema2,classe,consumo,capcong,rumore,captot,capfrez,capfrig,nofrost,img_part,tab_spec){
	this.codice=codice;
	this.tipo=tipo;
	this.file=file;
	this.schema=schema;
	this.schema2=schema2;	
	this.materiale=materiale;
	this.classe=classe;
	this.consumo=consumo;
	this.capcong=capcong;
	this.rumore=rumore;
	this.captot=captot;
	this.capfrez=capfrez;
	this.capfrig=capfrig;
	this.nofrost=nofrost;
	this.img_part=img_part;
	this.tab_spec=tab_spec;
}

var arr_frigo= new Array();

var img_part0= new Array();
var tab_spec0  = new Array();
tipo='MAYTAG';
codice='GC 2227-DED';
file='maytag/GC2227DED.jpg';
schema='maytag/sGC2227DED.jpg';
schema2='maytag/s3GC2227DED.jpg';
materiale='';
classe='B';
consumo='768';
capcong='14';
rumore='47 dB(A)';
captot='629 LT';
capfrez='211 LT';
capfrig='418 LT';
nofrost='1';
img_part0[0]='part/5b.jpg';
img_part0[1]='part/5b.jpg';
img_part0[2]='part/5b.jpg';
tab_spec0[0]= new row('5','F3020000B0<br>F3020000N0','Frigorifero base colorazione bianco<br>Frigorifero base colorazione nero');
tab_spec0[1]= new row('5a','F4020120X0','Frigorifero base con rivestimento completo "inox" porte scatolate piane');
tab_spec0[2]= new row('5b','F4020121X0','Frigorifero base con rivestimento completo "inox" porte scatolate piane con cappello raggio 2');
tab_spec0[3]= new row('5c','F4020141X0','Frigorifero base con rivestimento completo "inox" porte scatolate piane con cappello raggio 23');
arr_frigo[0] = new frigo(codice,tipo,file,schema,materiale,schema2,classe,consumo,capcong,rumore,captot,capfrez,capfrig,nofrost,img_part0,tab_spec0); 

var img_part1= new Array();
var tab_spec1  = new Array();
tipo='MAYTAG';
codice='GC 2227-EED';
file='maytag/GC2227EED.jpg';
schema='maytag/sGC2227EED.jpg';
schema2='';
materiale='';
classe='B';
consumo='768';
capcong='14';
rumore='47 dB(A)';
captot='628 LT';
capfrez='214 LT';
capfrig='413 LT';
nofrost='1';
img_part1[0]='part/4a.jpg';
img_part1[1]='part/dispenser.jpg';
tab_spec1[0]= new row('4','F3019000B0<br>F3019000N0','Frigorifero base colorazione bianco<br>Frigorifero base colorazione nero');
tab_spec1[1]= new row('4a','F4019130X0','Frigorifero base con rivestimento completo "inox" porte con pannelli piani con cornice');
arr_frigo[1] = new frigo(codice,tipo,file,schema,materiale,schema2,classe,consumo,capcong,rumore,captot,capfrez,capfrig,nofrost,img_part1,tab_spec1); 

var img_part2= new Array();
var tab_spec2  = new Array();
tipo='MAYTAG';
codice='GC 2327-PED';
file='maytag/GC2327_20B.jpg';
schema='maytag/sGC2327_20B.jpg';
schema2='maytag/s2GC2327_20B.jpg';
materiale='';
classe='B';
consumo='757';
capcong='14';
rumore='47 dB(A)';
captot='641 LT';
capfrez='229 LT';
capfrig='412 LT';
nofrost='1';
img_part2[0]='part/3a.jpg';
img_part2[1]='part/3b.jpg';
img_part2[2]='part/maniglia.jpg';
tab_spec2[0]= new row('3','F3018000B0<br>F3018000N0','Frigorifero base colorazione bianco<br>Frigorifero base colorazione nero');
tab_spec2[1]= new row('3a','F4018110X0','Frigorifero base con rivestimento completo "inox" porte scatolate bombate');
tab_spec2[2]= new row('3b','F4018121X0','Frigorifero base con rivestimento completo "inox" porte scatolate piane con cappello');
arr_frigo[2] = new frigo(codice,tipo,file,schema,materiale,schema2,classe,consumo,capcong,rumore,captot,capfrez,capfrig,nofrost,img_part2,tab_spec2); 

var img_part3= new Array();
var tab_spec3  = new Array();
tipo='MAYTAG';
codice='GT 1727-PVC';
file='maytag/GT1727.jpg';
schema='maytag/sGT1727.jpg';
schema2='maytag/s2GT1727.jpg';
materiale='';
classe='B';
consumo='642';
capcong='5,13';
rumore='48 dB(A)';
captot='475 LT';
capfrez='136 LT';
capfrig='339 LT';
nofrost='1';
img_part3[0]='part/2a.jpg';
img_part3[1]='part/2b.jpg';
tab_spec3[0]= new row('2','F3017000BD','Frigorifero base colorazione bianco');
tab_spec3[1]= new row('2a','F4017110XD<br>F4017110XS','Frigorifero base con rivestimento completo "inox" porte scatolate bombate');
tab_spec3[2]= new row('2b','F4017121XD<br>F4017121XS','Frigorifero base con rivestimento completo "inox" porte scatolate piane con cappello');
arr_frigo[3] = new frigo(codice,tipo,file,schema,materiale,schema2,classe,consumo,capcong,rumore,captot,capfrez,capfrig,nofrost,img_part3,tab_spec3); 

//*******************LAVATRICI**************
/*var img_part4= new Array();
var tab_spec4  = new Array();
tipo='LAVATRICI';
codice='ATLANTIS';
file='lavatrici/atlantis.jpg';
schema='';
schema2='';
materiale='';
classe='';
consumo='';
capcong='';
rumore='';
captot='';
capfrez='';
capfrig='';
nofrost='';
arr_frigo[4] = new frigo(codice,tipo,file,schema,materiale,schema2,classe,consumo,capcong,rumore,captot,capfrez,capfrig,nofrost,img_part4,tab_spec4); 

var img_part5= new Array();
var tab_spec5  = new Array();
tipo='LAVATRICI';
codice='NEPTUNE';
file='lavatrici/neptune.jpg';
schema='';
schema2='';
materiale='';
classe='';
consumo='';
capcong='';
rumore='';
captot='';
capfrez='';
capfrig='';
nofrost='';
arr_frigo[5] = new frigo(codice,tipo,file,schema,materiale,schema2,classe,consumo,capcong,rumore,captot,capfrez,capfrig,nofrost,img_part5,tab_spec5); 
*/
