<!--

function fBottom()
	{
	var bottom=''+
	'<TR><TD align="center" class="stdS" bgcolor="#EEEEEE">'+
	'SfondiLandia.it © 2002-'+(new Date()).getFullYear()+' - All rights reserved - '+
	'<A href="javascript:apri(\'notePop.asp\',\'_blank\',\'300\',\'230\',\'no\')">&nbsp;Note legali</A>'+
	'</TD></TR>';
	window.document.write(bottom);
	window.document.close();	
	}

function apri(url,target,width,height,scroll)
	{
	if(scroll=='yes'){window.open(url, target, 'height='+height+',width='+width+',scrollbars='+scroll+',status=yes');}
	else{window.open(url, target, 'height='+height+',width='+width+',status=yes');}
	}

function preTrim(stringa)
	{
	carattereTrovato = false;
	if(stringa.length<1) {return '';}
  	else
		{
		var i=0;
		while(carattereTrovato!=true && i<(stringa.length))
			{
			if(stringa.charAt(i)!=' '){carattereTrovato=true;} 
			else {i++;} 
			}
		if(carattereTrovato==true){return (stringa.substring(i,stringa.length));} 
		else {return '';}
		}
	}

function postTrim(stringa)
	{
	carattereTrovato = false;
	if(stringa.length<1) {return '';}
	else
		{
		i=stringa.length-1;
		while(carattereTrovato!=true && i>=0)
			{
			if(stringa.charAt(i)!=' ') {carattereTrovato=true;}
			else i--;
			}
		if(carattereTrovato==true) {return (stringa.substring(0,i+1));} 
		else {return '';}
		}
	}

function trim(stringa){return postTrim(preTrim(stringa));}

function implement(form)
	{
	var messApp='';
	return messApp;
	}

function checkMailDel(form)
	{
	var param2= new Array();
	param2['mailCancella']='Email,required,email';
	var rit=controllaNews(form,param2);
	if(rit==true){form.submit();}
	}

function noDel(form)
	{
	if(form.mailCancella.value!=''){form.mailCancella.value='';}	
	}

function changecolor(which,type,color)
	{
	var flashlinks=document.all.flashlink;
	if(type==0)
		{
		if(flashlinks[which].style.color!=color){flashlinks[which].style.color=color;}
		else{flashlinks[which].style.color='';}
		}
	else if (type==1)
		{
		if(flashlinks[which].style.backgroundColor!=color){flashlinks[which].style.backgroundColor=color;}
		else{flashlinks[which].style.backgroundColor='';}
		}
	}

function changecolorParti()
	{
	var flashlinks=document.all.flashlink;
	if(document.all.flashlink)
		{
		if(flashlinks.length==undefined){flashlinks[0]=document.all.flashlink; flashlinks.length=1;}
		for(var i=0; i<flashlinks.length; i++)
			{
			var flashengine='setInterval("changecolor('+i+','+flashlinks[i].flashtype+',\''+flashlinks[i].flashcolor+'\')",'+'1000)';
			eval(flashengine);
			}	
		}		
	}

function floatObject(obj)
	{
	var startX=0, startY=0;
	var ns = (navigator.appName.indexOf("Netscape")!=-1);
	var d = document;
	var px = document.layers ? "" : "px";
	
	function ml(id)
		{
		var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
		if(d.layers)el.style=el;
		el.sP=function(x,y){this.style.left=x+px;this.style.top=y+px;};
		el.x=startX; el.y=startY;
		return el;
		}
	
	window.floatObj=function()
		{
		var pY=ns?pageYOffset:document.documentElement && document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;
		var dY=(pY>startY)?pY:startY;
		ftlObj.y+=(dY-ftlObj.y)/8;
		ftlObj.sP(ftlObj.x,ftlObj.y);
		setTimeout("floatObj()", 20);
		}
	ftlObj=ml(obj);
	floatObj();
	}







//******************** GESTIONE MOTORE RICERCA ********************
function pulisci(inp){inp.value='';}

function controllo(formRic)
	{
	var testo=trim((formRic.idKey.value).toLowerCase());
	formRic.idKey.value=testo;
	var okCheck=false;
	if(testo.length<3){alert('Attenzione: inserire almeno 3 caratteri.'); formRic.idKey.focus();}
	else
		{
		okCheck=caratteri(testo); //controllo caratteri
		var wordsCon=';'+(testo.split(" ")).join(';')+';';
		if(okCheck){okCheck=superflue(testo,wordsCon);} // controllo superflue
		if(okCheck){okCheck=noFound(wordsCon);} // controllo chiavi non presenti
		if(okCheck)
			{
			testo=controllore(wordsCon); // analisi ricerca
			formRic.idKey.value=testo;
			okCheck = redirectCheck(testo); // redirect directory
			}
		}
	//if(okCheck){alert('ok'); okCheck=false;} // riga per i test
	return okCheck;
	}


function controllore(wordsCon)
	{
/*50 cent*/	if((wordsCon.indexOf(';50')!=-1 || wordsCon.indexOf(';fifty;')!=-1) && wordsCon.indexOf('cent;')!=-1){wordsCon=';50;cent;';}
/*A.Falchi*/	if(wordsCon.indexOf(';anna;')!=-1 && wordsCon.indexOf(';falchi;')!=-1){wordsCon=';anna;falchi;';}
/*A.Sordi*/	if((wordsCon.indexOf(';alberto;')!=-1 && wordsCon.indexOf(';sordi;')!=-1) || wordsCon.indexOf(';albertone;')!=-1){wordsCon=';alberto;sordi;';}
/*Aerei*/	if(wordsCon.indexOf(';aere')!=-1 || wordsCon.indexOf('aerop')!=-1 || wordsCon.indexOf('velivoli')!=-1){wordsCon=';aerei;';}
/*Acqua*/	if(wordsCon.indexOf(';acqua;')!=-1 || wordsCon.indexOf(';aqua;')!=-1){wordsCon=';acqua;';}
/*Acquario*/	if(wordsCon.indexOf(';acquari')!=-1 || wordsCon.indexOf(';aquari')!=-1 || wordsCon.indexOf(';acuar')!=-1){wordsCon=';acquario;';}
/*Alberi*/	if(wordsCon.indexOf(';alber')!=-1 && wordsCon.indexOf(';albert')==-1)
			{
			if(wordsCon.indexOf(';natal')==-1){wordsCon=';alberi;';}	
			else{wordsCon=';alberi;natale;';}
			}
/*Amicizia*/	if(wordsCon.indexOf(';amic')!=-1){wordsCon=';amicizia;';}
/*Amore*/	if(	wordsCon.indexOf(';amor')!=-1 || wordsCon.indexOf(';innamorat')!=-1 || 
			wordsCon.indexOf(';fidanz')!=-1 || wordsCon.indexOf(';affetto;')!=-1 ||
			wordsCon.indexOf(';romantic')!=-1 || wordsCon.indexOf(';amanti;')!=-1 ||
			wordsCon.indexOf(';affettuos')!=-1){wordsCon=';amore;';}
		if(wordsCon.indexOf(';love;')!=-1 && wordsCon.indexOf(';courtney;')==-1 && wordsCon.indexOf(';jennifer;')==-1){wordsCon=';amore;';}
/*Animali*/	if(wordsCon.indexOf(';animal')!=-1){wordsCon=';animali;';}
/*Animati*/	if(wordsCon.indexOf(';animat')!=-1 && wordsCon.indexOf(';carton')==-1){wordsCon=';sfondi animati;';}
/*Anne Geddes*/	if(wordsCon.indexOf('ann')!=-1 && wordsCon.indexOf('dde')!=-1){wordsCon=';anne;geddes;';}
/*Assi*/	if(wordsCon.indexOf(';asso;')!=-1){wordsCon=changeWord(wordsCon,'asso','assi');}
/*Astronauti*/	if(wordsCon.indexOf(';astronauta;')!=-1){wordsCon=changeWord(wordsCon,'astronauta','astronauti');}
/*Arance*/	if(wordsCon.indexOf(';aranci')!=-1 && wordsCon.indexOf(';meccanica;')==-1){wordsCon=';arance;';}
/*Arieti*/	if(wordsCon.indexOf(';ariete;')!=-1 || wordsCon.indexOf(';arieti;')!=-1){wordsCon=';arieti;';}
/*Arte*/	if(	wordsCon.indexOf(';pittura;')!=-1 || wordsCon.indexOf(';arte;')!=-1 ||
			wordsCon.indexOf(';quadri;')!=-1 || wordsCon.indexOf(';quadro;')!=-1 ||
			wordsCon.indexOf(';dipint')!=-1 || wordsCon.indexOf(';diping')!=-1			
			){wordsCon=';arte;';}
/*Aquile*/	if(wordsCon.indexOf('aquila')!=-1){wordsCon=changeWord(wordsCon,'aquila','aquile');}
/*Automobili*/	if(	wordsCon.indexOf(';auto;')!=-1 || wordsCon.indexOf('automobil')!=-1 ||
			wordsCon.indexOf(';macchin')!=-1 || wordsCon.indexOf('vettur')!=-1
			){wordsCon=';automobili;';}
/*Autunno*/	if(wordsCon.indexOf(';autun')!=-1){wordsCon=';autunno;';}
/*Babbo Natale*/if(wordsCon.indexOf(';babbo;')!=-1 && wordsCon.indexOf(';natale;')!=-1 && wordsCon.indexOf(';sexy;')==-1){wordsCon=';babbo;natale;';}
/*Baci*/	if(wordsCon.indexOf('baci')!=-1 && wordsCon.indexOf('ultimo')==-1 && wordsCon.indexOf('primo')==-1){wordsCon=';baci;';}
/*Baggett*/	if(wordsCon.indexOf(';bagget;')!=-1){wordsCon=changeWord(wordsCon,'bagget','baggett');}
/*Bambini*/	if(wordsCon.indexOf(';bimb')!=-1 || wordsCon.indexOf(';bambin')!=-1 || wordsCon.indexOf(';neonat')!=-1){wordsCon=';bambini;';}
/*Bandiere*/	if(wordsCon.indexOf(';bandier')!=-1){wordsCon=';bandiere;';}
/*Barbie*/	if((wordsCon.indexOf(';barbi')!=-1 && wordsCon.indexOf(';barbier')==-1) || wordsCon.indexOf(';barby;')!=-1){wordsCon=';barbie;';}
/*Barche*/	if(wordsCon.indexOf('barca')!=-1 || wordsCon.indexOf('barche')!=-1){wordsCon=';barche;';}
/*Befana sexy*/ if(	((wordsCon.indexOf(';babba')!=-1 || wordsCon.indexOf(';babbe')!=-1) && wordsCon.indexOf('natale')!=-1) ||
			((wordsCon.indexOf(';befan')!=-1 || wordsCon.indexOf(';natale')!=-1) && wordsCon.indexOf('sexy')!=-1)	
			){wordsCon=';befana;sexy;';}
/*Bellucci*/	if(wordsCon.indexOf(';bellucci;')!=-1 || wordsCon.indexOf(';belluci;')!=-1){wordsCon=';monica;bellucci;';}
/*Birre*/	if(wordsCon.indexOf(';birra;')!=-1 || wordsCon.indexOf(';birre;')!=-1){wordsCon=';birre;';}
/*Blue*/	if(	(wordsCon.indexOf(';lee;')!=-1 && wordsCon.indexOf(';ryan;')!=-1) || 
			wordsCon.indexOf(';ducan;')!=-1 || wordsCon.indexOf(';duncan;')!=-1 ||
			wordsCon.indexOf(';blue;')!=-1){wordsCon=';blue;';}
/*Blues*/	if(wordsCon.indexOf(';blues;')!=-1 && wordsCon.indexOf(';brothers;')==-1){wordsCon=';blues;';}
/*Body Art*/	if(wordsCon.indexOf(';body;')!=-1 && wordsCon.indexOf(';art;')!=-1){wordsCon=';body;art;';}
/*Bombe*/	if(wordsCon.indexOf(';bombe;')!=-1 || wordsCon.indexOf(';bomba;')!=-1 || wordsCon.indexOf(';bombard')!=-1){wordsCon=';bombe;';}
/*Bosco*/	if(wordsCon.indexOf(';bosco;')!=-1 || wordsCon.indexOf(';boschi;')!=-1){wordsCon=';boschi;';}
/*Brad Pitt*/	if(wordsCon.indexOf(';brad;')!=-1 && wordsCon.indexOf(';pitt;')!=-1){wordsCon=';brad;pitt;';}
/*Britney*/	if(wordsCon.indexOf(';britney;')!=-1 && wordsCon.indexOf(';spears;')!=-1){wordsCon=';britney;spears;';}
/*ByA.Siclari */if(wordsCon.indexOf(';siclari;')!=-1){wordsCon=';by;angelo;siclari;';}
/*By AleDiMat.*/if(wordsCon.indexOf(';di;')!=-1 && wordsCon.indexOf(';matteo;')!=-1){wordsCon=';by;ale;di;matteo;';}
/*By Bellotto */if(wordsCon.indexOf(';bellotto;')!=-1){wordsCon=';by;loris;bellotto;';}
/*By Gabriele*/	if(wordsCon.indexOf(';marina;')!=-1 && wordsCon.indexOf(';gabriele;')!=-1){wordsCon=';by;marina;gabriele;';}
/*By Grimani*/	if(wordsCon.indexOf(';grimani;')!=-1){wordsCon=';by;romina;grimani;';}
/*By filipponi*/if(wordsCon.indexOf(';filipponi;')!=-1){wordsCon=';by;ileana;filipponi;';}
/*By Pipan*/	if(wordsCon.indexOf(';pipan;')!=-1){wordsCon=';by;pipan;';}
/*By Puccioni */if(wordsCon.indexOf(';puccioni;')!=-1){wordsCon=';by;puccioni;';}
/*By Tomasetti*/if(wordsCon.indexOf(';tomasetti;')!=-1){wordsCon=';by;simone;tomasetti;';}
/*By Zavaglia*/	if(wordsCon.indexOf(';zavaglia;')!=-1){wordsCon=';by;franco;zavaglia;';}
/*C.Vitagliano*/if(wordsCon.indexOf(';costantino;')!=-1 || wordsCon.indexOf(';vitagliano;')!=-1){wordsCon=';costantino;vitagliano;';}
/*Caffè*/	if(wordsCon.indexOf(';caffe;')!=-1){wordsCon=changeWord(wordsCon,'caffe','caffè');}
/*Calciatori*/	if(wordsCon.indexOf(';calciator')!=-1){wordsCon=';calciatori;';}
/*Calcio*/	if(wordsCon.indexOf(';calcio;')!=-1 || wordsCon.indexOf(';scudett')!=-1){wordsCon=';calcio;';}
/*Calendario*/	if(wordsCon.indexOf(';calendari')!=-1){wordsCon=';calendario;';}
/*Cani*/	if(wordsCon.indexOf(';cani;')!=-1 || wordsCon.indexOf(';cane;')!=-1){wordsCon=';cani;';}
/*Caricature*/	if(wordsCon.indexOf(';caricatur')!=-1){wordsCon=';caricature;';}
/*Carnevale*/	if(wordsCon.indexOf(';carneval')!=-1){wordsCon=';carnevale;';}
/*Cartoni an.*/	if(wordsCon.indexOf(';carton')!=-1 || wordsCon.indexOf(';cartoon')!=-1){wordsCon=';cartoni;animati;';}
/*Cascate*/	if(wordsCon.indexOf(';cascata;')!=-1 || wordsCon.indexOf(';cascate;')!=-1){wordsCon=';cascate;';}
/*Castelli*/	if(wordsCon.indexOf(';castello;')!=-1 || wordsCon.indexOf(';castelli;')!=-1){wordsCon=';castelli;';}
/*Catherine*/	if(wordsCon.indexOf(';caterine;')!=-1){wordsCon=changeWord(wordsCon,'caterine','catherine');}
/*Cavalli*/	if(wordsCon.indexOf(';cavall')!=-1){wordsCon=';cavalli;';}
/*Chitarre*/	if(wordsCon.indexOf(';chitarr')!=-1){wordsCon=';chitarre;';}
/*Cibi,Frutta*/	if(	wordsCon.indexOf(';cibo;')!=-1 || wordsCon.indexOf(';cibi;')!=-1 || 
			wordsCon.indexOf(';frutta;')!=-1 || wordsCon.indexOf(';frutti;')!=-1 ||
			wordsCon.indexOf(';frutte;')!=-1 || wordsCon.indexOf(';vivande;')!=-1 ||
		  	wordsCon.indexOf(';aliment')!=-1){wordsCon=';cibi;e;frutta;';}
/*-Locandine*/	if(wordsCon.indexOf(';locandin')!=-1){wordsCon=';locandine;';}
/*Cinema e tv*/if(	wordsCon.indexOf(';cinema')!=-1 || wordsCon.indexOf(';tv;')!=-1 ||
			wordsCon.indexOf(';celebri')!=-1 || wordsCon.indexOf(';famos')!=-1 ||
			wordsCon.indexOf(';televis')!=-1 || wordsCon.indexOf(';programmi;')!=-1
			){wordsCon=';cinema;e;tv;';}
/*Cioccolata*/	if(	wordsCon.indexOf(';cioccolata;')!=-1 || wordsCon.indexOf(';cioccolato;')!=-1 ||
			wordsCon.indexOf(';cioccolatini;')!=-1){wordsCon='cioccolata';}
/*Coca Cola*/	if(wordsCon.indexOf(';coca')!=-1 && wordsCon.indexOf('cola;')!=-1){wordsCon=';coca;cola;';}
/*Colori*/	if(wordsCon.indexOf(';color')!=-1){wordsCon=';colori;';}
/*Compleanni*/	if(wordsCon.indexOf(';compleann')!=-1){wordsCon=';compleanni;';}
/*Computer*/	if(wordsCon.indexOf(';computer')!=-1 || wordsCon.indexOf(';compiuter')!=-1){wordsCon=';computer;';}
/*Conigli*/	if(wordsCon.indexOf(';conigli;')!=-1 || wordsCon.indexOf(';coniglio;')!=-1){wordsCon=';conigli;';}
/*Courtney*/	if(wordsCon.indexOf(';kourtney;')!=-1){wordsCon=changeWord(wordsCon,'kourtney','courtney');}
/*Crazy Race*/	if(wordsCon.indexOf(';race;')!=-1 || wordsCon.indexOf(';corse;')!=-1){wordsCon=';crazy;race;';}
/*Cuccioli*/	if(wordsCon.indexOf(';cucciol')!=-1){wordsCon=';cuccioli;';}
/*Cuori*/	if((wordsCon.indexOf(';cuore;')!=-1 && wordsCon.indexOf(';problemi;')==-1) || wordsCon.indexOf(';cuori')!=-1){wordsCon=';cuori;';}
/*Daitarn*/	if(wordsCon.indexOf(';daitarn;')!=-1 || wordsCon.indexOf(';daitan;')!=-1){wordsCon=';daitarn;';}
/*Danza*/	if(	wordsCon.indexOf(';ballerin')!=-1 || wordsCon.indexOf(';ballett')!=-1 ||
			wordsCon.indexOf(';ballo;')!=-1 || wordsCon.indexOf(';balli;')!=-1 ||
			wordsCon.indexOf(';danza')!=-1 || wordsCon.indexOf(';danze')!=-1 ||
			wordsCon.indexOf(';ballare;')!=-1){wordsCon=';danza;';}
/*Delfini*/	if(wordsCon.indexOf(';delfin')!=-1){wordsCon=';delfini;';}
/*Deserto*/	if(wordsCon.indexOf(';desert')!=-1){wordsCon=';deserto;';}
/*Diavolo*/	if(wordsCon.indexOf(';diavol')!=-1){wordsCon=';diavolo;';}
/*Diddl*/	if(	wordsCon.indexOf(';didle;')!=-1 || wordsCon.indexOf(';didl;')!=-1 ||
			wordsCon.indexOf(';didol;')!=-1 || wordsCon.indexOf(';dido;')!=-1 ||
			wordsCon.indexOf(';didll;')!=-1 || wordsCon.indexOf(';didoll;')!=-1 ||
			wordsCon.indexOf(';diddol;')!=-1 || wordsCon.indexOf(';diddel;')!=-1 ||
			wordsCon.indexOf(';diddl;')!=-1 || wordsCon.indexOf(';diddle')!=-1)
			{wordsCon=';diddl;';}
/*Diesel*/	if(wordsCon.indexOf(';disel;')!=-1){wordsCon=changeWord(wordsCon,'disel','diesel');}
/*Dylan*/	if(wordsCon.indexOf(';dilan;')!=-1){wordsCon=changeWord(wordsCon,'dilan','dylan');}
/*Donne*/	if(wordsCon.indexOf(';donna;')!=-1){wordsCon=changeWord(wordsCon,'donna','donne');}
/*Draghi*/	if(	wordsCon.indexOf(';drago;')!=-1 || wordsCon.indexOf(';draghi;')!=-1 ||
			wordsCon.indexOf(';dragone;')!=-1 || wordsCon.indexOf(';dragoni;')!=-1
			){wordsCon=';draghi;';}
/*Dragonball*/	if(	(wordsCon.indexOf(';dragon')!=-1 && wordsCon.indexOf('ball;')!=-1) || 
			wordsCon.indexOf(';goku;')!=-1 || wordsCon.indexOf(';dragonbal')!=-1
			){wordsCon=';dragonball;';}
/*E.Ramazzotti*/if(wordsCon.indexOf(';ramazzotti;')!=-1){wordsCon=';eros;ramazzotti;';}
/*Electra*/	if(wordsCon.indexOf(';elektra;')!=-1){wordsCon=';electra;';}
/*Epifania*/	if((wordsCon.indexOf(';befan')!=-1 || wordsCon.indexOf(';epifania')!=-1) && wordsCon.indexOf(';sex')==-1){wordsCon=';epifania;';}
/*Fantasy*/	if((wordsCon.indexOf(';fantasy;')!=-1 && wordsCon.indexOf(';final;')==-1) || wordsCon.indexOf(';fantasi;')!=-1 || wordsCon.indexOf(';fantasia;')!=-1){wordsCon=';fantasy;';}
/*Farfalle*/	if(wordsCon.indexOf(';farfall')!=-1){wordsCon=';farfalle;';}
/*Fari*/	if(wordsCon.indexOf(';fari;')!=-1 || wordsCon.indexOf(';faro;')!=-1){wordsCon=';fari;';}
/*Fast Furious*/if(	(wordsCon.indexOf(';furio')!=-1 || wordsCon.indexOf(';furiu')!=-1) &&
			wordsCon.indexOf(';fast;')!=-1){wordsCon=';2;fast;2;furious;';}
/*Ferrari*/	if(wordsCon.indexOf(';ferrari')!=-1){wordsCon=';ferrari;';}
/*Festa*/	if(wordsCon.indexOf(';feste;')!=-1 || wordsCon.indexOf(';festività;')!=-1 || wordsCon==';festa;'){wordsCon=';feste;';}
/*Festa donne*/	if(wordsCon.indexOf(';festa;')!=-1 && wordsCon.indexOf(';donne;')!=-1){wordsCon=';festa;delle;donne;';}
/*Fiori*/	if(wordsCon.indexOf(';fiori;')!=-1 || wordsCon.indexOf(';fiore;')!=-1){wordsCon=';fiori;';}
/*Fiumi*/	if(wordsCon.indexOf(';fiumi;')!=-1 || wordsCon.indexOf(';fiume;')!=-1){wordsCon=';fiumi;';}
/*Flintstones*/	if(wordsCon.indexOf(';flin')!=-1 && wordsCon.indexOf('ston')!=-1){wordsCon=';flintstones;';}
/*Fondali*/	if(	wordsCon.indexOf(';fondale;')!=-1 || wordsCon.indexOf(';fondali;')!=-1 ||
			((wordsCon.indexOf(';fondo;')!=-1 || wordsCon.indexOf(';fondi;')!=-1) && wordsCon.indexOf(';marin')!=-1)
			){wordsCon=';fondali;';}
/*FormulaUno*/	if(	wordsCon==';f;1;' || (wordsCon.indexOf(';formula;')!=-1 && 
			(wordsCon.indexOf(';uno;')!=-1 || wordsCon.indexOf(';1;')!=-1)) ||
			wordsCon.indexOf(';formula1;')!=-1){wordsCon=';formula;uno;';}
/*Frecce*/	if(wordsCon.indexOf(';freccie;')!=-1){wordsCon=changeWord(wordsCon,'freccie','frecce');}
/*Fulmini*/	if(	wordsCon.indexOf(';fulmin')!=-1 || wordsCon.indexOf(';saett')!=-1 ||
			wordsCon.indexOf(';lampi;')!=-1 || wordsCon.indexOf(';lampo;')!=-1
			){wordsCon='fulmini';}
/*Fumetti*/	if(wordsCon.indexOf(';fumett')!=-1 || wordsCon.indexOf(';comics;')!=-1){wordsCon=';fumetti;';}
/*Fumo*/	if(wordsCon.indexOf(';sigar')!=-1 || wordsCon.indexOf(';fumo;')!=-1 || wordsCon.indexOf(';fuma')!=-1){wordsCon=';fumo;';}
/*Fuochi Pir.*/	if(wordsCon.indexOf(';fuochi;')!=-1 || wordsCon.indexOf(';pirotec')!=-1){wordsCon=';fuochi;pirotecnici;';}
/*G.Clooney*/	if(wordsCon.indexOf(';clooney;')!=-1 || wordsCon.indexOf(';cloney;')!=-1){wordsCon=';george;clooney;';}
/*Garfield*/	if(wordsCon.indexOf(';garfield;')!=-1){wordsCon=';garfield;';}
/*Gassman*/	if(wordsCon.indexOf(';gasman;')!=-1){wordsCon=changeWord(wordsCon,'gasman','gassman');}
/*-Occhi*/	if(wordsCon.indexOf(';occhio;')!=-1 || (wordsCon.indexOf(';occhi;')!=-1 && wordsCon.indexOf(';gatto;')==-1)){wordsCon=';occhi;';}
/*Gatti*/	if( 	(wordsCon.indexOf(';gatto;')!=-1 && wordsCon.indexOf(';donna;')==-1 && 
			wordsCon.indexOf(';silvestro;')==-1 && wordsCon.indexOf(';stivali;')==-1 &&
			wordsCon.indexOf(';occhi;')==-1) || wordsCon.indexOf(';gatti;')!=-1 ||
			wordsCon.indexOf(';mici')!=-1 || wordsCon.indexOf(';gattini;')!=-1){wordsCon=';gatti;';}
/*Gere*/	if(wordsCon.indexOf(';geere;')!=-1){wordsCon=changeWord(wordsCon,'geere','gere');}
/*Girasoli*/	if(wordsCon.indexOf(';girasol')!=-1){wordsCon=';girasoli;';}
/*Grafica 3D*/	if(	(wordsCon.indexOf(';3;')!=-1 && wordsCon.indexOf(';d;')!=-1) || 
			wordsCon.indexOf(';grafic')!=-1 || wordsCon.indexOf(';3d;')!=-1 || 
			wordsCon.indexOf('dimension')!=-1 || wordsCon.indexOf(';virtual')!=-1
		  ){wordsCon=';grafica;3d;';}
/*Guerrieri*/	if(wordsCon.indexOf(';guerrier')!=-1){wordsCon=';guerrieri;';}
/*Halle Berry*/	if(	(wordsCon.indexOf(';berry;')!=-1 || wordsCon.indexOf(';barry;')!=-1) &&
			(wordsCon.indexOf(';halle;')!=-1 || wordsCon.indexOf(';hall;')!=-1 || 
			wordsCon.indexOf(';halley;')!=-1 || wordsCon.indexOf(';ally;')!=-1 || 
			wordsCon.indexOf(';ahlley;')!=-1 || wordsCon.indexOf(';alley;')!=-1)
		 	){wordsCon=';halle;berry;';}
/*Halloween*/	if(	wordsCon.indexOf(';halloween;')!=-1 || wordsCon.indexOf(';hallowen;')!=-1 || 
			wordsCon.indexOf(';hallowin;')!=-1){wordsCon=';halloween;';}
/*Happy Days*/	if(	(wordsCon.indexOf(';happy;')!=-1 && wordsCon.indexOf(';day')!=-1) ||
			wordsCon.indexOf(';fonzie;')!=-1){wordsCon=';happy;days;';}
/*Hello*/	if(wordsCon.indexOf(';hallo;')!=-1){wordsCon=changeWord(wordsCon,'hallo','hello');}
/*Hitman*/	if(wordsCon.indexOf(';hitman;')!=-1){wordsCon=';hitman;';}
/*Horror*/	if(wordsCon.indexOf('orror')!=-1 || wordsCon.indexOf(';terror')!=-1){wordsCon=';horror;';}
/*Illusioni*/	if(wordsCon.indexOf(';illusion')!=-1){wordsCon=';illusioni;';}
/*Inter*/	if(wordsCon.indexOf(';inter;')!=-1){wordsCon=';inter;';}
/*Inverno*/	if(wordsCon.indexOf(';invern')!=-1 || wordsCon.indexOf(';freddo;')!=-1){wordsCon=';inverno;';}
/*Italia*/	if(wordsCon.indexOf(';italia')!=-1 && wordsCon.indexOf(';italiani;')==-1 && wordsCon.indexOf(';italiane;')==-1 && wordsCon.indexOf(';italiano;')==-1){wordsCon=';italia;';}
/*-Johnny*/	if(wordsCon.indexOf(';jhonny;')!=-1){wordsCon=changeWord(wordsCon,'jhonny','johnny');}
/*-Johnny*/	if(wordsCon.indexOf(';jonny;')!=-1){wordsCon=changeWord(wordsCon,'jonny','johnny');}
/*J.Depp*/	if(wordsCon.indexOf(';deep;')!=-1 && wordsCon.indexOf(';johnny;')!=-1){wordsCon=';johnny;depp;';}
/*Jolie*/	if(wordsCon.indexOf(';joile;')!=-1){wordsCon=changeWord(wordsCon,'joile','jolie');}
/*Juventus*/	if(wordsCon.indexOf(';juve')!=-1){wordsCon=';juventus;';}
/*Ken*/		if(	(wordsCon.indexOf(';guerrier')!=-1 || wordsCon.indexOf(';shiro;')!=-1) && 
			wordsCon.indexOf(';ken;')!=-1){wordsCon=';ken;shiro;';}
/*Kitty*/	if(wordsCon.indexOf(';kitti;')!=-1){wordsCon=changeWord(wordsCon,'kitti','kitty');}
/*Kledi*/	if(wordsCon.indexOf(';cledi;')!=-1 || wordsCon.indexOf(';kledi;')!=-1){wordsCon=';kledi;';}
/*Lavoro*/	if(wordsCon.indexOf(';lavor')!=-1){wordsCon=';lavoro;';}
/*Leoni*/	if(	wordsCon.indexOf(';leoni;')!=-1 || (wordsCon.indexOf(';leone;')!=-1 && 
			wordsCon.indexOf(';sunny;')==-1 && wordsCon.indexOf(';re;')==-1)
			){wordsCon=';leoni;';}
/*Letizia*/	if(wordsCon.indexOf(';laetizia;')!=-1){wordsCon=changeWord(wordsCon,'laetizia','letizia');}
/*Ligabue*/	if(wordsCon.indexOf(';liga;')!=-1 || wordsCon.indexOf(';ligabue;')!=-1){wordsCon=';luciano;ligabue;';}
/*Looney Tunes*/if(	wordsCon.indexOf(';looneey;')!=-1 || wordsCon.indexOf(';loney;')!=-1 || 
			wordsCon.indexOf(';loonney;')!=-1 || wordsCon.indexOf(';looney;')!=-1
			){wordsCon=';looney;tunes;';}
/*Luoghi Citta*/if(	wordsCon.indexOf(';città;')!=-1 || wordsCon.indexOf(';citta;')!=-1 || 
			wordsCon.indexOf(';viaggi')!=-1 || wordsCon.indexOf(';luoghi;')!=-1 || 
			wordsCon.indexOf(';posti;')!=-1){wordsCon=';luoghi;e;citta;';}	
/*-Uomo Lupo*/	if(	(wordsCon.indexOf(';lupi;')!=-1 || wordsCon.indexOf(';lupo;')!=-1) && 
			(wordsCon.indexOf(';mannar')!=-1 || wordsCon.indexOf(';uomo;')!=-1)
			){wordsCon=';uomo;lupo;';}
/*Lupi*/	if(	wordsCon.indexOf(';lupi;')!=-1 || (wordsCon.indexOf(';lupo;')!=-1 && 
			wordsCon.indexOf(';uomo;')==-1 && wordsCon.indexOf(';alberto;')==-1)
			){wordsCon=';lupi;';}
/*Lupin*/	if(wordsCon.indexOf(';lupin;')!=-1 || wordsCon.indexOf(';lupen;')!=-1){wordsCon=';lupin;';}
/*M.Arcuri*/	if(wordsCon.indexOf(';arcuri;')!=-1){wordsCon=';manuela;arcuri;';}
/*M. Hunziker*/	if(wordsCon.indexOf(';mi')!=-1 && wordsCon.indexOf('unz')!=-1 && wordsCon.indexOf('er')!=-1){wordsCon=';michelle;hunziker;';}
/*Maled. Luna*/	if(	(wordsCon.indexOf(';prima;')!=-1 || wordsCon.indexOf(';luna;')!=-1) &&
			wordsCon.indexOf(';maledizione;')!=-1){wordsCon=';maledizione;della;prima;luna;';}
/*Mamma*/	if(wordsCon.indexOf(';mamma;')!=-1 || wordsCon.indexOf(';mamme;')!=-1){wordsCon=';mamma;';}
/*Manga*/	if(	wordsCon.indexOf(';manga;')!=-1 || wordsCon.indexOf(';anime;')!=-1 || 
			wordsCon.indexOf(';hentai;')!=-1 || wordsCon.indexOf(';hentay;')!=-1
			){wordsCon=';manga;';}
/*Mappa*/	if(wordsCon.indexOf(';mappa;')!=-1 && wordsCon.indexOf(';sito;')==-1){wordsCon=';mappe;';}
/*Mare*/	if(wordsCon.indexOf(';mare;')!=-1 || wordsCon.indexOf(';tropic')!=-1 || wordsCon.indexOf(';caraib')!=-1){wordsCon=';mare;';}
/*Marijuana*/	if(	(wordsCon.indexOf(';mar')!=-1 && wordsCon.indexOf('uana;')!=-1) ||
 			wordsCon.indexOf(';spinel')!=-1 || wordsCon==';canne;' || wordsCon==';canna;' || wordsCon==';cannabis;'
 			){wordsCon=';marijuana;';}
/*Matrix*/	else if(wordsCon.indexOf(';matrix;')!=-1){wordsCon=';matrix;';}
/*Milan*/	if(wordsCon.indexOf(';milan;')!=-1){wordsCon=';milan;';}
/*Militari*/	if(	wordsCon.indexOf(';militar')!=-1 || wordsCon.indexOf(';combattim')!=-1 ||
			wordsCon.indexOf(';eserciti;')!=-1 || wordsCon.indexOf(';esercito;')!=-1 ||
			wordsCon.indexOf(';battagli')!=-1 || wordsCon.indexOf(';soldati;')!=-1 ||
			(wordsCon.indexOf(';guerr')!=-1 && wordsCon.indexOf(';stellar')==-1 && wordsCon.indexOf(';guerrier')==-1)
			){wordsCon=';militari;';}
/*Mimose*/	if(wordsCon.indexOf(';mimos')!=-1){wordsCon=';mimose;';}
/*Misterio*/	if(wordsCon.indexOf(';misteryo;')!=-1 || wordsCon.indexOf(';mysterio;')!=-1){wordsCon=';misterio;';}
/*Ragazze*/	if(	(wordsCon.indexOf(';donne;')!=-1 && wordsCon.indexOf(';festa;')==-1) || 
			wordsCon.indexOf(';modelle;')!=-1 || wordsCon.indexOf(';modella;')!=-1 ||
			wordsCon.indexOf(';ragazze;')!=-1 || wordsCon.indexOf(';ragazza;')!=-1 ||
			wordsCon.indexOf(';fiche;')!=-1 || wordsCon.indexOf(';fica;')!=-1 ||
			wordsCon.indexOf(';fighe;')!=-1 || wordsCon.indexOf(';figa;')!=-1 ||
			wordsCon.indexOf(';tope;')!=-1 || wordsCon.indexOf(';topa;')!=-1 ||
			wordsCon.indexOf(';nude;')!=-1 || wordsCon.indexOf(';nuda;')!=-1 ||
			(wordsCon.indexOf(';show')!=-1 && wordsCon.indexOf('girl')!=-1) ||
			wordsCon.indexOf(';playboy;')!=-1 || wordsCon.indexOf(';topless;')!=-1 ||
			wordsCon.indexOf(';vagin')!=-1 || wordsCon.indexOf(';fregn')!=-1 ||
			wordsCon==';girl;' || wordsCon==';girls;'){wordsCon=';ragazze;';}
/*Ragazzi*/	if(	wordsCon.indexOf(';ragazzi;')!=-1 || wordsCon.indexOf(';ragazzo;')!=-1 || 
			wordsCon.indexOf(';modelli;')!=-1 || wordsCon.indexOf(';modello;')!=-1 || 
			wordsCon.indexOf(';omosessual')!=-1 || wordsCon.indexOf(';gay;')!=-1 || 
			wordsCon.indexOf(';maschi;')!=-1 || wordsCon.indexOf(';maschio;')!=-1 || 
			wordsCon.indexOf(';cazzo;')!=-1 || wordsCon.indexOf(';cazzi;')!=-1 || 
			wordsCon.indexOf(';pisello;')!=-1 || wordsCon.indexOf(';piselli;')!=-1 || 
			wordsCon.indexOf(';pene;')!=-1 || wordsCon.indexOf(';minchia;')!=-1 || 
			wordsCon.indexOf(';uomini;')!=-1 || wordsCon.indexOf(';nudi;')!=-1 ||
			(wordsCon.indexOf(';nudo;')!=-1 && wordsCon.indexOf(';walter;')==-1) ||
			(wordsCon.indexOf(';uomo')!=-1 && wordsCon.indexOf('ragno;')==-1 && 
			wordsCon.indexOf(';tigre;')==-1 && wordsCon.indexOf(';lupo;')==-1)
			){wordsCon=';ragazzi;';}
/*Mondiali*/	if(wordsCon.indexOf(';mondial')!=-1){wordsCon=';mondiali;';}
/*Montagna*/	if(wordsCon.indexOf(';montagn')!=-1){wordsCon=';montagna;';}
/*Moto*/	if(wordsCon.indexOf(';moto')!=-1 && wordsCon.indexOf(';motori;')==-1){wordsCon=';moto;';}
/*Motori*/	if(wordsCon.indexOf(';motori;')!=-1 && wordsCon.indexOf(';ruggenti;')==-1){wordsCon=';motori;';}
/*Mucche*/	if(wordsCon.indexOf(';mucca;')!=-1){wordsCon=';mucche;';}
/*-Strumenti*/	if(wordsCon.indexOf(';strumenti;')!=-1 || wordsCon.indexOf(';strumento;')!=-1){wordsCon=';strumenti;';}
/*Musica*/	if(wordsCon.indexOf(';cantant')!=-1 || wordsCon.indexOf(';cantautor')!=-1 || wordsCon.indexOf(';music')!=-1){wordsCon=';musica;';}
/*N.Campbell*/	if(wordsCon.indexOf(';naomi;')!=-1 && wordsCon.indexOf(';cam')!=-1 && wordsCon.indexOf('el')!=-1){wordsCon=';naomi;campbell;';}
/*Napoli*/	if(wordsCon.indexOf(';napoli;')!=-1){wordsCon=';napoli;';}
/*Natale*/	if(	wordsCon.indexOf(';christmas;')!=-1 || (wordsCon.indexOf(';natal')!=-1 &&
			wordsCon.indexOf(';imbruglia;')==-1 && wordsCon.indexOf(';estrada;')==-1 && 
			wordsCon.indexOf(';alber')==-1 &&  wordsCon.indexOf(';babb')==-1 && 
			wordsCon.indexOf(';200')==-1 && wordsCon.indexOf(';sexy;')==-1)
			){wordsCon=';natale;';}
/*Natura*/	if(wordsCon.indexOf(';natura;')!=-1 || wordsCon.indexOf(';piante;')!=-1){wordsCon=';natura;';}
/*Navi*/	if(wordsCon.indexOf(';nave;')!=-1 || wordsCon.indexOf(';navi;')!=-1){wordsCon=';navi;';}
/*Nere*/	if(wordsCon.indexOf(';negre;')!=-1){wordsCon=';nere;';}
/*Neve*/	if(wordsCon.indexOf(';snow;')!=-1){wordsCon=';neve;';}
/*Nomi*/	if(wordsCon.indexOf(';nomi')!=-1 || wordsCon.indexOf(';nome')!=-1 ||
		   wordsCon.indexOf(';onomastic')!=-1 || wordsCon==';femminili;' )
			{
			if(wordsCon.indexOf(';femmi')!=-1 || wordsCon.indexOf(';donn')!=-1){wordsCon=';nomi;femminili';}
			else{wordsCon=';nomi;';}
			}
/*P.Anderson*/	if(wordsCon.indexOf(';pamela;')!=-1 && wordsCon.indexOf(';anderson;')!=-1){wordsCon=';pamela;anderson;';}
/*Palloni*/	if(	wordsCon.indexOf(';pallone;')!=-1 || wordsCon.indexOf(';palla;')!=-1 ||
			wordsCon.indexOf(';palloni;')!=-1 || wordsCon.indexOf(';palle;')!=-1
			){wordsCon=';palloni;';}
/*Panorami*/	if(	wordsCon.indexOf(';panoram')!=-1 || wordsCon.indexOf(';paesaggi')!=-1 || 
			wordsCon.indexOf(';vedute;')!=-1 || wordsCon.indexOf(';veduta;')!=-1
			){wordsCon=';panorami;';}
/*Pantere*/	if(wordsCon.indexOf(';pantera;')!=-1 && wordsCon.indexOf(';rosa;')==-1){wordsCon=';pantere;';}
/*Pasqua*/	if(wordsCon.indexOf(';pasqua')!=-1 || wordsCon.indexOf(';pasquetta;')!=-1){wordsCon=';pasqua;';}
/*Pesca*/	if(wordsCon.indexOf(';pesca')!=-1 || wordsCon.indexOf(';pesche')!=-1){wordsCon=';pesca;';}
/*Pesci*/	if(	(wordsCon.indexOf(';pesce;')!=-1 && wordsCon.indexOf(';aprile;')==-1) ||
			wordsCon.indexOf(';pesci;')!=-1){wordsCon=';pesci;';}
/*Pianoforti*/	if(wordsCon.indexOf(';pianoforti;')!=-1 || wordsCon.indexOf(';pianoforte;')!=-1){wordsCon=';pianoforti;';}
/*Pirati*/	if(wordsCon.indexOf(';pirat')!=-1){wordsCon=';pirati;';}
/*Pin Up*/	if(	(wordsCon.indexOf(';pin;')!=-1 && wordsCon.indexOf(';up;')!=-1) ||
			wordsCon.indexOf(';pinup;')!=-1 || wordsCon.indexOf(';disegn')!=-1
			){wordsCon=';pin;up;e;disegni;sexy;';}
/*Pornostars*/	if(	wordsCon.indexOf(';porn')!=-1 || wordsCon.indexOf(';hardcore;')!=-1 ||
			wordsCon.indexOf(';erotic')!=-1 || wordsCon.indexOf('sessual')!=-1 || 
			wordsCon.indexOf(';troie;')!=-1 || wordsCon.indexOf(';troia')!=-1 ||
			wordsCon.indexOf(';zoccola;')!=-1 || wordsCon.indexOf(';zoccole;')!=-1 ||
			wordsCon.indexOf(';puttan')!=-1 || wordsCon.indexOf(';anal')!=-1 ||
			wordsCon.indexOf(';erotism')!=-1 || wordsCon.indexOf(';sesso;')!=-1 ||
			wordsCon.indexOf(';bocchin')!=-1 || wordsCon.indexOf(';pompin')!=-1 ||
			(wordsCon.indexOf(';eros;')!=-1 && wordsCon.indexOf(';ramazzotti;')==-1) ||
			(wordsCon.indexOf(';sex;')!=-1 && wordsCon.indexOf(';pistol;')==-1) ||
			wordsCon.indexOf(';hard;')!=-1 || wordsCon==';trans;'){wordsCon=';pornostars;';}
/*Posteriore*/	if(	wordsCon.indexOf(';culi;')!=-1 || wordsCon.indexOf(';sederi;')!=-1 || 
			wordsCon.indexOf(';culo;')!=-1 || wordsCon.indexOf(';sedere;')!=-1 || 
			wordsCon.indexOf(';chiappe;')!=-1){wordsCon=';posteriore;';}
/*Presepi*/	if(wordsCon.indexOf(';presep')!=-1){wordsCon=';presepi;';}
/*Pubblicità*/	if(	wordsCon.indexOf(';pubblicit')!=-1 || wordsCon.indexOf(';publicit')!=-1 ||
			wordsCon.indexOf(';marca;')!=-1 || wordsCon.indexOf(';marche;')!=-1 || wordsCon.indexOf(';spot;')!=-1
			){wordsCon=';pubblicita;';}
/*R.Mangosi*/	if(wordsCon.indexOf(';mangosi;')!=-1){wordsCon=';roberto;mangosi;';}
/*R.Stones*/	if(wordsCon.indexOf(';stones;')!=-1){wordsCon=';the;rolling;stones;';}
/*Raoul*/	if(wordsCon.indexOf(';raul;')!=-1){wordsCon=changeWord(wordsCon,'raul','raoul');}
		else if(wordsCon.indexOf(';roul;')!=-1){wordsCon=changeWord(wordsCon,'roul','raoul');}
		else if(wordsCon.indexOf(';rauol;')!=-1){wordsCon=changeWord(wordsCon,'rauol','raoul');}
/*Raoul Bova*/	if((wordsCon.indexOf(';raoul;')!=-1 && wordsCon.indexOf(';bova;')!=-1) || wordsCon==';bova;'){wordsCon=';raoul;bova;';}
/*Religiosi*/	if(	wordsCon.indexOf(';cristo;')!=-1 || wordsCon.indexOf(';cristiani;')!=-1 ||
			wordsCon.indexOf(';religio')!=-1 || wordsCon.indexOf(';cattolic')!=-1 ||
			wordsCon.indexOf(';gesù;')!=-1 || wordsCon.indexOf(';gesu;')!=-1 ||
			wordsCon.indexOf(';chies')!=-1){wordsCon=';religiosi;';}
/*Resid. Evil*/	if(wordsCon.indexOf(';resident')!=-1 && wordsCon.indexOf('evil;')!=-1){wordsCon=';resident;evil;';}
/*Roma*/	if(wordsCon.indexOf(';roma;')!=-1){wordsCon=';roma;';}
/*Rose		if(	wordsCon.indexOf(';rose;')!=-1 || (wordsCon.indexOf(';rosa;')!=-1 && wordsCon.indexOf(';venti;')==-1 && wordsCon.indexOf(';pantera;')==-1)){wordsCon=';rose;';}
/*S.Dali*/	if(wordsCon.indexOf(';dalì;')!=-1 || wordsCon.indexOf(';dali;')!=-1){wordsCon=';salvador;dali;';}
/*S.Valentino*/	if(wordsCon.indexOf(';valentino;')!=-1 && (wordsCon.indexOf(';s;')!=-1 || wordsCon.indexOf(';san;')!=-1)){wordsCon=';san;valentino;';}
/*Saffici*/	if(wordsCon.indexOf(';saffic')!=-1 || wordsCon.indexOf(';lesbo;')!=-1 || wordsCon.indexOf(';lesbi')!=-1){wordsCon=';saffici;';}
/*Scorpioni*/	if(wordsCon.indexOf(';scorpion')!=-1){wordsCon=';scorpioni;';}
/*Screensaver*/	if(	(wordsCon.indexOf(';salva')!=-1 && wordsCon.indexOf('scherm')!=-1) ||
			((wordsCon.indexOf('sever;')!=-1 || wordsCon.indexOf('saver;')!=-1) &&	
			  wordsCon.indexOf(';screen')!=-1)){wordsCon=';screensaver;';}
/*Segnali*/	if(wordsCon.indexOf(';segnal')!=-1 || wordsCon.indexOf(';cartelli;')!=-1){wordsCon=';segnali;';}
/*Schumacher*/	if(wordsCon.indexOf(';shumacher;')!=-1 || wordsCon.indexOf(';schumacher;')!=-1){wordsCon=';schumacher;';}
/*Sig. Anelli*/	if(	(wordsCon.indexOf(';signore')!=-1 && wordsCon.indexOf(';anelli;')!=-1) ||
			wordsCon.indexOf('lord;of;ring')!=-1 || wordsCon.indexOf(';tolkien;')!=-1
		  	){wordsCon=';il;signore;degli;anelli;';}	
/*Silvia*/	if(wordsCon.indexOf(';sylvia;')!=-1){wordsCon=changeWord(wordsCon,'sylvia','silvia');}
/*Simpson*/	if(wordsCon==';simson;'){wordsCon=';simpsons;';}
		if(wordsCon.indexOf(';simpson')!=-1 && wordsCon.indexOf(';suzi;')==-1){wordsCon=';the;simpsons;';}
/*Smallville*/	if(wordsCon.indexOf(';smalville;')!=-1){wordsCon=';smallville;';}
/*Sonno*/	if(wordsCon.indexOf(';sonno;')!=-1){wordsCon=';dormire;';}
/*Spazio*/	if(wordsCon.indexOf(';spazio;')!=-1){wordsCon=';spazio;';}		
/*Spiagge*/	if(wordsCon.indexOf(';spiagg')!=-1){wordsCon=';spiagge;';}
/*Spiderman*/	if(	(wordsCon.indexOf(';spider')!=-1 && wordsCon.indexOf('man;')!=-1) || 
			(wordsCon.indexOf(';uomo')!=-1 && wordsCon.indexOf('ragno;')!=-1)
			){wordsCon=';spiderman;';}
/*Sport*/	if(wordsCon.indexOf(';sport')!=-1){wordsCon=';sport;';}
/*Sposi*/	if(	wordsCon.indexOf(';matrimon')!=-1 || wordsCon.indexOf(';nozze;')!=-1 || 
			wordsCon.indexOf(';sposo;')!=-1 || wordsCon.indexOf(';sposi;')!=-1 || 
			wordsCon.indexOf(';sposa;')!=-1 || wordsCon.indexOf(';spose;')!=-1
			){wordsCon=';sposi;';}
/*Squali*/	if(wordsCon.indexOf(';squalo;')!=-1 || wordsCon.indexOf(';squali;')!=-1){wordsCon=';squali;';}
/*Supereroi*/	if(	(wordsCon.indexOf(';super;')!=-1 && wordsCon.indexOf(';eroi')!=-1) ||
			wordsCon.indexOf(';supereroi')!=-1){wordsCon=';supereroi;';}
/*Superman*/	if(	(wordsCon.indexOf(';super;')!=-1 && wordsCon.indexOf(';man;')!=-1) || 
			wordsCon.indexOf(';superman;')!=-1 || wordsCon.indexOf(';supermen;')!=-1
			){wordsCon=';superman;';}
/*Stadi*/	if(wordsCon.indexOf(';stadio;')!=-1 || wordsCon.indexOf(';stadi;')!=-1){wordsCon=';stadi;';}
/*Star Wars*/	if(	(wordsCon.indexOf(';star')!=-1 && wordsCon.indexOf(';war')!=-1) ||
			(wordsCon.indexOf(';guerre;')!=-1 && wordsCon.indexOf(';stellari;')!=-1)
		  ){wordsCon=';star;wars;';}
/*Streghe*/	if(wordsCon.indexOf(';strega;')!=-1){wordsCon=changeWord(wordsCon,'strega','streghe');}
/*Struzzi*/	if(wordsCon.indexOf(';struzzi;')!=-1 || wordsCon.indexOf(';struzzo;')!=-1){wordsCon=';struzzi;';}
/*Tartarughe*/	if(wordsCon.indexOf(';tartaruga;')!=-1 || (wordsCon.indexOf(';tartarughe;')!=-1 && wordsCon.indexOf(';ninja;')==-1)){wordsCon=';tartarughe;';}
/*Telefilm*/	if(wordsCon.indexOf(';telefilms;')!=-1){wordsCon=changeWord(wordsCon,'telefilms','telefilm');}
/*Telefoni*/	if(wordsCon.indexOf(';cellular')!=-1 || wordsCon.indexOf(';telefon')!=-1){wordsCon=';sfondi cellulari;';}
/*Tette*/	if(	wordsCon.indexOf(';seno;')!=-1 || wordsCon.indexOf(';seni;')!=-1 ||
			wordsCon.indexOf(';tetta;')!=-1 || wordsCon.indexOf(';tetta;')!=-1 ||
			wordsCon.indexOf(';bocce;')!=-1 || wordsCon.indexOf(';zinne;')!=-1 ||
			wordsCon.indexOf(';sise;')!=-1 || wordsCon.indexOf(';tetton')!=-1){wordsCon=';tette;';}
/*Tex Willer*/	if(wordsCon==';tex;'){wordsCon=';tex;willer;';}
/*Tifo*/	if(wordsCon.indexOf(';tifo;')!=-1 || wordsCon.indexOf(';tifos')!=-1){wordsCon=';tifo;';}
/*Tigri*/	if((wordsCon.indexOf(';tigre;')!=-1 && wordsCon.indexOf(';uomo;')==-1) || wordsCon.indexOf(';tigri;')!=-1){wordsCon=';tigri;';}
/*Titti*/	if(wordsCon.indexOf(';titty;')!=-1){wordsCon=changeWord(wordsCon,'titty','titti');}
/*Top Model*/	if(wordsCon.indexOf(';top;')!=-1 && wordsCon.indexOf(';model;')!=-1){wordsCon=';top;model;';}
/*Tori*/	if(wordsCon.indexOf(';toro;')!=-1 || wordsCon.indexOf(';tori;')!=-1){wordsCon=';tori;';}
/*Totò*/	if(wordsCon.indexOf(';totò;')!=-1 || (wordsCon.indexOf(';de;')!=-1 && wordsCon.indexOf(';curtis;')!=-1)){wordsCon=';toto;';}
/*Tramonti*/	if(wordsCon.indexOf(';tramont')!=-1){wordsCon=';tramonti;';}
/*U 2*/		if(	(wordsCon.indexOf(';2;')!=-1 || wordsCon.indexOf(';due;')!=-1 || 
			wordsCon.indexOf(';two;')!=-1) && wordsCon.indexOf(';u;')!=-1
			){wordsCon=';u;2;';}
/*Umorismo*/	if(	wordsCon.indexOf(';umoris')!=-1 || wordsCon.indexOf(';humor')!=-1 ||
			wordsCon.indexOf(';comico;')!=-1 || wordsCon.indexOf(';comici;')!=-1 || 
			wordsCon.indexOf(';buffi;')!=-1 || wordsCon.indexOf(';buffe;')!=-1 || 
			wordsCon.indexOf(';buffo;')!=-1 || wordsCon.indexOf(';vignett')!=-1 || 
			wordsCon.indexOf(';divertent')!=-1 || wordsCon.indexOf(';curiosi')!=-1 || 
			wordsCon.indexOf(';simpatic')!=-1 || wordsCon.indexOf(';strani;')!=-1 || 
			wordsCon.indexOf(';scherz')!=-1 || wordsCon.indexOf(';comiche')!=-1 || 
			wordsCon==';gag;'){wordsCon=';umorismo;';}
/*Utenti*/	if(wordsCon.indexOf(';utenti;')!=-1 || wordsCon.indexOf(';utente;')!=-1){wordsCon=';utenti;';}
/*Val.Rossi*/	if(wordsCon.indexOf(';vale')!=-1 && wordsCon.indexOf(';rossi;')!=-1){wordsCon=';valentino;rossi;';}
/*Vari*/	if(wordsCon.indexOf(';vari;')!=-1 || wordsCon==';tutti;'){wordsCon=';vari;';}
/*Vasco Rossi*/	if(wordsCon.indexOf(';vasco;')!=-1 || wordsCon.indexOf(';blasco;')!=-1){wordsCon=';vasco;rossi;';}
/*Videogiochi*/	if(	wordsCon.indexOf('gioco;')!=-1  || wordsCon.indexOf('giochi;')!=-1 || 
			wordsCon.indexOf('game')!=-1){wordsCon=';videogiochi;';}
/*Volti*/	if(	wordsCon.indexOf(';volti;')!=-1 || wordsCon.indexOf(';volto;')!=-1 ||
			wordsCon.indexOf(';visi;')!=-1 || wordsCon.indexOf(';viso;')!=-1 ||
			wordsCon.indexOf(';facce;')!=-1 || wordsCon.indexOf(';faccia;')!=-1 ||
			wordsCon.indexOf(';faccie;')!=-1){wordsCon=';volti;';}	
/*Walt Disney*/	if(wordsCon.indexOf(';disney')!=-1 || wordsCon.indexOf(';disnei')!=-1){wordsCon=';walt;disney;';}
/*War Craft*/	if(wordsCon.indexOf(';war;')!=-1 && wordsCon.indexOf(';craft;')!=-1){wordsCon=';war;craft;';}
/*Wile Coyote*/	if(wordsCon.indexOf(';wil')!=-1 && wordsCon.indexOf(';coyote;')!=-1){wordsCon=';wile;coyote;';}
/*Windows*/	if(wordsCon.indexOf(';window')!=-1){wordsCon=';windows;';}
/*-Pooh*/	if(wordsCon.indexOf(';poo;')!=-1){wordsCon=changeWord(wordsCon,'poo','pooh');}
		if(wordsCon.indexOf(';phoo;')!=-1){wordsCon=changeWord(wordsCon,'phoo','pooh');}
/*Winnie Pooh*/	if(	wordsCon.indexOf(';winnie;')!=-1 || wordsCon.indexOf(';winie;')!=-1 ||
			wordsCon.indexOf(';winni;')!=-1 || wordsCon.indexOf(';winny;')!=-1 ||
			wordsCon.indexOf(';winne;')!=-1 || wordsCon.indexOf(';whinnie;')!=-1 ||
			wordsCon.indexOf(';winney;')!=-1){wordsCon=';winnie;pooh;';}
/*Wrestling*/	if(	wordsCon.indexOf(';wwe;')!=-1 || wordsCon.indexOf(';smackdown;')!=-1 ||
			wordsCon.indexOf(';raw;')!=-1 || wordsCon.indexOf(';wrestling;')!=-1 ||
			(wordsCon.indexOf(';smack;')!=-1 && wordsCon.indexOf(';down;')!=-1)
			){wordsCon=';wrestling;';}
/*X Men*/	if(wordsCon.indexOf(';x')!=-1 && (wordsCon.indexOf('man;')!=-1 || wordsCon.indexOf('men;')!=-1)){wordsCon=';x;men;';}
/*Yu Gi Oh*/	if(	wordsCon.indexOf(';yugioh;')!=-1 || (wordsCon.indexOf(';yu')!=-1 &&
			(wordsCon.indexOf('oh;')!=-1 || wordsCon.indexOf('ho;')!=-1) &&
			(wordsCon.indexOf(';gi;')!=-1 || wordsCon.indexOf('ghi;')!=-1))
			){wordsCon=';yu;gi;oh;';}
/*-Cav.Zod.*/	if(wordsCon.indexOf(';cavalier')!=-1 && wordsCon.indexOf(';zodiac')!=-1){wordsCon=';cavalieri;zodiaco;';}
/*Zodiaco*/	if(	wordsCon.indexOf(';oroscop')!=-1 || wordsCon.indexOf(';astrolog')!=-1 ||
			(wordsCon.indexOf(';zodiac')!=-1 && wordsCon.indexOf(';cavalier')==-1)
			){wordsCon=';zodiaco;';}
/*-- Per Redirect particolari--*/
/*Top 20*/	if(	(wordsCon.indexOf(';top;')!=-1 && wordsCon.indexOf(';20;')!=-1) || 
			(wordsCon.indexOf(';più;')!=-1 && wordsCon.indexOf(';scaricati;')!=-1) ||
			wordsCon==';top;'){wordsCon=';top;20;';}
/*Mappa*/	if(	(wordsCon.indexOf(';mappa;')!=-1 && wordsCon.indexOf(';sito;')!=-1) || 
			wordsCon.indexOf(';categorie;')!=-1 || wordsCon.indexOf(';categoria;')!=-1
			){wordsCon=';mappa;';}
/*Novità*/	if(	wordsCon.indexOf(';novità;')!=-1 || wordsCon==';ultimi;' || 
			wordsCon==';new;' || wordsCon==';nuovi;'){wordsCon=';novità;';}
/*Web*/		if(	wordsCon.indexOf(';siti;')!=-1 || wordsCon.indexOf(';web;')!=-1 || 
			wordsCon.indexOf(';texture;')!=-1){wordsCon=';web;';}
/*Help*/	if(wordsCon==';aiuto;' || wordsCon==';help;'){wordsCon=';help;';}
//----------------------------

	var arrApp=wordsCon.split(';');
	var txtApp=''
	for(var i=0; i<arrApp.length; i++)
		{
		if(arrApp[i]!=''){txtApp+=arrApp[i]+' ';}	
		}
	var ritTesto=trim(txtApp);
	return ritTesto;	
	}

function changeWord(wordsCon,txt,txtNew)
	{
	var wordsArr=(wordsCon.substring(1,wordsCon.length-1)).split(';');
	for(var i=0; i<wordsArr.length; i++)
		{
		if(wordsArr[i].indexOf(txt)!=-1){wordsArr[i]=txtNew;}
		}	
	wordsCon=';'+wordsArr.join(';')+';';
	return wordsCon;
	}

function caratteri(testo) // CONTROLLO CARATTERI
	{
	var caratteri=caricaCaratteri();
	var carattere='';
	var rit=true;
	for(var i=0; i<caratteri.length; i++)
		{
		if(testo.indexOf(caratteri[i])!=-1)
			{
			carattere=caratteri[i];
			rit=false;
			}
		}
	if(!rit){alert('L\'utilizzo del carattere '+carattere+' non è consentito.'); }
	return rit;
	}

function superflue(testo,wordsCon) //-- PAROLE SUPERFLUE
	{
	var superflue=caricaSuperflue();
	var superflua='';
	var rit=true;
	for(var i=0; i<superflue.length; i++) // controllo sul testo
		{
		if(testo.indexOf(superflue[i])!=-1 || wordsCon.indexOf(superflue[i])!=-1)
			{
			if(superflue[i].indexOf(';')!=-1){superflua=superflue[i].substring(1,superflue[i].length-1);}
			else{superflua=superflue[i];}
			rit=false;
			break;
			}
		else if(wordsCon.indexOf(';sexy;')!=-1 || wordsCon.indexOf(';sexi;')!=-1)
			{
			rit=sexyWords(rit,wordsCon);
			if(!rit){superflua='sexy';}
			break;
			}
		
		}
	if(!rit){alert('\''+superflua+'\' è una parola superflua.'); }
	return rit;
	}

function sexyWords(rit,wordsCon)
	{
	if(	wordsCon.indexOf(';natal')==-1 && wordsCon.indexOf(';befan')==-1 &&
		!(wordsCon.indexOf(';pin;')!=-1 && wordsCon.indexOf(';up;')!=-1) &&
		wordsCon.indexOf(';pinup;')==-1 && wordsCon.indexOf(';disegn')==-1
	
	){rit=false;}
	

	return rit;
	}


function noFound(wordsCon) //-- MATERIALE NON PRESENTE
	{
	var noFound=caricaNoFound();
	var no='';	
	var rit=true;
	for(var i=0; i<noFound.length; i++)
		{
		if(wordsCon.indexOf(noFound[i])!=-1){rit=false;}
		}		
	if(!rit){alert('Materiale non presente sul sito.');}
	return rit; 
	}

function caricaCaratteri()
	{
	var caratteri=new Array();
	caratteri[0]='\'';
	caratteri[1]='"';
	caratteri[2]='+';
	caratteri[3]='&';
	caratteri[4]='.';
	caratteri[5]=',';
	caratteri[6]='\\';
	caratteri[7]='/';
	caratteri[8]=';';
	caratteri[9]='_';
	caratteri[10]=':';
	caratteri[11]='-';
	return caratteri;
	}

function caricaSuperflue() 
	{
	var superflue=new Array();
	superflue[0]='foto';
	superflue[1]='immagine';
	superflue[2]='immagini';
	superflue[3]='sfondo';
	superflue[4]='sfondi';
	superflue[5]='disegno';
	superflue[6]='disegni';
	superflue[7]='wallpaper';
	superflue[8]='desktop';
	superflue[9]=';e;';
	superflue[10]=';il;';
	superflue[11]=';and;';
	superflue[12]=';con;';
	superflue[13]=';col;';
	superflue[14]=';del;';
	return superflue;
	}

function caricaNoFound()
	{
	var noFound=new Array();
	noFound[0]=';1280x1024;';
	noFound[1]=';1280;x;1024;';
	noFound[2]=';icon';
	noFound[3]=';video;';
	noFound[4]=';cartolin';
	noFound[5]=';filmat';
	noFound[6]=';suonerie;';
	noFound[7]=';puntator';
	noFound[8]=';moviment';
	noFound[9]=';bigliett';
	noFound[10]=';temi;';
	noFound[11]=';tema;';
	noFound[12]=';copertin';
	noFound[13]=';animaz';
	noFound[14]=';clipart';
	noFound[15]=';clip;art;';
	noFound[16]=';gif;';
	return noFound;
	}

function caricaCategorie()
	{
	var dir=new Array();
	dir[0]='animali';
	dir[1]='ragazze';
	dir[2]='mare';
	dir[3]='cartoni animati';
	dir[4]='umorismo';
	dir[5]='vari';
	dir[6]='pin up';
	dir[7]='natura';
	dir[8]='fantasy';
	dir[9]='grafica 3d';
	dir[10]='cinema e tv';
	dir[11]='diddl';
	dir[12]='arte';
	dir[13]='utenti';
	dir[14]='viaggi';
	dir[15]='manga';
	dir[16]='musica';
	dir[17]='bambini';
	dir[18]='fumetti';	
	dir[19]='ragazzi';
	dir[20]='sport';
	dir[21]='montagna';
	dir[22]='feste';
	dir[23]='videogiochi';
	dir[24]='spazio';
	dir[25]='motori';
	dir[26]='calendario';
	dir[27]='zodiaco';
	//dir[28]='veronica zemanova';
	dir[28]='the simpsons';
	dir[29]='body art';
	//dir[30]='pornostars';
	dir[30]='by romina grimani';
	dir[31]='walt disney';
	dir[32]='militari';
	dir[33]='formula uno';
	dir[34]='roberto mangosi';
	dir[35]='looney tunes';
	dir[36]='nomi';
	dir[37]='nomi femminili';
	dir[38]='befana sexy';
	dir[39]='pamela anderson';
	dir[40]='fiori';
	dir[41]='brad pitt';
	dir[42]='vasco rossi';
	dir[43]='by loris bellotto';
	dir[44]='spiderman';
	dir[45]='cibi e frutta';
	dir[46]='calcio';
	dir[47]='star wars';
	dir[48]='caricature';
	//dir[49]='amanda robbins';
	dir[49]='by ileana filipponi';
	dir[50]='il signore degli anelli';
	dir[51]='religiosi';
	dir[52]='matrix';
	dir[53]='bandiere';
	dir[54]='automobili';
	dir[55]='pubblicita';
	dir[56]='alberto sordi';
	dir[57]='superman';
	dir[58]='luciano ligabue';
	dir[59]='toto';
	dir[60]='halle berry';
	dir[61]='happy days';
	dir[62]='strumenti';
	dir[63]='ut: animali';
	dir[64]='by pipan';
	dir[65]='crazy race';
	dir[66]='the rolling stones';
	dir[67]='by franco zavaglia';
	//dir[68]='hitman ii';
	dir[68]='britney spears';
	dir[69]='by ale di matteo';
	dir[70]='garfield';
	dir[71]='by simone tomasetti';
	dir[72]='sfondi cellulari';
	dir[73]='sfondi animati';
	dir[74]='bellezze italiane';
	dir[75]='top model';
	dir[76]='blues';
	dir[77]='by marina gabriele';
	dir[78]='by puccioni';
	dir[79]='by angelo siclari';
	
	
	return dir;
	}

function redirectCheck(testo)
	{
	var rit=true;
	var cat=false;	
	var dir=caricaCategorie();
	for(var i=0; i<dir.length; i++)
		{
		if(testo==dir[i]){cat=true;}	
		}
	if(cat)
		{
		var ask=confirm('Per questa ricerca esiste la directory: '+testo.toUpperCase()+'.\nVuoi essere automaticamente indirizzato a questa directory?'); 
		if(ask)
			{
			if(testo=='sfondi cellulari' || testo=='sfondi animati'){window.location='sfondi.asp?idKey=sfondianimaticellulari';}
			else
				{
				testo=cambio(testo,' ');
				if(window.document.forms[0].name=='archivio')
					{
					var idS=window.document.trova.ording.selectedIndex;
					var ord=""+window.document.trova.ording.options[idS].value;
					window.location='sfondiTop.asp?idKey='+testo+'&ording='+ord;
					}
				else{window.location='sfondi.asp?idKey='+testo;}
				}
			}			
		rit=false;
		}
	else
		{
		var goPag=''; // redirect particolari
		if(testo.indexOf('top 20')!=-1){goPag='top.asp';}
		if(testo.indexOf('novità')!=-1){goPag='ultimi.asp';}
		if(testo.indexOf('mappa')!=-1){goPag='mappa.asp';}
		if(testo.indexOf('web')!=-1 || testo.indexOf('glitter')!=-1){goPag='sfondiGlitter.asp';}
		//if(testo.indexOf('help')!=-1){goPag='help.htm';}
		if(testo.indexOf('news')!=-1){goPag='newsletter.asp';}
		if(testo.indexOf('screensaver')!=-1){goPag='screensaver.asp';}
		if(goPag!=''){window.location=goPag; rit=false;}
		}
	return rit;
	}

function cambio(valore,sep)
	{
	if(valore.indexOf(sep)!=-1)
		{
		var sepAp=' ';
		if(sep==sepAp){sepAp='_';}
		var ap=valore.split(sep);
		var apCat='';
		for(var i=0; i<ap.length; i++){apCat+=sepAp+ap[i];}	
		valore=apCat.substr(1);
		}
	return valore;
	}










//-->
