// JavaScript Document

img1=new Image()
img1.src="img/butt/prodotti1.png"
img2=new Image()
img2.src="img/butt/prodotti2.png"//rollover
img3=new Image()
img3.src="img/butt/prodotti3.png"//click

img4=new Image()
img4.src="img/butt/eventi1.png"
img5=new Image()
img5.src="img/butt/eventi2.png"
img6=new Image()
img6.src="img/butt/eventi3.png"

img7=new Image()
img7.src="img/butt/info1.png"
img8=new Image()
img8.src="img/butt/info2.png"
img9=new Image()
img9.src="img/butt/info3.png"

img10=new Image()
img10.src="img/butt/partners1.png"
img11=new Image()
img11.src="img/butt/partners2.png"
img12=new Image()
img12.src="img/butt/partners3.png"

img13=new Image()
img13.src="img/butt/articoli1.png"
img14=new Image()
img14.src="img/butt/articoli2.png"
img15=new Image()
img15.src="img/butt/articoli3.png"


var visuProdotti;
var visuProdotti2;
var visuEventi;
var visuEventi2;
var visuInfo;
var visuInfo2;
var visuPartners;
var visuPartners2;
var visuArticoli;
var visuArticoli2;

function visProdotti(){
	visuProdotti = 1;
	visuProdotti2 = 2;
	visuEventi = 0;
	visuEventi2 = 0;
	visuInfo = 0;
	visuInfo2 = 0;
	visuPartners = 0;
	visuPartners2 = 0;
	visuArticoli = 0;
	visuArticoli2 = 0;
	document.images['prodotti1'].src=img3.src;
	document.images['eventi1'].src=img4.src;
	document.images['info1'].src=img7.src;
	document.images['partners1'].src=img10.src;
	document.images['articoli1'].src=img13.src;
}
function visProdottiOver(){
if(visuProdotti2 != 2){
	document.images['prodotti1'].src=img2.src;
}
}
function visProdottiOut(){
if(visuProdotti != 1){
	document.images['prodotti1'].src=img1.src;
}
}

function visEventi(){
	visuProdotti = 0;
	visuProdotti2 = 0;
	visuEventi = 1;
	visuEventi2 = 2;
	visuInfo = 0;
	visuInfo2 = 0;
	visuPartners = 0;
	visuPartners2 = 0;
	visuArticoli = 0;
	visuArticoli2 = 0;
	document.images['prodotti1'].src=img1.src;
	document.images['eventi1'].src=img6.src;
	document.images['info1'].src=img7.src;
	document.images['partners1'].src=img10.src;
	document.images['articoli1'].src=img13.src;
}
function visEventiOver(){
if(visuEventi2 != 2){
	document.images['eventi1'].src=img5.src;
}
}
function visEventiOut(){
if(visuEventi != 1){
	document.images['eventi1'].src=img4.src;
}
}

function visInfo(){
	visuProdotti = 0;
	visuProdotti2 = 0;
	visuEventi = 0;
	visuEventi2 = 0;
	visuInfo = 1;
	visuInfo2 = 2;
	visuPartners = 0;
	visuPartners2 = 0;
	visuArticoli = 0;
	visuArticoli2 = 0;
	document.images['prodotti1'].src=img1.src;
	document.images['eventi1'].src=img4.src;
	document.images['info1'].src=img9.src;
	document.images['partners1'].src=img10.src;
	document.images['articoli1'].src=img13.src;
}
function visInfoOver(){
if(visuInfo2 != 2){
	document.images['info1'].src=img8.src;
}
}
function visInfoOut(){
if(visuInfo != 1){
	document.images['info1'].src=img7.src;
}
}

function visPartners(){
	visuProdotti = 0;
	visuProdotti2 = 0;
	visuEventi = 0;
	visuEventi2 = 0;
	visuInfo = 0;
	visuInfo2 = 0;
	visuPartners = 1;
	visuPartners2 = 2;
	visuArticoli = 0;
	visuArticoli2 = 0;
	document.images['prodotti1'].src=img1.src;
	document.images['eventi1'].src=img4.src;
	document.images['info1'].src=img7.src;
	document.images['partners1'].src=img12.src;
	document.images['articoli1'].src=img13.src;
}
function visPartnersOver(){
if(visuPartners2 != 2){
	document.images['partners1'].src=img11.src;
}
}
function visPartnersOut(){
if(visuPartners != 1){
	document.images['partners1'].src=img10.src;
}
}

function visArticoli(){
	visuProdotti = 0;
	visuProdotti2 = 0;
	visuEventi = 0;
	visuEventi2 = 0;
	visuInfo = 0;
	visuInfo2 = 0;
	visuPartners = 0;
	visuPartners2 = 0;
	visuArticoli = 1;
	visuArticoli2 = 2;
	document.images['prodotti1'].src=img1.src;
	document.images['eventi1'].src=img4.src;
	document.images['info1'].src=img7.src;
	document.images['partners1'].src=img10.src;
	document.images['articoli1'].src=img15.src;
}
function visArticoliOver(){
if(visuArticoli2 != 2){
	document.images['articoli1'].src=img14.src;
}
}
function visArticoliOut(){
if(visuArticoli != 1){
	document.images['articoli1'].src=img13.src;
}
}

var provaROSSI;
var provaBIANCHI;
var provaROSATI;
var provaDESSERT;
var provaBIRRE;
var provaBOLL;
var provaDIST;
var provaROSSI2;
var provaBIANCHI2;
var provaROSATI2;
var provaDESSERT2;
var provaBIRRE2;
var provaBOLL2;
var provaDIST2;

/* rossi */
function mostraFoto(id){
		var divFoto = parent.document.getElementById("fotoprod");
		divFoto.innerHTML = "<iframe width=\"180\" height=\"360\" frameborder=\"0\" src=\"vino_foto.php?id="+id+"\" id=\"fotoprodotto\" name=\"fotoprodotto\" scrolling=\"no\" allowTransparency=\"true\"></iframe>";
	}

function mostraFotoART(id){
		var divFoto = parent.document.getElementById("cont_foto_articoli");
		divFoto.innerHTML = "<iframe width=\"510\" height=\"360\" frameborder=\"0\" src=\"art_foto.php?id="+id+"\" id=\"fotoarticolo\" name=\"fotoarticolo\" scrolling=\"no\" allowTransparency=\"true\"></iframe>";
	}

function mostraFotoBoll(id, tipo){
		var divFoto = parent.document.getElementById("fotoprod");
		divFoto.innerHTML = "<iframe width=\"180\" height=\"360\" frameborder=\"0\" src=\"boll_foto.php?id="+id+"&tipo="+tipo+"\" id=\"fotoprodotto\" name=\"fotoprodotto\" scrolling=\"no\" allowTransparency=\"true\"></iframe>";
	}

function mostraFotoBirre(id){
		var divFoto = parent.document.getElementById("fotoprod");
		divFoto.innerHTML = "<iframe width=\"180\" height=\"360\" frameborder=\"0\" src=\"birre_foto.php?id="+id+"\" id=\"fotoprodotto\" name=\"fotoprodotto\" scrolling=\"no\" allowTransparency=\"true\"></iframe>";
	}

function mostraRegione(region){
	var divFoto = parent.document.getElementById("fotoprod");
	divFoto.innerHTML = "<iframe width=\"180\" height=\"360\" frameborder=\"0\" src=\"reg_foto.php?reg="+region+"\" id=\"fotoprodotto\" name=\"fotoprodotto\" scrolling=\"no\" allowTransparency=\"true\"></iframe>";
}

function visProdROSSO(tipcan, region, opz, idSEL){
	var divScheda = document.getElementById("schedaprod");
	divScheda.innerHTML = "<iframe width=\"180\" height=\"360\" frameborder=\"0\" src=\"scheda.php?tc="+tipcan+"&r="+region+"&opz="+opz+"\" id=\"schedaprodotto\" name=\"schedaprodotto\" scrolling=\"no\" allowTransparency=\"true\"></iframe>";
	
	var divFoto = document.getElementById("fotoprod");
	divFoto.innerHTML = "<iframe width=\"180\" height=\"360\" frameborder=\"0\" src=\"reg_foto.php?reg="+region+"\" id=\"fotoprodotto\" name=\"fotoprodotto\" scrolling=\"no\" allowTransparency=\"true\"></iframe>";
	
	document.getElementById("schedaprod").className = "schedaprod1";
	document.getElementById("fotoprod").className = "fotoprod1";
	
	provaROSSI = 1;
	provaBIANCHI = 0;
	provaDESSERT = 0;
	provaBIRRE = 0;
	provaBOLL = 0;
	provaDIST = 0;
	provaROSSI2 = 2;
	provaBIANCHI2 = 0;
	provaDESSERT2 = 0;
	provaBIRRE2 = 0;
	provaBOLL2 = 0;
	provaDIST2 = 0;
	document.getElementById("barrarossi").className = "barrasottooro";
	document.getElementById("barrabianchi").className = "barrasottogrigia";
	document.getElementById("barrarosati").className = "barrasottogrigia";
	document.getElementById("barradessert").className = "barrasottogrigia";
	document.getElementById("barrabirre").className = "barrasottogrigia";
	document.getElementById("barrabolldist").className = "barrasottogrigia";
	
	var pro = document.getElementById(idSEL);
	pro.className = "cont_sel_regROS1";
}

function visProdROSSOout(idDESEL){
	if(provaROSSI != 1){
		var pro1 = document.getElementById(idDESEL);
		pro1.className = "cont_sel_regROS";
	}	
}

function visProdROSSOover(idSEL){
	if(provaROSSI2 != 2){
		var pro1 = document.getElementById(idSEL);
		pro1.className = "cont_sel_regROS1";
	}
}

function deselAllRosCol(indRos, numRow){
	if(indRos == 1){
	for (i=1; i<=numRow; i++) { 
		var pro = document.getElementById('idros'+i);
		pro.className = "cont_sel_regROS";
	}
	}

}

/* bianchi */
function visProdBIANCO(tipcan, region, opz, idSEL){
	var divScheda = document.getElementById("schedaprod");
	divScheda.innerHTML = "<iframe width=\"180\" height=\"360\" frameborder=\"0\" src=\"scheda.php?tc="+tipcan+"&r="+region+"&opz="+opz+"\" id=\"schedaprodotto\" name=\"schedaprodotto\" scrolling=\"no\" allowTransparency=\"true\"></iframe>";
	
	var divFoto = document.getElementById("fotoprod");
	divFoto.innerHTML = "<iframe width=\"180\" height=\"360\" frameborder=\"0\" src=\"reg_foto.php?reg="+region+"\" id=\"fotoprodotto\" name=\"fotoprodotto\" scrolling=\"no\" allowTransparency=\"true\"></iframe>";
	
	document.getElementById("schedaprod").className = "schedaprod1";
	document.getElementById("fotoprod").className = "fotoprod1";
	
	provaROSSI = 0;
	provaBIANCHI = 1;
	provaDESSERT = 0;
	provaBIRRE = 0;
	provaBOLL = 0;
	provaDIST = 0;
	provaROSSI2 = 0;
	provaBIANCHI2 = 2;
	provaDESSERT2 = 0;
	provaBIRRE2 = 0;
	provaBOLL2 = 0;
	provaDIST2 = 0;
	document.getElementById("barrabianchi").className = "barrasottooro";
	document.getElementById("barrarossi").className = "barrasottogrigia";
	document.getElementById("barrarosati").className = "barrasottogrigia";
	document.getElementById("barradessert").className = "barrasottogrigia";
	document.getElementById("barrabirre").className = "barrasottogrigia";
	document.getElementById("barrabolldist").className = "barrasottogrigia";
	
	var pro = document.getElementById(idSEL);
	pro.className = "cont_sel_regBIA1";
}

function visProdBIANCOout(idDESEL){
	if(provaBIANCHI != 1){
		var pro1 = document.getElementById(idDESEL);
		pro1.className = "cont_sel_regBIA";
	}	
}

function visProdBIANCOover(idSEL){
	if(provaBIANCHI2 != 2){
		var pro1 = document.getElementById(idSEL);
		pro1.className = "cont_sel_regBIA1";
	}
}

function deselAllBiaCol(indBia, numRowB){
	if(indBia == 1){
	for (a=1; a<=numRowB; a++) { 
		var pro2 = document.getElementById('idbia'+a);
		pro2.className = "cont_sel_regBIA";
	}
	}
}

/* rosati */

function visProdROSATO(tipcan, region, opz, idSEL){
	var divScheda = document.getElementById("schedaprod");
	divScheda.innerHTML = "<iframe width=\"180\" height=\"360\" frameborder=\"0\" src=\"scheda.php?tc="+tipcan+"&r="+region+"&opz="+opz+"\" id=\"schedaprodotto\" name=\"schedaprodotto\" scrolling=\"no\" allowTransparency=\"true\"></iframe>";
	
	var divFoto = document.getElementById("fotoprod");
	divFoto.innerHTML = "<iframe width=\"180\" height=\"360\" frameborder=\"0\" src=\"reg_foto.php?reg="+region+"\" id=\"fotoprodotto\" name=\"fotoprodotto\" scrolling=\"no\" allowTransparency=\"true\"></iframe>";
	
	document.getElementById("schedaprod").className = "schedaprod1";
	document.getElementById("fotoprod").className = "fotoprod1";
	
	provaROSSI = 0;
	provaBIANCHI = 0;
	provaROSATI = 1;
	provaDESSERT = 0;
	provaBIRRE = 0;
	provaBOLL = 0;
	provaDIST = 0;
	provaROSSI2 = 0;
	provaROSATI2 = 2;
	provaBIANCHI2 = 0;
	provaDESSERT2 = 0;
	provaBIRRE2 = 0;
	provaBOLL2 = 0;
	provaDIST2 = 0;
	document.getElementById("barrarosati").className = "barrasottooro";
	document.getElementById("barrabianchi").className = "barrasottogrigia";
	document.getElementById("barrarossi").className = "barrasottogrigia";
	document.getElementById("barradessert").className = "barrasottogrigia";
	document.getElementById("barrabirre").className = "barrasottogrigia";
	document.getElementById("barrabolldist").className = "barrasottogrigia";
	
	var pro2 = document.getElementById(idSEL);
	pro2.className = "cont_sel_regROSA1";
}

function visProdROSATIout(idDESEL){
	if(provaROSATI != 1){
		var pro1 = document.getElementById(idDESEL);
		pro1.className = "cont_sel_regROSA";
	}	
}

function visProdROSATIover(idSEL){
	if(provaROSATI2 != 2){
		var pro1 = document.getElementById(idSEL);
		pro1.className = "cont_sel_regROSA1";
	}
}

function deselAllRosaCol(indRosa, numRowRosa){
	if(indRosa == 1){
	for (f=1; f<=numRowRosa; f++) { 
		var pro2 = document.getElementById('idrosa'+f);
		pro2.className = "cont_sel_regROSA";
	}
	}
}

/* dessert */
function visProdDESSERT(tipcan, region, opz, idSEL){
	var divScheda = document.getElementById("schedaprod");
	divScheda.innerHTML = "<iframe width=\"180\" height=\"360\" frameborder=\"0\" src=\"scheda.php?tc="+tipcan+"&r="+region+"&opz="+opz+"\" id=\"schedaprodotto\" name=\"schedaprodotto\" scrolling=\"no\" allowTransparency=\"true\"></iframe>";
	
	var divFoto = document.getElementById("fotoprod");
	divFoto.innerHTML = "<iframe width=\"180\" height=\"360\" frameborder=\"0\" src=\"reg_foto.php?reg="+region+"\" id=\"fotoprodotto\" name=\"fotoprodotto\" scrolling=\"no\" allowTransparency=\"true\"></iframe>";
	
	document.getElementById("schedaprod").className = "schedaprod1";
	document.getElementById("fotoprod").className = "fotoprod1";
	
	provaROSSI = 0;
	provaBIANCHI = 0;
	provaROSATI = 0;
	provaDESSERT = 1;
	provaBIRRE = 0;
	provaBOLL = 0;
	provaDIST = 0;
	provaROSSI2 = 0;
	provaROSATI2 = 0;
	provaBIANCHI2 = 0;
	provaDESSERT2 = 2;
	provaBIRRE2 = 0;
	provaBOLL2 = 0;
	provaDIST2 = 0;
	document.getElementById("barradessert").className = "barrasottooro";
	document.getElementById("barrarossi").className = "barrasottogrigia";
	document.getElementById("barrabianchi").className = "barrasottogrigia";
	document.getElementById("barrarosati").className = "barrasottogrigia";
	document.getElementById("barrabirre").className = "barrasottogrigia";
	document.getElementById("barrabolldist").className = "barrasottogrigia";
	
	var pro2 = document.getElementById(idSEL);
	pro2.className = "cont_sel_regDES1";
}

function visProdDESSERTout(idDESEL){
	if(provaDESSERT != 1){
		var pro1 = document.getElementById(idDESEL);
		pro1.className = "cont_sel_regDES";
	}	
}

function visProdDESSERTover(idSEL){
	if(provaDESSERT2 != 2){
		var pro5 = document.getElementById(idSEL);
		pro5.className = "cont_sel_regDES1";
	}
}

function deselAllDesCol(indDes, numRowD){
	if(indDes == 1){
	for (b=1; b<=numRowD; b++) { 
		var pro = document.getElementById('iddes'+b);
		pro.className = "cont_sel_regDES";
	}
	}

}

/* birre */
function visProdBIRRE(tipcan, region, opz, idSEL){
	var divScheda = document.getElementById("schedaprod");
	divScheda.innerHTML = "<iframe width=\"180\" height=\"360\" frameborder=\"0\" src=\"scheda.php?tc="+tipcan+"&r="+region+"&opz="+opz+"\" id=\"schedaprodotto\" name=\"schedaprodotto\" scrolling=\"no\" allowTransparency=\"true\"></iframe>";
	
	var divFoto = document.getElementById("fotoprod");
	divFoto.innerHTML = "<iframe width=\"180\" height=\"360\" frameborder=\"0\" src=\"reg_foto.php?reg="+region+"\" id=\"fotoprodotto\" name=\"fotoprodotto\" scrolling=\"no\" allowTransparency=\"true\"></iframe>";
	
	document.getElementById("schedaprod").className = "schedaprod1";
	document.getElementById("fotoprod").className = "fotoprod1";
	
	provaROSSI = 0;
	provaBIANCHI = 0;
	provaROSATI = 0;
	provaDESSERT = 0;
	provaBIRRE = 1;
	provaBOLL = 0;
	provaDIST = 0;
	provaROSSI2 = 0;
	provaROSATI2 = 0;
	provaBIANCHI2 = 0;
	provaDESSERT2 = 0;
	provaBIRRE2 = 2;
	provaBOLL2 = 0;
	provaDIST2 = 0;
	document.getElementById("barrabirre").className = "barrasottooro";
	document.getElementById("barrarossi").className = "barrasottogrigia";
	document.getElementById("barrabianchi").className = "barrasottogrigia";
	document.getElementById("barrarosati").className = "barrasottogrigia";
	document.getElementById("barradessert").className = "barrasottogrigia";
	document.getElementById("barrabolldist").className = "barrasottogrigia";
	
	var pro2 = document.getElementById(idSEL);
	pro2.className = "cont_sel_regROS1";
}

function visProdBIRREout(idDESEL){
	if(provaBIRRE != 1){
		var pro1 = document.getElementById(idDESEL);
		pro1.className = "cont_sel_regROS";
	}	
}

function visProdBIRREover(idSEL){
	if(provaBIRRE2 != 2){
		var pro1 = document.getElementById(idSEL);
		pro1.className = "cont_sel_regROS1";
	}
}

function deselAllBirCol(indBir, numRowBI){
	if(indBir == 1){
	for (c=1; c<=numRowBI; c++) { 
		var pro = document.getElementById('idbir'+c);
		pro.className = "cont_sel_regROS";
	}
	}

}

/* bollicine */
function visProdBOLL(tipcan, region, opz, idSEL){
	var divScheda = document.getElementById("schedaprod");
	divScheda.innerHTML = "<iframe width=\"180\" height=\"360\" frameborder=\"0\" src=\"scheda.php?tc="+tipcan+"&r="+region+"&opz="+opz+"\" id=\"schedaprodotto\" name=\"schedaprodotto\" scrolling=\"no\" allowTransparency=\"true\"></iframe>";
	
	var divFoto = document.getElementById("fotoprod");
	divFoto.innerHTML = "<iframe width=\"180\" height=\"360\" frameborder=\"0\" src=\"reg_foto.php?reg="+region+"\" id=\"fotoprodotto\" name=\"fotoprodotto\" scrolling=\"no\" allowTransparency=\"true\"></iframe>";
	
	document.getElementById("schedaprod").className = "schedaprod1";
	document.getElementById("fotoprod").className = "fotoprod1";
	
	provaROSSI = 0;
	provaBIANCHI = 0;
	provaROSATI = 0;
	provaDESSERT = 0;
	provaBIRRE = 0;
	provaBOLL = 1;
	provaDIST = 0;
	provaROSSI2 = 0;
	provaROSATI2 = 0;
	provaBIANCHI2 = 0;
	provaDESSERT2 = 0;
	provaBIRRE2 = 0;
	provaBOLL2 = 2;
	provaDIST2 = 0;
	document.getElementById("barrabolldist").className = "barrasottooro";
	document.getElementById("barrabirre").className = "barrasottogrigia";
	document.getElementById("barrarossi").className = "barrasottogrigia";
	document.getElementById("barrabianchi").className = "barrasottogrigia";
	document.getElementById("barrarosati").className = "barrasottogrigia";
	document.getElementById("barradessert").className = "barrasottogrigia";
	
	var pro2 = document.getElementById(idSEL);
	pro2.className = "cont_sel_regDISBIR1";
}

function visProdBOLLout(idDESEL){
	if(provaBOLL != 1){
		var pro1 = document.getElementById(idDESEL);
		pro1.className = "cont_sel_regDISBIR";
	}	
}

function visProdBOLLover(idSEL){
	if(provaBOLL2 != 2){
		var pro1 = document.getElementById(idSEL);
		pro1.className = "cont_sel_regDISBIR1";
	}
}
function deselAllBollCol(indBoll, numRowBO){
	if(indBoll == 1){
	for (d=1; d<=numRowBO; d++) { 
		var pro = document.getElementById('iddisbir'+d);
		pro.className = "cont_sel_regDISBIR";
	}
	}

}

/* distillati */
function visProdDIST(tipcan, region, opz, idSEL){
	var divScheda = document.getElementById("schedaprod");
	divScheda.innerHTML = "<iframe width=\"180\" height=\"360\" frameborder=\"0\" src=\"scheda.php?tc="+tipcan+"&r="+region+"&opz="+opz+"\" id=\"schedaprodotto\" name=\"schedaprodotto\" scrolling=\"no\" allowTransparency=\"true\"></iframe>";
	
	var divFoto = document.getElementById("fotoprod");
	divFoto.innerHTML = "<iframe width=\"180\" height=\"360\" frameborder=\"0\" src=\"reg_foto.php?reg="+region+"\" id=\"fotoprodotto\" name=\"fotoprodotto\" scrolling=\"no\" allowTransparency=\"true\"></iframe>";
	
	document.getElementById("schedaprod").className = "schedaprod1";
	document.getElementById("fotoprod").className = "fotoprod1";
	
	provaROSSI = 0;
	provaBIANCHI = 0;
	provaROSATI = 0;
	provaDESSERT = 0;
	provaBIRRE = 0;
	provaBOLL = 0;
	provaDIST = 1;
	provaROSSI2 = 0;
	provaROSATI2 = 0;
	provaBIANCHI2 = 0;
	provaDESSERT2 = 0;
	provaBIRRE2 = 0;
	provaBOLL2 = 0;
	provaDIST2 = 2;
	document.getElementById("barrabolldist").className = "barrasottooro";
	document.getElementById("barrabirre").className = "barrasottogrigia";
	document.getElementById("barrarossi").className = "barrasottogrigia";
	document.getElementById("barrabianchi").className = "barrasottogrigia";
	document.getElementById("barrarosati").className = "barrasottogrigia";
	document.getElementById("barradessert").className = "barrasottogrigia";
	
	var pro2 = document.getElementById(idSEL);
	pro2.className = "cont_sel_regDISBIR1";
}

function visProdDISTout(idDESEL){
	if(provaDIST != 1){
		var pro1 = document.getElementById(idDESEL);
		pro1.className = "cont_sel_regDISBIR";
	}	
}

function visProdDISTover(idSEL){
	if(provaDIST2 != 2){
		var pro1 = document.getElementById(idSEL);
		pro1.className = "cont_sel_regDISBIR1";
	}
}
function deselAllDistCol(indDist, numRowDI){
	if(indDist == 1){
	for (e=1; e<=numRowDI; e++) { 
		var pro = document.getElementById('iddist'+e);
		pro.className = "cont_sel_regDISBIR";
	}
	}

}

function showHide(id){
   el = document.getElementById(id);
   el.style.display = (el.style.display != 'block')? 'block' : 'none';
}

function visRicerca(){
	document.getElementById("schedaprod").className = "schedaprod2";
	document.getElementById("fotoprod").className = "fotoprodRic";
	var stringa = document.getElementById("testoCerca").value;
	//alert(stringa);
	//stringa2 = replace('&','§','stringa');
	//alert(stringa2);
	var divScheda = document.getElementById("schedaprod");
	divScheda.innerHTML = "<iframe width=\"180\" height=\"360\" frameborder=\"0\" src=\"ricerca.php?s="+stringa+"\" id=\"schedaprodotto\" name=\"schedaprodotto\" scrolling=\"no\" allowTransparency=\"true\"></iframe>";
}
