<!-- Applet tintometrico -->
function Paint(rgb)
{
        document.AreaSelect.setcolor(rgb); 
}

function Vuota()
{
}
<!-- Applet tintometrico fine -->

function ricerca() {
	if (ns4) {
	document.write("<input type='text' size='8' name='search'>")
	}
	else {
	document.write("<input type='text' class='cerca' name='search'>")
	}
}

function searchCheck() {
if (form.search.value == "")
	{
	alert("Inserire una parola per la ricerca");
	}
else
document.form.submit();
}

function winPop(winName,features) { //v2.0
  window.open("credits.htm",winName,features);
}

function winPop2(winName,features) { //v2.0
  window.open("engpop.htm",winName,features);
}

function banner(ref,img) {
if (ref == "non"){
return false;
}
else if (ref == "#") {
	ad = "<br>";
	ad += "<table cellpadding='2' cellspacing='1' border='0' align='center'>";
	ad += "<tr>";
	ad += "<td align='center'>";
	ad += "<img src='img/" + img +"' border='0'>";
	ad += "</td>";
	ad += "</tr>";
	ad += "</table>";
	document.writeln (ad);
}
else {
ad = "<br>";
ad += "<table cellpadding='2' cellspacing='1' border='0' align='center'>";
ad += "<tr>";
ad += "<td align='center'>";
ad += "<a href='http://" + ref + "' target='_blank'><img src='img/" + img +"' border='0'></a>";
ad += "</td>";
ad += "</tr>";
ad += "</table>";
document.writeln (ad);
}
}

var photos = new Array();
	var which = 0;
	
	photos[0] = "img/murales_01.jpg"
	photos[1] = "img/murales_02.jpg"
	photos[2] = "img/murales_03.jpg"
	photos[3] = "img/murales_04.jpg"
	photos[4] = "img/murales_05.jpg"
	photos[5] = "img/murales_06.jpg"
	
	function moveforward() {
	if (which<photos.length-1){
	which++
	document.images.main.src=photos[which]
	}
	else window.status='Fine galleria'
	}

	function moveback() {
	if (which>0){
	window.status=''
	which--
	document.images.main.src=photos[which]
	}
	}
	
// Tutte le soluzioni per....
what = new Array();
what[0] = new Array('');
what[1] = new Array('1_1.htm,Sfarinamento','1_2.htm,Sfogliamento','1_3.htm,Licheni e Alghe','1_4.htm,Efflorescenze saline','1_5.htm,Cavillature','1_6.htm,Crepe');
what[2] = new Array('2_1.htm,Conservazione','2_2.htm,Sfarinamento','2_3.htm,Sfogliamento','2_4.htm,Macchie di fumo e nicotina','2_5.htm,Pareti in gesso','2_6.htm,Preesistenza rivestimenti murali','2_7.htm,Muffa','2_8.htm,Umidità');
what[3] = new Array('3_1.htm,Conservazione dei Giunti di Malta','3_2.htm,Smog','3_3.htm,Muffe e Licheni','3_4.htm,Umidità di Risalita','3_5.htm,Porosità');
what[4] = new Array('4_1.htm,Ritoccare la ceramica','4_2.htm,Polvere','4_3.htm,Verniciare il parquet','4_4.htm,Infiltrazioni di umidita’ e acqua sulle coperture');
what[5] = new Array('5_1.htm,Conservazione','5_2.htm,Verniciatura  del legno','5_3.htm,Retinatura','5_4.htm,Spellatura');
what[6] = new Array('6_1.htm,Inquinamento - Migliorare l’estetica - Ossidazione');
what[7] = new Array('7_1.htm,Inquinamento - Migliorare l’estetica - Ossidazione');
what[8] = new Array('8_1.htm,Soluzioni per la protezione');
what[9] = new Array('9_1.htm,Verniciatura');
what[10] = new Array('10_1.htm,Verniciatura');
what[11] = new Array('11_1.htm,Verniciatura');
what[12] = new Array('12_1.htm,Verniciatura');
what[13] = new Array('13_1.htm,Soluzioni per il ripristino del supporto','13_2.htm,Soluzioni per la ruggine','13_3.htm,Lavorazioni pregiate di manufatti in ferro');


function fillDiv()
{
num = document.bisogno.item[document.bisogno.item.selectedIndex].value;
if (num == "99") {
nothing();
}
else {
data = what[document.bisogno.item.selectedIndex];
lista(data,num);
}
}

function lista(data,num) { 
var text;
text = "";
	for(i=0; data.length>i; i++)
	{
	  var x = data[i];
	  var indexOfComma = x.indexOf(',');
	  var modelName = x.substring(indexOfComma+1);
	  var code = x.substring(0,indexOfComma);
	  text += document.writeln = "&middot; <a href=" + code +" target='content' class='argomento'>" + modelName + "</a><br>";
	  
	}
// Netscape 4 code //
if (ns4) {
	document.layer[cara].writeln = "<span class='all'><a href='" + num + "_0.htm' target='content' class='argomento'>Caratteristiche</a></span><br>&nbsp;";

}
// IE & Net 6 code //
else {
	document.all.cara.innerHTML = "<span class='all'><a href='" + num + "_0.htm' target='content' class='argomento'>Caratteristiche</a></span><br>&nbsp;";
	document.all.itemlist.innerHTML = text;
	document.all.prodotti.innerHTML = "<span class='all'><a href='prodlist_0" + num + ".htm' target='content' class='argomento'>Prodotti Consigliati</a></span>";
	document.all.content.src = num + "_0.htm";
	}
}

function nothing() {
document.all.content.src = "bisogno_blank.htm";
document.all.cara.innerHTML = "<span class='all'>Caratteristiche</span><br>&nbsp;"
document.all.itemlist.innerHTML = "";
document.all.prodotti.innerHTML = "<span class='all'>Prodotti Consigliati</span>";
}
	
	