var xmlEseguiAjax="";
var spostaexplorer="";
var azioneclick=0;
var mouseYannunci=260;
var uploadclickchat=0;
var browser="";
var paginacaricata=0;
var LinguaSito="";
var mySlideShow="";


function getImgSize(url) {
	myImage = new Image();
	myImage.src = url;
	return myImage.width + "_" + myImage.height;
}




function initializeGmap() {
	initGmap();
	var address = document.getElementById("address").value;
	if(address=="")
		address=document.getElementById("addressCopia").value;
	
	markerCoords = document.getElementById("markerCoords").value;
	if(markerCoords != "") {
		creaMappa(zoomApertura, getCoord(markerCoords), 0);
		marker = addMarker(getCoord(markerCoords), 1, 0, linguaCampi(98), "", "");
		reimpostaMarker(marker, 1);
	} else if (address != "") {
		creaMappa(zoomApertura, defaultCenter, 0);
		geocoder.geocode( { 'address': address}, function(results, status) {
			if (status == google.maps.GeocoderStatus.OK) {
				map.setCenter(results[0].geometry.location);
				marker = addMarker(results[0].geometry.location, 1, 0, linguaCampi(98), "", "");
				reimpostaMarker(marker, 1);
			} 
			else
				alert(linguaCampi(102) + status);
		});
	}
	else
		creaMappa(defaultZoom, defaultCenter, 1);
}




function initializeGmapPercorso() {
	initGmap();
	markerCoordsDsz = document.getElementById("markerCoordsDest").value;
	markerCoordsStart = document.getElementById("markerCoords").value;
	if(markerCoordsDsz != "") {
		creaMappa(zoomApertura, getCoord(markerCoordsDsz), 2);
		var newMarker = new google.maps.Marker({
			map: map,
			position: getCoord(markerCoordsDsz),
			clickable: true
		});
		var titolo=document.getElementById("titoloDest").value;
		var avatar=document.getElementById("avatarDest").value;
		var contentString ='<table><tr><td style="vertical-align:top;"><img src="'+avatar+'" alt="" style="width:50px;" /></td><td style="padding-left:5px;"><p>' + titolo + '</p></td></tr></table>';
		google.maps.event.addListener(newMarker, 'click', function(event) {impostaMarker(newMarker, contentString);});
		addInfoWindow(newMarker, contentString, 350);
		var address = document.getElementById("address").value;
		if(address=="")
			address=document.getElementById("addressCopia").value;
		if (markerCoordsStart!="") {
			document.getElementById("directionsPanel").innerHTML='<p>'+linguaCampi(103)+'<span id="total"></span></p>';
			calcolaPercorso(markerCoordsStart, markerCoordsDsz);
		}
		else if (address != "") {
			geocoder.geocode( { 'address': address}, function(results, status) {
				if (status == google.maps.GeocoderStatus.OK) {
					numMarkers++;
					document.getElementById("directionsPanel").innerHTML='<p>'+linguaCampi(103)+'<span id="total"></span></p>';
					calcolaPercorso(results[0].geometry.location, markerCoordsDsz);
				} 
				else
					alert(linguaCampi(102) + status);
			});
		}
	}
	else
		creaMappa(defaultZoom, defaultCenter, 1);
}



function getClientWidth() {
  return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientWidth:document.body.clientWidth;
}

function getClientHeight() {
  return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;
}


function EseguiUploadFileChat()
{
	valore = document.UploadFileChat.uploadFile.value;
	eseguiUpload(valore, "Chat");
}

function UploadFile()
{
	valore = document.FormTesto.uploadFile.value;
	eseguiUpload(valore, "");
}


function UjUploadFile()
{
	if (document.getElementById("fileLink").style.display=="none")
		eseguiUpload(document.FormTesto.uploadFile.value, "");
	else {
		valore=document.FormTesto.uploadFile2.value;
		if(valore !="" && valore.length > 12)
		{
			if(left(valore.toLowerCase(), 7)!="http://" || (right(valore.toLowerCase(), 4)!=".gif" && right(valore.toLowerCase(), 4)!=".png" && right(valore.toLowerCase(), 4)!=".jpg" && right(valore.toLowerCase(), 4)!=".bmp" && right(valore.toLowerCase(), 5)!=".jpeg"))
				alert("Input is not an image!");
			else {
				document.getElementById("linkFileInserito").value=valore;
				eseguiUpload(valore, "");
			}
		}
		else
			alert("Input is not an image!");
	}
}


function linkUpload()
{
	document.getElementById("labelUpload").innerHTML="Link al file";
	document.getElementById("fileUpload").style.display="none";
	document.getElementById("fileLink").style.display="block";
}


function eseguiUpload(valore, tipo)
{
	var controllo=true;
	if (valore==null || valore== "")
	{
		controllo=false;
		alert("Input is empty");
	}

	if (uploadclickchat==0)
	{
		if (controllo==true)
		{	
			uploadclickchat=1;
			if (tipo=="Chat")
				parent.document.uploadclickchat=1;
			var ImageUpload;
			ImageUpload = document.getElementById("ChatImageUpload");
			ImageUpload.style.display = "block";
			if(tipo=="Chat")
				document.UploadFileChat.submit();
			else
				document.FormTesto.submit();
			return true;
		}
	}
	else
		alert("Uploading file");
}



function UploadFileCampi(LSito, Campo1, Campo2, NomeC1, NomeC2)
{
	LinguaSito=LSito;
	var controllo=true;
	var errorMessage="";
	
	if (Campo1 != "" && document.getElementById(Campo1+"2").value=="")
	{	
		document.getElementById(Campo1+"2").style.backgroundColor = "#ffffff";
		document.getElementById(Campo1+"2").style.backgroundColor = "#fb7";
		controllo=false;
		errorMessage += linguaJs(0)+ "<span class='grassetto'>"+NomeC1+"</span> " +linguaJs(1)+ "<br/>";
	}
	
	if (uploadclickchat==0)
	{
		if (controllo==true)
		{	
			if(Campo1 != "") 
				specialcharsCampo(Campo1+"2", Campo1);
			
			if(Campo2 != "") 
				specialcharsCampo(Campo2+"2", Campo2);
			
			document.getElementById("ChatImageUpload").style.display = "block";		
			UjUploadFile();
		}
		else
		{
			var MessageBoard;
			MessageBoard = document.getElementById("MessageBoard");
			MessageBoard.style.display = "block";	
			MessageBoard.innerHTML = errorMessage;
		}
	}
	else
		alert("Uploading file");
}



function OverHand(Id)
{
	document.getElementById(Id).style.cursor="pointer";
}


function LinkOver(Id)
{
	if(document.getElementById(Id).className != "titolo_linkSelezionato")
	{
		document.getElementById(Id).style.cursor="pointer";
		document.getElementById(Id).className="titolo_linkSopra";
	}
}


function LinkOut(Id)
{
	if(document.getElementById(Id).className != "titolo_linkSelezionato")
		document.getElementById(Id).className="titolo_link";
}


function LinkOverClasse(Id, Classe)
{
	document.getElementById(Id).style.cursor="pointer";
	document.getElementById(Id).className=Classe;
}


function LinkOutClasse(Id, Classe)
{
	document.getElementById(Id).className=Classe;
}


function LinkEsterno(link)
{
	if(left(link,5)=="index")
		link+="&ctfn=0";
	newWindow= window.open("","");
	newWindow.location.href = link;
}


function ApriLinkPagina(link)
{
	document.location.href=link;
}


function MostraNascondi(Id)
{
	if(document.getElementById(Id).className=="nascosto")
		document.getElementById(Id).className="block";
	else
		document.getElementById(Id).className="nascosto";
}


function NascondiElemento(Id)
{
	document.getElementById(Id).style.display="none";
}

function MostraElemento(Id)
{
	document.getElementById(Id).style.display="block";
}

function AssegnaUnaClasse(Id, Classe)
{
	document.getElementById(Id).style.cursor="pointer";
	document.getElementById(Id).className=Classe;
}



function specialcharsForm(Form, Campo, NuovoCampo)
{
	document.getElementById(NuovoCampo).value=htmlEncode(document.getElementById(Campo).value, false, false);
	document.forms[Form].submit();
	return true;
}


function specialcharsCampo(Campo, NuovoCampo)
{
	document.getElementById(NuovoCampo).value=htmlEncode(document.getElementById(Campo).value, false, false);
}




function calcolatempo()
{
	var myDate=new Date();
	return myDate.getTime();
}


function millisecondi()
{
	var myDate=new Date();
	ms1=myDate.getTime();
	zeit = new Date(); 
	ms2 = (zeit.getHours() * 24 * 60 * 1000) + (zeit.getMinutes() * 60 * 1000) + (zeit.getSeconds() * 1000) + zeit.getMilliseconds(); 
	return ms1 + "-" + ms2;
}



function left(str, n)
{
	if (n <= 0)
	    return "";
	else if (n > String(str).length)
	    return str;
	else
	    return String(str).substring(0,n);
}


function right(str, n)
{
    if (n <= 0)
       return "";
    else if (n > String(str).length)
       return str;
    else {
       var iLen = String(str).length;
       return String(str).substring(iLen, iLen - n);
    }
}



function mid(str, inizio, lunghezza)
{
	return String(str).substring(inizio-1, inizio-1+lunghezza);
}



function ReplaceAll(Source, stringToFind, stringToReplace) {
	var temp = Source;
	var index = temp.indexOf(stringToFind);
	while(index != -1) {
		temp = temp.replace(stringToFind,stringToReplace);
		index = temp.indexOf(stringToFind);
	}
	return temp;
}


if(navigator.appName=="Microsoft Internet Explorer")
{	
	versione=navigator.appVersion.toLowerCase();
	if(versione.indexOf("msie 6.0") > -1)
		browser="IE6";
}



function verifica_password(Password) 
{	
	if(Password.indexOf("0")==-1 && Password.indexOf("1")==-1 && Password.indexOf("2")==-1 && Password.indexOf("3")==-1 && Password.indexOf("4")==-1 && Password.indexOf("5")==-1 && Password.indexOf("6")==-1 && Password.indexOf("7")==-1 && Password.indexOf("8")==-1 && Password.indexOf("9")==-1)
		return false;
	else
		return true;
}		


function invertidata(data)
{
	if(data != '')
	{
		var anno = data.substr(6,4);
		var mese = data.substr(3,2);
		var giorno = data.substr(0,2);
		return anno + '/' + mese + '/' + giorno;
	}
	else
		return '';
}



function ripristinadata(data)
{
	if(data != '')
	{
		var anno = data.substr(0,4);
		var mese = data.substr(5,2);
		var giorno = data.substr(8,2);
		return giorno + '/' + mese + '/' + anno;
	}
	else
		return '';
}


function cerca_caratterispeciali(stringa)
{
	var controllo=false;
	if(stringa.search("&")!= -1)
		controllo=true;
	if(stringa.search("\\\\")!= -1)
		controllo=true;
	if(stringa.search('"')!= -1)
		controllo=true;
	if(stringa.search("'")!= -1)
		controllo=true;
	if(stringa.search("%")!= -1)
		controllo=true;
	return controllo;
}



function controllanickname(stringa)
{
	var controllo=false;
	if(stringa.search("'")!= -1)
		controllo=true;
	if(stringa.search("%")!= -1)
		controllo=true;
	if(stringa.search("&")!= -1)
		controllo=true;
	if(stringa.search("/")!= -1)
		controllo=true;
	if(stringa.search("\\\\")!= -1)
		controllo=true;
	if(stringa.search(":")!= -1)
		controllo=true;
	if(stringa.search('"')!= -1)
		controllo=true;
	if(stringa.search('\\*')!= -1)
		controllo=true;
	if(stringa.search('\\?')!= -1)
		controllo=true;
	if(stringa.search('\\|')!= -1)
		controllo=true;
	if(stringa.search('<')!= -1)
		controllo=true;
	if(stringa.search('>')!= -1)
		controllo=true;
	return controllo;
}




function erroriform(stringaerrore) {	
	var MessageBoard;
	MessageBoard = document.getElementById("MessageBoard");
	MessageBoard.style.display = "block";	
	MessageBoard.innerHTML = stringaerrore;
}

function erroriform2(stringaerrore) {	
	var MessageBoard;
	MessageBoard = document.getElementById("MessageBoard2");
	MessageBoard.style.display = "block";	
	MessageBoard.innerHTML = stringaerrore;
}



function disableSelection(target)
{
	if (typeof target.onselectstart!="undefined")
		target.onselectstart=function(){return false;}
	else if (typeof target.style.MozUserSelect!="undefined")
	{
		target.onmousedown=function(){return false;}
		target.style.MozUserSelect="none";
	}
	else
		target.onmousedown=function(){return false;}
	target.style.cursor = "default";
}



function enableSelection(target)
{
	if (typeof target.onselectstart!="undefined")
		target.onselectstart=function(){return true;}
	else if (typeof target.style.MozUserSelect!="undefined")
	{
		target.onmousedown=function(){return true;}
		target.style.MozUserSelect="text";
	}
	else
		target.onmousedown=function(){return true;}
	target.style.cursor = "auto";
}



function aggiungimese()
{
	if(document.Calendario.Mese.value=="")
	{	
		document.Calendario.Mese.value ='<%=month(date())%>';
		document.Calendario.Anno.value ='<%=year(date())%>';
	}
	mese=parseInt(document.Calendario.Mese.value)+1;
	anno=parseInt(document.Calendario.Anno.value);
	if(mese==13)
	{
		document.Calendario.Anno.value = anno+1;
		mese=1;
	}
	document.Calendario.Mese.value = mese;
	document.Calendario.submit();
	return true;
}



function sottraimese()
{
	if(document.Calendario.Mese.value=="")
	{	
		document.Calendario.Mese.value ='<%=month(date())%>';
		document.Calendario.Anno.value ='<%=year(date())%>';
	}
	mese=parseInt(document.Calendario.Mese.value)-1;
	anno=parseInt(document.Calendario.Anno.value);
	if(mese==0)
	{
		document.Calendario.Anno.value = anno-1;
		mese=12
	}
	document.Calendario.Mese.value = mese;
	document.Calendario.submit();
	return true;
}



function ricercaveloce()
{
	var controllo=true;
	specialcharsCampo('Rveltitle2', 'Rveltitle');
	
	document.getElementById("Rveltitle2").style.backgroundColor = "#ffffff";
	Titolo = document.getElementById("Rveltitle2").value;
	SezRicerca = document.getElementById("Rvelwhere").value;
	var Link="?Search="+SezRicerca;
		
	if(Titolo=="" || Titolo==null)
	{
		controllo=false;
		document.getElementById("Rveltitle2").style.backgroundColor = "#fb7";
	}
	else if(Titolo.length > 40 || Titolo.length < 2)
	{
		controllo=false;
		document.getElementById("Rveltitle2").style.backgroundColor = "#fb7";
	}
	
	Titolo = document.getElementById("Rveltitle").value;
	if(Titolo!="")
		Link+="&title=" + encodeURIComponent(Titolo);
	
	if (controllo==true)
		document.location.href = Link;
}



function LinkRicercaImmagini(Parola)
{
	Parola=htmlEncode(Parola, false, false);
	document.location.href="index.asp?Search=3&ParoleChiave="  + encodeURIComponent(Parola);
}


function CampoTmceVuoto(Messaggio)
{	
	if(Messaggio == "" || Messaggio == "-" || Messaggio == "<p>-</p>" || Messaggio == "<p>&nbsp;</p>" || Messaggio == "<p>&nbsp;&nbsp;</p>" || Messaggio == "<p>&nbsp;</p><p>&nbsp;</p>")
		return false;
	else
		return true;
}	


function CampoErrato(IdCampo, NomeCampo, Tipo)
{
	errMessage="";
	if (IdCampo !="")
		document.getElementById(IdCampo).style.backgroundColor = "#fb7";
	if (Tipo=="Err")
		errMessage = linguaJs(0) + "<span class='grassetto'>"+NomeCampo+"</span> " + linguaJs(2) + "<br/>";
	else
		errMessage = linguaJs(0) + "<span class='grassetto'>"+NomeCampo+"</span> " + linguaJs(1) + "<br/>";
	return errMessage;
}



/*
HTMLEncode - Encode HTML special characters.
Copyright (c) 2006 Thomas Peri, http://www.tumuski.com/
*/
function htmlEncode(source, display, tabs)
{
	function special(source)
	{
		var result = '';
		for (var i = 0; i < source.length; i++)
		{
			var c = source.charAt(i);
			if (c < ' ' || c > '~')
			{
				c = '&#' + c.charCodeAt() + ';';
			}
			result += c;
		}
		return result;
	}
	
	function format(source)
	{
		tabs = (tabs >= 0) ? Math.floor(tabs) : 4;	
		var lines = source.split(/\r\n|\r|\n/);	
		for (var i = 0; i < lines.length; i++)
		{
			var line = lines[i];
			var newLine = '';
			for (var p = 0; p < line.length; p++)
			{
				var c = line.charAt(p);
				if (c === '\t')
				{
					var spaces = tabs - (newLine.length % tabs);
					for (var s = 0; s < spaces; s++)
						newLine += ' ';
				}
				else
					newLine += c;
			}
			newLine = newLine.replace(/(^ )|( $)/g, '&nbsp;');
			lines[i] = newLine;
		}	
		var result = lines.join('<br />');
		result = result.replace(/  /g, ' &nbsp;');
		return result;
	}
	var result = source;
	result = result.replace(/\&/g,'&amp;');
	result = result.replace(/\</g,'&lt;');
	result = result.replace(/\>/g,'&gt;');	
	if (display)
		result = format(result);
	else
		result = result.replace(new RegExp('"','g'), '&quot;');
	result = special(result);	
	return result;
}





function URLEncode (clearString) 
{
  var output = '';
  var x = 0;
  clearString = clearString.toString();
  var regex = /(^[a-zA-Z0-9_.]*)/;
  while (x < clearString.length) {
    var match = regex.exec(clearString.substr(x));
    if (match != null && match.length > 1 && match[1] != '') {
    	output += match[1];
      x += match[1].length;
    } else {
      if (clearString[x] == ' ')
        output += '+';
      else {
        var charCode = clearString.charCodeAt(x);
        var hexVal = charCode.toString(16);
        output += '%' + ( hexVal.length < 2 ? '0' : '' ) + hexVal.toUpperCase();
      }
      x++;
    }
  }
  return output;
}



function URLDecode (encodedString) 
{
  var output = encodedString;
  var binVal, thisString;
  var myregexp = /(%[^%]{2})/;
  while ((match = myregexp.exec(output)) != null
             && match.length > 1
             && match[1] != '') {
    binVal = parseInt(match[1].substr(1),16);
    thisString = String.fromCharCode(binVal);
    output = output.replace(match[1], thisString);
  }
  return output;
}



function trim(o)
{
	var re=/^(\s*)([\w\W]*[^\s])(\s*)$/;
	var rs=re.exec(String(o));
	return rs != null ? rs[2] : "";
}





function rimuoviamp(stringa)
{
	result=stringa
	for(f=0; f<result.length ; f++)
		result = result.replace('&amp;', "&");
	return result;
}





function isDateValid(theDate) {
	var re=/^([0-9]{1,2})\/([0-9]{1,2})\/([1-2][0-9]{3})$/;
	var res;
	var anno=theDate.substring(6);
	if ((res = re.exec(theDate)) != null) {
		var d = res[1]-0;
		var m = res[2]-0;
		var y = res[3]-0;
		var ly = (y % 4 == 0) && (y % 100 != 0) || (y % 400 == 0);
		var maxDay;
		
		switch (m) {
			case 1:
			case 3:
			case 5:
			case 7:
			case 8:
			case 10:
			case 12:
				maxDay = 31;
				break;
			case 4:
			case 6:
			case 9:
			case 11:
				maxDay = 30;
				break;
			case 2:
				if (ly)
					maxDay = 29;
				else
					maxDay = 28;
				break;
			default:
				return false;
				break;
		}
		if (1<=d && d<=maxDay)
		{	
			if (anno>=1900)
				return true;
			else
				return false;
		}
		else
			return false;	
	}
	else
		return false;
}



function checkMail(mail)
{
	var re=/^[-a-zA-Z0-9_.]+@[-a-zA-Z0-9_.]+[-a-zA-Z0-9_.]+\.([-a-zA-Z0-9_.]{2,3}|info|name)$/;

	var res;
	if ((res = re.exec(mail)) != null) 
		return true;	
	else
		return false;
}





function dateAdd(ItemType, DateToWorkOn, ValueToBeAdded)
{
    switch (ItemType)
    {
        case 'd': //add days
            DateToWorkOn.setDate(DateToWorkOn.getDate() + ValueToBeAdded)
            break;
        case 'm': //add months
            DateToWorkOn.setMonth(DateToWorkOn.getMonth() + ValueToBeAdded)
            break;
        case 'y': //add years
            DateToWorkOn.setYear(DateToWorkOn.getFullYear() + ValueToBeAdded)
            break;
        //time portion        
        case 'h': //add days
            DateToWorkOn.setHours(DateToWorkOn.getHours() + ValueToBeAdded)
            break;
        case 'n': //add minutes
            DateToWorkOn.setMinutes(DateToWorkOn.getMinutes() + ValueToBeAdded)
            break;
        case 's': //add seconds
            DateToWorkOn.setSeconds(DateToWorkOn.getSeconds() + ValueToBeAdded)
            break;
    }
    return DateToWorkOn;
}




Encoder = {
	EncodeType : "entity",
	isEmpty : function(val){
		if(val)
			return ((val===null) || val.length==0 || /^\s+$/.test(val));
		else
			return true;
	},

	HTML2Numerical : function(s){
		var arr1 = new Array('&nbsp;','&iexcl;','&cent;','&pound;','&curren;','&yen;','&brvbar;','&sect;','&uml;','&copy;','&ordf;','&laquo;','&not;','&shy;','&reg;','&macr;','&deg;','&plusmn;','&sup2;','&sup3;','&acute;','&micro;','&para;','&middot;','&cedil;','&sup1;','&ordm;','&raquo;','&frac14;','&frac12;','&frac34;','&iquest;','&agrave;','&aacute;','&acirc;','&atilde;','&Auml;','&aring;','&aelig;','&ccedil;','&egrave;','&eacute;','&ecirc;','&euml;','&igrave;','&iacute;','&icirc;','&iuml;','&eth;','&ntilde;','&ograve;','&oacute;','&ocirc;','&otilde;','&Ouml;','&times;','&oslash;','&ugrave;','&uacute;','&ucirc;','&Uuml;','&yacute;','&thorn;','&szlig;','&agrave;','&aacute;','&acirc;','&atilde;','&auml;','&aring;','&aelig;','&ccedil;','&egrave;','&eacute;','&ecirc;','&euml;','&igrave;','&iacute;','&icirc;','&iuml;','&eth;','&ntilde;','&ograve;','&oacute;','&ocirc;','&otilde;','&ouml;','&divide;','&Oslash;','&ugrave;','&uacute;','&ucirc;','&uuml;','&yacute;','&thorn;','&yuml;','&quot;','&amp;','&lt;','&gt;','&oelig;','&oelig;','&scaron;','&scaron;','&yuml;','&circ;','&tilde;','&ensp;','&emsp;','&thinsp;','&zwnj;','&zwj;','&lrm;','&rlm;','&ndash;','&mdash;','&lsquo;','&rsquo;','&sbquo;','&ldquo;','&rdquo;','&bdquo;','&dagger;','&dagger;','&permil;','&lsaquo;','&rsaquo;','&euro;','&fnof;','&alpha;','&beta;','&gamma;','&delta;','&epsilon;','&zeta;','&eta;','&theta;','&iota;','&kappa;','&lambda;','&mu;','&nu;','&xi;','&omicron;','&pi;','&rho;','&sigma;','&tau;','&upsilon;','&phi;','&chi;','&psi;','&omega;','&alpha;','&beta;','&gamma;','&delta;','&epsilon;','&zeta;','&eta;','&theta;','&iota;','&kappa;','&lambda;','&mu;','&nu;','&xi;','&omicron;','&pi;','&rho;','&sigmaf;','&sigma;','&tau;','&upsilon;','&phi;','&chi;','&psi;','&omega;','&thetasym;','&upsih;','&piv;','&bull;','&hellip;','&prime;','&prime;','&oline;','&frasl;','&weierp;','&image;','&real;','&trade;','&alefsym;','&larr;','&uarr;','&rarr;','&darr;','&harr;','&crarr;','&larr;','&uarr;','&rarr;','&darr;','&harr;','&forall;','&part;','&exist;','&empty;','&nabla;','&isin;','&notin;','&ni;','&prod;','&sum;','&minus;','&lowast;','&radic;','&prop;','&infin;','&ang;','&and;','&or;','&cap;','&cup;','&int;','&there4;','&sim;','&cong;','&asymp;','&ne;','&equiv;','&le;','&ge;','&sub;','&sup;','&nsub;','&sube;','&supe;','&oplus;','&otimes;','&perp;','&sdot;','&lceil;','&rceil;','&lfloor;','&rfloor;','&lang;','&rang;','&loz;','&spades;','&clubs;','&hearts;','&diams;');
		var arr2 = new Array('&#160;','&#161;','&#162;','&#163;','&#164;','&#165;','&#166;','&#167;','&#168;','&#169;','&#170;','&#171;','&#172;','&#173;','&#174;','&#175;','&#176;','&#177;','&#178;','&#179;','&#180;','&#181;','&#182;','&#183;','&#184;','&#185;','&#186;','&#187;','&#188;','&#189;','&#190;','&#191;','&#192;','&#193;','&#194;','&#195;','&#196;','&#197;','&#198;','&#199;','&#200;','&#201;','&#202;','&#203;','&#204;','&#205;','&#206;','&#207;','&#208;','&#209;','&#210;','&#211;','&#212;','&#213;','&#214;','&#215;','&#216;','&#217;','&#218;','&#219;','&#220;','&#221;','&#222;','&#223;','&#224;','&#225;','&#226;','&#227;','&#228;','&#229;','&#230;','&#231;','&#232;','&#233;','&#234;','&#235;','&#236;','&#237;','&#238;','&#239;','&#240;','&#241;','&#242;','&#243;','&#244;','&#245;','&#246;','&#247;','&#248;','&#249;','&#250;','&#251;','&#252;','&#253;','&#254;','&#255;','&#34;','&#38;','&#60;','&#62;','&#338;','&#339;','&#352;','&#353;','&#376;','&#710;','&#732;','&#8194;','&#8195;','&#8201;','&#8204;','&#8205;','&#8206;','&#8207;','&#8211;','&#8212;','&#8216;','&#8217;','&#8218;','&#8220;','&#8221;','&#8222;','&#8224;','&#8225;','&#8240;','&#8249;','&#8250;','&#8364;','&#402;','&#913;','&#914;','&#915;','&#916;','&#917;','&#918;','&#919;','&#920;','&#921;','&#922;','&#923;','&#924;','&#925;','&#926;','&#927;','&#928;','&#929;','&#931;','&#932;','&#933;','&#934;','&#935;','&#936;','&#937;','&#945;','&#946;','&#947;','&#948;','&#949;','&#950;','&#951;','&#952;','&#953;','&#954;','&#955;','&#956;','&#957;','&#958;','&#959;','&#960;','&#961;','&#962;','&#963;','&#964;','&#965;','&#966;','&#967;','&#968;','&#969;','&#977;','&#978;','&#982;','&#8226;','&#8230;','&#8242;','&#8243;','&#8254;','&#8260;','&#8472;','&#8465;','&#8476;','&#8482;','&#8501;','&#8592;','&#8593;','&#8594;','&#8595;','&#8596;','&#8629;','&#8656;','&#8657;','&#8658;','&#8659;','&#8660;','&#8704;','&#8706;','&#8707;','&#8709;','&#8711;','&#8712;','&#8713;','&#8715;','&#8719;','&#8721;','&#8722;','&#8727;','&#8730;','&#8733;','&#8734;','&#8736;','&#8743;','&#8744;','&#8745;','&#8746;','&#8747;','&#8756;','&#8764;','&#8773;','&#8776;','&#8800;','&#8801;','&#8804;','&#8805;','&#8834;','&#8835;','&#8836;','&#8838;','&#8839;','&#8853;','&#8855;','&#8869;','&#8901;','&#8968;','&#8969;','&#8970;','&#8971;','&#9001;','&#9002;','&#9674;','&#9824;','&#9827;','&#9829;','&#9830;');
		return this.swapArrayVals(s,arr1,arr2);
	},	

	NumericalToHTML : function(s){
		var arr1 = new Array('&#160;','&#161;','&#162;','&#163;','&#164;','&#165;','&#166;','&#167;','&#168;','&#169;','&#170;','&#171;','&#172;','&#173;','&#174;','&#175;','&#176;','&#177;','&#178;','&#179;','&#180;','&#181;','&#182;','&#183;','&#184;','&#185;','&#186;','&#187;','&#188;','&#189;','&#190;','&#191;','&#192;','&#193;','&#194;','&#195;','&#196;','&#197;','&#198;','&#199;','&#200;','&#201;','&#202;','&#203;','&#204;','&#205;','&#206;','&#207;','&#208;','&#209;','&#210;','&#211;','&#212;','&#213;','&#214;','&#215;','&#216;','&#217;','&#218;','&#219;','&#220;','&#221;','&#222;','&#223;','&#224;','&#225;','&#226;','&#227;','&#228;','&#229;','&#230;','&#231;','&#232;','&#233;','&#234;','&#235;','&#236;','&#237;','&#238;','&#239;','&#240;','&#241;','&#242;','&#243;','&#244;','&#245;','&#246;','&#247;','&#248;','&#249;','&#250;','&#251;','&#252;','&#253;','&#254;','&#255;','&#34;','&#38;','&#60;','&#62;','&#338;','&#339;','&#352;','&#353;','&#376;','&#710;','&#732;','&#8194;','&#8195;','&#8201;','&#8204;','&#8205;','&#8206;','&#8207;','&#8211;','&#8212;','&#8216;','&#8217;','&#8218;','&#8220;','&#8221;','&#8222;','&#8224;','&#8225;','&#8240;','&#8249;','&#8250;','&#8364;','&#402;','&#913;','&#914;','&#915;','&#916;','&#917;','&#918;','&#919;','&#920;','&#921;','&#922;','&#923;','&#924;','&#925;','&#926;','&#927;','&#928;','&#929;','&#931;','&#932;','&#933;','&#934;','&#935;','&#936;','&#937;','&#945;','&#946;','&#947;','&#948;','&#949;','&#950;','&#951;','&#952;','&#953;','&#954;','&#955;','&#956;','&#957;','&#958;','&#959;','&#960;','&#961;','&#962;','&#963;','&#964;','&#965;','&#966;','&#967;','&#968;','&#969;','&#977;','&#978;','&#982;','&#8226;','&#8230;','&#8242;','&#8243;','&#8254;','&#8260;','&#8472;','&#8465;','&#8476;','&#8482;','&#8501;','&#8592;','&#8593;','&#8594;','&#8595;','&#8596;','&#8629;','&#8656;','&#8657;','&#8658;','&#8659;','&#8660;','&#8704;','&#8706;','&#8707;','&#8709;','&#8711;','&#8712;','&#8713;','&#8715;','&#8719;','&#8721;','&#8722;','&#8727;','&#8730;','&#8733;','&#8734;','&#8736;','&#8743;','&#8744;','&#8745;','&#8746;','&#8747;','&#8756;','&#8764;','&#8773;','&#8776;','&#8800;','&#8801;','&#8804;','&#8805;','&#8834;','&#8835;','&#8836;','&#8838;','&#8839;','&#8853;','&#8855;','&#8869;','&#8901;','&#8968;','&#8969;','&#8970;','&#8971;','&#9001;','&#9002;','&#9674;','&#9824;','&#9827;','&#9829;','&#9830;');
		var arr2 = new Array('&nbsp;','&iexcl;','&cent;','&pound;','&curren;','&yen;','&brvbar;','&sect;','&uml;','&copy;','&ordf;','&laquo;','&not;','&shy;','&reg;','&macr;','&deg;','&plusmn;','&sup2;','&sup3;','&acute;','&micro;','&para;','&middot;','&cedil;','&sup1;','&ordm;','&raquo;','&frac14;','&frac12;','&frac34;','&iquest;','&agrave;','&aacute;','&acirc;','&atilde;','&Auml;','&aring;','&aelig;','&ccedil;','&egrave;','&eacute;','&ecirc;','&euml;','&igrave;','&iacute;','&icirc;','&iuml;','&eth;','&ntilde;','&ograve;','&oacute;','&ocirc;','&otilde;','&Ouml;','&times;','&oslash;','&ugrave;','&uacute;','&ucirc;','&Uuml;','&yacute;','&thorn;','&szlig;','&agrave;','&aacute;','&acirc;','&atilde;','&auml;','&aring;','&aelig;','&ccedil;','&egrave;','&eacute;','&ecirc;','&euml;','&igrave;','&iacute;','&icirc;','&iuml;','&eth;','&ntilde;','&ograve;','&oacute;','&ocirc;','&otilde;','&ouml;','&divide;','&Oslash;','&ugrave;','&uacute;','&ucirc;','&uuml;','&yacute;','&thorn;','&yuml;','&quot;','&amp;','&lt;','&gt;','&oelig;','&oelig;','&scaron;','&scaron;','&yuml;','&circ;','&tilde;','&ensp;','&emsp;','&thinsp;','&zwnj;','&zwj;','&lrm;','&rlm;','&ndash;','&mdash;','&lsquo;','&rsquo;','&sbquo;','&ldquo;','&rdquo;','&bdquo;','&dagger;','&dagger;','&permil;','&lsaquo;','&rsaquo;','&euro;','&fnof;','&alpha;','&beta;','&gamma;','&delta;','&epsilon;','&zeta;','&eta;','&theta;','&iota;','&kappa;','&lambda;','&mu;','&nu;','&xi;','&omicron;','&pi;','&rho;','&sigma;','&tau;','&upsilon;','&phi;','&chi;','&psi;','&omega;','&alpha;','&beta;','&gamma;','&delta;','&epsilon;','&zeta;','&eta;','&theta;','&iota;','&kappa;','&lambda;','&mu;','&nu;','&xi;','&omicron;','&pi;','&rho;','&sigmaf;','&sigma;','&tau;','&upsilon;','&phi;','&chi;','&psi;','&omega;','&thetasym;','&upsih;','&piv;','&bull;','&hellip;','&prime;','&prime;','&oline;','&frasl;','&weierp;','&image;','&real;','&trade;','&alefsym;','&larr;','&uarr;','&rarr;','&darr;','&harr;','&crarr;','&larr;','&uarr;','&rarr;','&darr;','&harr;','&forall;','&part;','&exist;','&empty;','&nabla;','&isin;','&notin;','&ni;','&prod;','&sum;','&minus;','&lowast;','&radic;','&prop;','&infin;','&ang;','&and;','&or;','&cap;','&cup;','&int;','&there4;','&sim;','&cong;','&asymp;','&ne;','&equiv;','&le;','&ge;','&sub;','&sup;','&nsub;','&sube;','&supe;','&oplus;','&otimes;','&perp;','&sdot;','&lceil;','&rceil;','&lfloor;','&rfloor;','&lang;','&rang;','&loz;','&spades;','&clubs;','&hearts;','&diams;');
		return this.swapArrayVals(s,arr1,arr2);
	},

	numEncode : function(s)
	{
		if(this.isEmpty(s)) return "";
		var e = "";
		for (var i = 0; i < s.length; i++)
		{
			var c = s.charAt(i);
			if (c < " " || c > "~")
				c = "&#" + c.charCodeAt() + ";";
			e += c;
		}
		return e;
	},
	
	htmlDecode : function(s)
	{
		var c,m,d = s;
		if(this.isEmpty(d)) return "";
		d = this.HTML2Numerical(d);
		arr=d.match(/&#[0-9]{1,5};/g);
		if(arr!=null)
		{
			for(var x=0;x<arr.length;x++)
			{
				m = arr[x];
				c = m.substring(2,m.length-1);
				if(c >= -32768 && c <= 65535)
					d = d.replace(m, String.fromCharCode(c));
				else
					d = d.replace(m, "");
			}			
		}
		return d;
	},		

	htmlEncode : function(s,dbl)
	{
		if(this.isEmpty(s)) return "";
		dbl = dbl | false;
		if(dbl)
		{
			if(this.EncodeType=="numerical")
				s = s.replace(/&/g, "&#38;");
			else
				s = s.replace(/&/g, "&amp;");
		}
		s = this.XSSEncode(s,false);
		if(this.EncodeType=="numerical" || !dbl)
			s = this.HTML2Numerical(s);
	
		s = this.numEncode(s);
		if(!dbl)
		{
			s = s.replace(/&#/g,"##AMPHASH##");
			if(this.EncodeType=="numerical")
				s = s.replace(/&/g, "&#38;");
			else
				s = s.replace(/&/g, "&amp;");
				
			s = s.replace(/##AMPHASH##/g,"&#");
		}
		s = s.replace(/&#\d*([^\d;]|$)/g, "$1");
		if(!dbl)
			s = this.correctEncoding(s);

		if(this.EncodeType=="entity")
			s = this.NumericalToHTML(s);
	
		return s;					
	},

	
	XSSEncode : function(s,en)
	{
		if(!this.isEmpty(s))
		{
			en = en || true;
			if(en)
			{
				s = s.replace(/\'/g,"&#39;");
				s = s.replace(/\"/g,"&quot;");
				s = s.replace(/</g,"&lt;");
				s = s.replace(/>/g,"&gt;");
			}else{
				s = s.replace(/\'/g,"&#39;");
				s = s.replace(/\"/g,"&#34;");
				s = s.replace(/</g,"&#60;");
				s = s.replace(/>/g,"&#62;");
			}
			return s;
		}
		else
			return "";
	},

	hasEncoded : function(s)
	{
		if(/&#[0-9]{1,5};/g.test(s))
			return true;
		else if(/&[A-Z]{2,6};/gi.test(s))
			return true;
		else
			return false;
	},

	stripUnicode : function(s)
	{
		return s.replace(/[^\x20-\x7E]/g,"");
	},

	correctEncoding : function(s)
	{
		return s.replace(/(&amp;)(amp;)+/,"$1");
	},

	swapArrayVals : function(s,arr1,arr2)
	{
		if(this.isEmpty(s)) return "";
		var re;
		if(arr1 && arr2)
		{
			if(arr1.length == arr2.length)
			{
				for(var x=0,i=arr1.length;x<i;x++)
				{
					re = new RegExp(arr1[x], 'g');
					s = s.replace(re,arr2[x]);
				}
			}
		}
		return s;
	},

	inArray : function( item, arr )
	{
		for ( var i = 0, x = arr.length; i < x; i++ )
		{
			if ( arr[i] === item )
				return i;
		}
		return -1;
	}
}




//---------------------------------+
//  CARPE  S l i d e r        1.3  |
//  2005 - 12 - 10                 |
//  By Tom Hermansson Snickars     |
//  Copyright CARPE Design         |
//  http://carpe.ambiprospect.com/ |
//---------------------------------+
function carpeGetElementById(element)
{
	if (document.getElementById) element = document.getElementById(element);
	else if (document.all) element = document.all[element];
	else element = null;
	return element;
}


function carpeLeft(elmnt, pos)
{
	if (!(elmnt = carpeGetElementById(elmnt))) return 0;
	if (elmnt.style && (typeof(elmnt.style.left) == 'string')) {
		if (typeof(pos) == 'number') elmnt.style.left = pos + 'px';
		else {
			pos = parseInt(elmnt.style.left);
			if (isNaN(pos)) pos = 0;
		}
	}
	else if (elmnt.style && elmnt.style.pixelLeft) {
		if (typeof(pos) == 'number') elmnt.style.pixelLeft = pos;
		else pos = elmnt.style.pixelLeft;
	}
	return pos;
}


function carpeTop(elmnt, pos)
{
	if (!(elmnt = carpeGetElementById(elmnt))) return 0;
	if (elmnt.style && (typeof(elmnt.style.top) == 'string')) {
		if (typeof(pos) == 'number') elmnt.style.top = pos + 'px';
		else {
			pos = parseInt(elmnt.style.top);
			if (isNaN(pos)) pos = 0;
		}
	}
	else if (elmnt.style && elmnt.style.pixelTop) {
		if (typeof(pos) == 'number') elmnt.style.pixelTop = pos;
		else pos = elmnt.style.pixelTop;
	}
	return pos;
}


function moveSlider(evnt)
{
	var evnt = (!evnt) ? window.event : evnt;
	if (mouseover) {
		x = pxLeft + evnt.screenX - xCoord; 
		y = pxTop + evnt.screenY - yCoord; 
		if (x > xMax) x = xMax; 
		if (x < 0) x = 0;
		if (y > yMax) y = yMax;
		if (y < 0) y = 0;
		carpeLeft(sliderObj.id, x); 
		carpeTop(sliderObj.id, y);
		sliderVal = x + y;
		sliderPos = (sliderObj.pxLen / sliderObj.valCount) * Math.round(sliderObj.valCount * sliderVal / sliderObj.pxLen);
		v = Math.round((sliderPos * sliderObj.scale + sliderObj.fromVal) * 
			Math.pow(10, displayObj.dec)) / Math.pow(10, displayObj.dec);
		displayObj.value = v;
		return false;
	}
	return;
}


function slide(evnt, orientation, length, from, to, count, decimals, display)
{
	if (!evnt) evnt = window.event;
	sliderObj = (evnt.target) ? evnt.target : evnt.srcElement; 
	sliderObj.pxLen = length ;
	sliderObj.valCount = count ? count - 1 : length;
	displayObj = carpeGetElementById(display);
	displayObj.dec = decimals;
	sliderObj.scale = (to - from) / length;
	if (orientation == 'horizontal') { 
		sliderObj.fromVal = from;
		xMax = length;
		yMax = 0;
	}
	if (orientation == 'vertical') { 
		sliderObj.fromVal = to;
		xMax = 0;
		yMax = length;
		sliderObj.scale = -sliderObj.scale;
	}
	pxLeft = carpeLeft(sliderObj.id);
	pxTop  = carpeTop(sliderObj.id);
	xCoord = evnt.screenX;
	yCoord = evnt.screenY;
	mouseover = true;
	document.onmousemove = moveSlider;
	document.onmouseup = sliderMouseUp; 
}


function sliderMouseUp()
{
	mouseover = false;
	v = (displayObj.value) ? displayObj.value : 0;
	pos = (v - sliderObj.fromVal)/(sliderObj.scale);
	if (yMax == 0) carpeLeft(sliderObj.id, pos)
	if (xMax == 0) carpeTop(sliderObj.id, pos)
	if (document.removeEventListener) {
		document.removeEventListener('mousemove', moveSlider);
		document.removeEventListener('mouseup', sliderMouseUp);
	}
	else if (document.detachEvent) {
		document.detachEvent('onmousemove', moveSlider);
		document.detachEvent('onmouseup', sliderMouseUp);
	}
}


function slide2(evnt, orientation, length, from, to, count, decimals, display)
{
	if (!evnt) evnt = window.event;
	sliderObj = (evnt.target) ? evnt.target : evnt.srcElement;
	sliderObj.pxLen = length;
	sliderObj.valCount = count ? count - 1 : length;
	displayObj = carpeGetElementById(display);
	displayObj.dec = decimals;
	sliderObj.scale = (to - from) / length;
	if (orientation == 'horizontal') {
		sliderObj.fromVal = from;
		xMax = length;
		yMax = 0;
	}
	if (orientation == 'vertical') {
		sliderObj.fromVal = to;
		xMax = 0;
		yMax = length;
		sliderObj.scale = -sliderObj.scale;
	}
	pxLeft = carpeLeft(sliderObj.id);
	pxTop  = carpeTop(sliderObj.id);
	xCoord = evnt.screenX;
	yCoord = evnt.screenY;
	mouseover = true;
	document.onmousemove = moveSlider2;
	document.onmouseup = sliderMouseUp;
}


function moveSlider2(evnt)
{
	var evnt = (!evnt) ? window.event : evnt;
	if (mouseover) {
		x = pxLeft + evnt.screenX - xCoord;
		y = pxTop + evnt.screenY - yCoord;
		if (x > xMax) x = xMax;
		if (x < 0) x = 0;
		if (y > yMax) y = yMax;
		if (y < 0) y = 0;
		carpeLeft(sliderObj.id, x);
		carpeTop(sliderObj.id, y);
		sliderVal = x + y;
		sliderPos = (sliderObj.pxLen / sliderObj.valCount) * Math.round(sliderObj.valCount * sliderVal / sliderObj.pxLen);
		v = Math.round((sliderPos * sliderObj.scale + sliderObj.fromVal) * Math.pow(10, displayObj.dec)) / Math.pow(10, displayObj.dec);
		displayObj.value = v;

		LargCalc=document.forms['imagetag'].LargCalc.value;
		AltCalc=document.forms['imagetag'].AltCalc.value;
		ValoreLente=document.forms['imagetag'].Dimfoto.value;
		resizefoto(LargCalc, AltCalc, ValoreLente);
		return false;
	}
	return;
}



// Script for NiftyPlayer 1.7, by tvst from varal.org
// Released under the MIT License: http://www.opensource.org/licenses/mit-license.php
var FlashHelper = {
	movieIsLoaded : function (theMovie) {
		if (typeof(theMovie) != "undefined") return theMovie.PercentLoaded() == 100;
		else return false;
	},
	getMovie : function (movieName) {
		if (navigator.appName.indexOf ("Microsoft") !=-1) return window[movieName];
		else return document[movieName];
	}
};

function niftyplayer(name)
{
	this.obj = FlashHelper.getMovie(name);

	if (!FlashHelper.movieIsLoaded(this.obj)) return;

	this.play = function () {
		this.obj.TCallLabel('/','play');
	};

	this.stop = function () {
		this.obj.TCallLabel('/','stop');
	};

	this.pause = function () {
		this.obj.TCallLabel('/','pause');
	};

	this.playToggle = function () {
		this.obj.TCallLabel('/','playToggle');
	};

	this.reset = function () {
		this.obj.TCallLabel('/','reset');
	};

	this.load = function (url) {
		this.obj.SetVariable('currentSong', url);
		this.obj.TCallLabel('/','load');
	};

	this.loadAndPlay = function (url) {
		this.load(url);
		this.play();
	};

	this.getState = function () {
		var ps = this.obj.GetVariable('playingState');
		var ls = this.obj.GetVariable('loadingState');

		// returns
		//   'empty' if no file is loaded
		//   'loading' if file is loading
		//   'playing' if user has pressed play AND file has loaded
		//   'stopped' if not empty and file is stopped
		//   'paused' if file is paused
		//   'finished' if file has finished playing
		//   'error' if an error occurred
		if (ps == 'playing')
			if (ls == 'loaded') return ps;
			else return ls;

		if (ps == 'stopped')
			if (ls == 'empty') return ls;
			if (ls == 'error') return ls;
			else return ps;

		return ps;

	};

	this.getPlayingState = function () {
		// returns 'playing', 'paused', 'stopped' or 'finished'
		return this.obj.GetVariable('playingState');
	};

	this.getLoadingState = function () {
		// returns 'empty', 'loading', 'loaded' or 'error'
		return this.obj.GetVariable('loadingState');
	};

	this.registerEvent = function (eventName, action) {
		// eventName is a string with one of the following values: onPlay, onStop, onPause, onError, onSongOver, onBufferingComplete, onBufferingStarted
		// action is a string with the javascript code to run.
		//
		// example: niftyplayer('niftyPlayer1').registerEvent('onPlay', 'alert("playing!")');

		this.obj.SetVariable(eventName, action);
	};

	return this;
}

function EspandiListaMp3()
{
	document.getElementById('ElencoMp3').className="ElencoMp3Visibile";
}

function EspandiListaMp3Classe(Id)
{
	document.getElementById(Id).className="ElencoMp3Visibile";
}

function EspandiListaMp3Blog()
{
	document.getElementById('ElencoMp3').className="ElencoMp3BlogVisibile";
}

function CliudiListaMp3()
{
	document.getElementById('ElencoMp3').className="ElencoMp3Nascosto";
}






function tmicejvscript()
{
	//	invalid_elements : "a,div"
	tinyMCE.init({
		// General options
		mode : "textareas",
		theme : "advanced",
		plugins : "safari,advhr,emotions,searchreplace,nonbreaking,paste,fullscreen",

		// Theme options
		theme_advanced_buttons1 : "code,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontsizeselect,|,fullscreen",
		theme_advanced_buttons2 : "undo,redo,|,bullist,numlist,|,outdent,indent,blockquote,|,forecolor,backcolor,|,advhr,removeformat,|,charmap,emotions,|,search,replace",
		theme_advanced_buttons3 : "",
		convert_urls : false,
		paste_auto_cleanup_on_paste : true,
		paste_remove_spans: true,
		paste_remove_styles: true,
		paste_remove_styles_if_webkit: true,
		paste_convert_middot_lists : true,
		paste_strip_class_attributes : "all",
		paste_use_dialog : false,
		paste_convert_headers_to_strong : false,
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : false
	});
}





function linguaJs(valore)
{
	linguacc = new Array();
	if(LinguaSito=="ITA")
	{
		linguacc[0]="Il campo ";
		linguacc[1]=" &egrave; obbligatorio.";
		linguacc[2]=" non &egrave; corretto.";
		linguacc[3]="La lunghezza del campo ";
		linguacc[4]=" non deve superare i ";
		linguacc[5]=" caratteri.";
		linguacc[6]=" deve essere un numero.";
		linguacc[7]=" deve essere maggiore o uguale a ";
		linguacc[8]=" deve essere compilato.";
		linguacc[9]=" &egrave; precedente o uguale a ";
		linguacc[10]=" deve essere compresa tra i ";
		linguacc[11]=" e i ";
		linguacc[12]=" non ammette i caratteri ";
		linguacc[13]=" deve contenere almeno un numero.";
		linguacc[14]="I campi ";
		linguacc[15]=" e ";
		linguacc[16]=" non coincidono.";
		linguacc[17]="Deve assere compilato almeno un ";
		linguacc[18]="Deve assere compilata almeno una ";
		linguacc[19]=" non ammette caratteri speciali.";
		linguacc[20]=" devono essere diversi.";
		linguacc[21]=" per salvare."
		linguacc[22]=" per proseguire.";
		linguacc[23]="Devi selezionare la ";
		linguacc[24]=" dove inserire la news.";
		linguacc[25]="Possiedi un profilo nella sezione ";
		linguacc[26]=" Sicuro di volere creare un nuovo profilo?";
	}
	else
	{
		linguacc[0]="The field ";
		linguacc[1]=" is necessary.";
		linguacc[2]=" is not correct.";
		linguacc[3]="The field ";
		linguacc[4]="must be long maximum ";
		linguacc[5]=" characters.";
		linguacc[6]=" must be a number.";
		linguacc[7]=" must be highter or eqaul to ";
		linguacc[8]=" must be compiled.";
		linguacc[9]=" is before or oqual to ";
		linguacc[10]=" must be long between ";
		linguacc[11]=" and ";
		linguacc[12]=" desn't allow the characters ";
		linguacc[13]="must contain at least one number.";
		linguacc[14]="The fields ";
		linguacc[15]=" and ";
		linguacc[16]=" are different.";
		linguacc[17]="You have to compile at least one ";
		linguacc[18]="You have to compile at least one ";
		linguacc[19]=" does not allow special characters.";
		linguacc[20]=" must be diffrent.";
		linguacc[21]=" to can save."
		linguacc[22]=" to continue.";
		linguacc[23]="You must select the ";
		linguacc[24]=" where to post the news.";
		linguacc[25]="You already have a profile in the section "
		linguacc[26]=" Do you really want to create a new Profile?";
	}
	return linguacc[valore];	
}


function linguaCampi(valore)
{
	linguacc = new Array();
	if(LinguaSito=="ITA")
	{
		linguacc[0]="Si";
		linguacc[1]="No";
		linguacc[2]="Devi accettare ";
		linguacc[3]="Le condizioni";
		linguacc[4]=" di Ur Jobby per proseguire.";
		linguacc[5]="Pubblicare l\'annuncio ?";
		linguacc[6]="Ripubblicare l\'annuncio ?";
		linguacc[7]="Devi prima creare un annuncio.";
		linguacc[8]="Devi selezionare un' immagine per procedere.";
		linguacc[9]="Caricamento pagina in corso.<br/><br/>Riprova tra qualche secondo.";
		linguacc[10]="E-MAIL";
		linguacc[11]="Messaggio";
		linguacc[12]="Link";
		linguacc[13]="Link immagine";
		linguacc[14]="Descrizione abuso";
		linguacc[15]="Soggetto";
		linguacc[16]="Sezione";
		linguacc[17]="Tipo";
		linguacc[18]="Nome gruppo";
		linguacc[19]="Nome profilo";
		linguacc[20]="Descrizione";
		linguacc[21]="Nome link";
		linguacc[22]="Cambia stato curriculum";
		linguacc[23]="Stato";
		linguacc[24]="In esame";
		linguacc[25]="Finalista";
		linguacc[26]="Confermato";
		linguacc[27]="Scartato";
		linguacc[28]="Cambia stato";
		linguacc[29]="Curriculum gi&agrave; nello stato selezionato.";
		linguacc[30]="Stato cambiato correttamente.";
		linguacc[31]="Stai per rispondere ad un annuncio di lavoro attraverso uno degli strumenti gratuiti che Ur Jobby mette a tua disposizione.";
		linguacc[32]="Rispondere ad un annuncio di lavoro significa inviare il tuo curriculum vitae e condividere le tue informazioni personali.";
		linguacc[33]="Per continuare devi accettare di condividere le tue informazioni personali con il responsabile dell\'annuncio di lavoro.";
		linguacc[34]=" Accetto ";
		linguacc[35]=" Abilita account a rispondere offerte di lavoro ";
		linguacc[36]="Rispondere all\'annuncio ?";
		linguacc[37]="Pdf curriculum non ancora salvato.";
		linguacc[38]="Curriculum inviato correttamente.";
		linguacc[39]="Eliminare l\'annuncio ?";
		linguacc[40]="Attenzione: modifiche non salvate. Proseguire ugualmente ?";
		linguacc[41]="Attenzione, devi modificare qualcosa prima di salvare.";
		linguacc[42]="Date";
		linguacc[43]="Titolo";
		linguacc[44]="Mod";
		linguacc[45]="Canc";
		linguacc[46]="Devi confermare le modifiche in corso per salvare.";
		linguacc[47]="Devi confermare le modifiche in corso.";
		linguacc[48]="Titolo di studio";
		linguacc[49]="Lingua";
		linguacc[50]="Esperienza lavorativa";
		linguacc[51]="Parlato";
		linguacc[52]="Scritto";
		linguacc[53]="Lettura";
		linguacc[54]="Posto di lavoro";
		linguacc[55]="Azienda";
		linguacc[56]="ad oggi";
		linguacc[57]="Cliccare per applicare";
		linguacc[58]="Sposta Tag";
		linguacc[59]="Ridimensiona tag";
		linguacc[60]="Devi prima confermare il Tag corrente";
		linguacc[61]="Devi ancora scegliere un amico o compilare il campo testo";
		linguacc[62]="Il link inserito non  e\' corretto";
		linguacc[63]="Devi creare almeno un Tag prima di salvare";
		linguacc[64]="Modifica tag";
		linguacc[65]="Elimina tag";
		linguacc[66]="Tag confermato";
		linguacc[67]="Ur Jobby segnalazione abuso";
		linguacc[68]="Invia";
		linguacc[69]="Ur Jobby contatto via e-mail";
		linguacc[70]="La tua e-mail";
		linguacc[71]="Ur Jobby contatto per richiesta informazini";
		linguacc[72]="E-mail mittente: ";
		linguacc[73]="Manda un messaggio";
		linguacc[74]="Richiedi Amicizia";
		linguacc[75]="Rimuovi dagli amici";
		linguacc[76]="Amicizia in attesa";
		linguacc[77]="Profili personali";
		linguacc[78]="Utente";
		linguacc[79]="Inviare richiesta di amicizia";
		linguacc[80]="Rimuovere dagli amici";
		linguacc[81]="Accesso libero";
		linguacc[82]="Tipo profilo";
		linguacc[83]="Privato";
		linguacc[84]="Negozio";
		linguacc[85]="Agenzia";
		linguacc[86]="Associazione";
		linguacc[87]="Professionista";
		linguacc[88]="Modifica";
		linguacc[89]="Immagine di sfondo";
		linguacc[90]="Commenti";
		linguacc[91]="Elimina";
		linguacc[92]="Clicca per scegliere ";
		linguacc[93]="Eliminare ";
		linguacc[94]="Parole chiave";
		linguacc[95]="Nota";
		linguacc[96]="Eliminare la foto selezionata";
		linguacc[97]="Usa i tag speciali [imgxp] [/imgxp]. Esempio: ";
		linguacc[98]="Posiziona marker sulla mappa";
		linguacc[99]="Nessun indirizzo inserito";
		linguacc[100]="Devi prima cambiare indirizzo";
		linguacc[101]="Hai effettuato troppe richeste. Sposta il marker manualmente";
		linguacc[102]="Geocode non &egrave; andato a buon fine per la seguente ragione: ";
		linguacc[103]="Distanza totale: ";
		linguacc[104]="Indirizzo di partenza";
		linguacc[105]="Imposta indirizzo";
		linguacc[106]="Calcola percorso";
		linguacc[107]="Nome categoria";
		linguacc[108]="Categoria di riferimento";
		linguacc[109]="Tipo di vetrina";
		linguacc[110]="Tipo di importazione";
		linguacc[111]="Nominativo";
		linguacc[112]="Telefono";
		linguacc[113]="Link Annuncio ";
		linguacc[114]="Estrazione dati. Attendere.";
		linguacc[115]="Elaborazione dati. Attendere";
		linguacc[116]=" alla ";
		linguacc[117]="Attendere";
		linguacc[118]="Attenzione! Si e\' verificato un errore imprevisto!";
	}
	else
	{
		linguacc[0]="Yes";
		linguacc[1]="No";
		linguacc[2]="You have to accept ";
		linguacc[3]="The conditions";
		linguacc[4]=" of Ur Jobby to can continue.";	
		linguacc[5]="Publish the announce ?";
		linguacc[6]="Republish the announce ?";
		linguacc[7]="You have to create an announce before.";
		linguacc[8]="You have to select an image to go on.";
		linguacc[9]="Loading page in progress.<br/><br/>Try again in few seconds.";
		linguacc[10]="E-MAIL";
		linguacc[11]="Message";
		linguacc[12]="Link";
		linguacc[13]="Image link";
		linguacc[14]="Abuse description";
		linguacc[15]="Subject";
		linguacc[16]="Section";
		linguacc[17]="Type";
		linguacc[18]="Group name";
		linguacc[19]="Profile name";
		linguacc[20]="Description";
		linguacc[21]="Link name";
		linguacc[22]="Change curriculum state";
		linguacc[23]="State";
		linguacc[24]="On exame";
		linguacc[25]="Finalist";
		linguacc[26]="Confirmed";
		linguacc[27]="Discarded";
		linguacc[28]="Change state";
		linguacc[29]="Curriculum just on the selected state.";
		linguacc[30]="State correctly changed.";
		linguacc[31]="You are going to answer to a job announce through one of the free tools that Ur Jobby puts at your disposal.";
		linguacc[32]="Answer to a job announce means sending your curriculum vitae and share your personal information.";
		linguacc[33]="To continue you must agree to share your personal information with the owner of the job announcements.";
		linguacc[34]=" I accept ";
		linguacc[35]=" Enable Account to answer job announcements ";
		linguacc[36]="Answer to the announce ?";
		linguacc[37]="Pdf curriculum not yet saved.";
		linguacc[38]="Curridulum correctly sent.";
		linguacc[39]="Delete the announce ?";
		linguacc[40]="Attention: changes not saved. Continue anyway ?";
		linguacc[41]="Attention, you have to modify something before to save.";
		linguacc[42]="Dates";
		linguacc[43]="Title";
		linguacc[44]="Edit";
		linguacc[45]="Del";
		linguacc[46]="You have to confirm the current modify to can save.";
		linguacc[47]="You have to confirm the current modify before.";
		linguacc[48]="Title of study";
		linguacc[49]="Language";
		linguacc[50]="Working experience";
		linguacc[51]="Spoken";
		linguacc[52]="Written";
		linguacc[53]="Reading";
		linguacc[54]="Working place";
		linguacc[55]="Company";
		linguacc[56]="to today";
		linguacc[57]="Click to apply";
		linguacc[58]="Move tag";
		linguacc[59]="Resize tag";
		linguacc[60]="You must confirm the current Tag before to continue";
		linguacc[61]="You must choose a friend or to compile the text field";
		linguacc[62]="The inserted link is not correct";
		linguacc[63]="You must create al least one Tag before to save";
		linguacc[64]="Edit tag";
		linguacc[65]="Delete tag";
		linguacc[66]="Confirmed tag";
		linguacc[67]="Ur Jobby report abuse";
		linguacc[68]="Send";
		linguacc[69]="Ur Jobby e-mail contact";
		linguacc[70]="Your e-mail";
		linguacc[71]="Ur Jobby informations request contact";
		linguacc[72]="Sender E-mail: ";
		linguacc[73]="Send a message";
		linguacc[74]="Ask for friendship";
		linguacc[75]="Remove from friends";
		linguacc[76]="Waiting for friendship";
		linguacc[77]="Personal profiles";
		linguacc[78]="User";
		linguacc[79]="Send friendship request";
		linguacc[80]="Delete from friends";
		linguacc[81]="Free access";
		linguacc[82]="Profile type";
		linguacc[83]="Private";
		linguacc[84]="Shop";
		linguacc[85]="Agency";
		linguacc[86]="Association";
		linguacc[87]="Professional";
		linguacc[88]="Edit";
		linguacc[89]="Background image";
		linguacc[90]="Comments";
		linguacc[91]="Delete";
		linguacc[92]="Click to choose ";
		linguacc[93]="Delete ";
		linguacc[94]="Keywords";
		linguacc[95]="Note";
		linguacc[96]="Delete the selected photo";
		linguacc[97]="Usa special tag [imgxp] [/imgxp]. Example: ";
		linguacc[98]="Place marker on the map";
		linguacc[99]="No address entered";
		linguacc[100]="You must first change your address";
		linguacc[101]="You have made too many request. Move the marker manually";
		linguacc[102]="Geocode was not successful for the following reason: ";
		linguacc[103]="Total distance: ";
		linguacc[104]="Starting address";
		linguacc[105]="Set address";
		linguacc[106]="Calculate route";
		linguacc[107]="Category name";
		linguacc[108]="Reference category";
		linguacc[109]="Showcase type";
		linguacc[110]="Import type";
		linguacc[111]="Nominative";
		linguacc[112]="Telephone";
		linguacc[113]="Ad Link ";
		linguacc[114]="Data Extraction in progress. Wait.";
		linguacc[115]="Data Processing in process. Wait. ";
		linguacc[116]=" to ";
		linguacc[117]="Wait";
		linguacc[118]="Warning! An unexpected error occurred!";
	
	}
	return linguacc[valore];	
}


function generaMarkerCluster(ujmarkers) {
	var markerclusterer = new MarkerClusterer(map, ujmarkers, {"maxZoom":13, "zoomOnClick": true});
}

//MARKER CLUSTER GOOGLE MAPS  http://google-maps-utility-library-v3.googlecode.com/svn/tags/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('4 H(b,a){b.16().X(H,o.n.2R);3.G=b;3.S=a;3.u=z;3.p=z;3.1G=z;3.1f=t;3.I(b.v())}H.5.2E=4(){7 c=3;3.p=48.3T("1N");8(3.1f){3.1M()}3.3o().3h.50(3.p);o.n.A.23(3.p,"2Z",4(){7 b=c.G.16();o.n.A.1b(b,"2Z",c.G);o.n.A.1b(b,"4x",c.G);7 a=b.1w();8(b.2P()){b.v().2N(c.G.1x());8(a&&(b.v().1T()>a)){b.v().4j(a+1)}}});o.n.A.23(3.p,"2G",4(){7 a=c.G.16();o.n.A.1b(a,"2G",c.G)});o.n.A.23(3.p,"2D",4(){7 a=c.G.16();o.n.A.1b(a,"2D",c.G)})};H.5.2A=4(){8(3.p&&3.p.2y){3.1v();o.n.A.47(3.p);3.p.2y.3X(3.p);3.p=z}};H.5.2m=4(){8(3.1f){7 a=3.1K(3.u);3.p.U.1q=a.y+"w";3.p.U.1t=a.x+"w"}};H.5.1v=4(){8(3.p){3.p.U.2i="2z"}3.1f=t};H.5.1M=4(){8(3.p){7 a=3.1K(3.u);3.p.U.3g=3.2o(a);8(3.G.T){3.p.38="<4P 4M=\'"+3.22+"\'><1N U=\'1Z: 2W; 1q: 2V; 1t: 2V; 1a: "+3.13+"w;\'>"+3.1G.19+"</1N>"}C{3.p.38=3.1G.19}3.p.2Q=3.G.16().3a();3.p.U.2i=""}3.1f=L};H.5.2O=4(a){3.1G=a;7 b=s.4k(0,a.2L-1);b=s.1V(3.S.k-1,b);7 c=3.S[b];3.22=c.1Y;3.M=c.V;3.13=c.1a;3.E=c.4i;3.2F=c.4f||"4d";3.2B=c.4b||11;3.2w=c.4a||"2z";3.2t=c.46||"44";3.2q=c.3W||"3S";3.2k=c.3O||"3H,3F-3E";3.2d=c.3C||"0 0"};H.5.2b=4(a){3.u=a};H.5.2o=4(b){7 a=[];8(!3.G.T){a.F(\'2c-3v:1Y(\'+3.22+\');\');a.F(\'2c-1Z:\'+3.2d+\';\')}8(1s 3.E===\'3s\'){8(1s 3.E[0]===\'2j\'&&3.E[0]>0&&3.E[0]<3.M){a.F(\'V:\'+(3.M-3.E[0])+\'w; 2h-1q:\'+3.E[0]+\'w;\')}C{a.F(\'V:\'+3.M+\'w; 29-V:\'+3.M+\'w;\')}8(1s 3.E[1]===\'2j\'&&3.E[1]>0&&3.E[1]<3.13){a.F(\'1a:\'+(3.13-3.E[1])+\'w; 2h-1t:\'+3.E[1]+\'w;\')}C{a.F(\'1a:\'+3.13+\'w; 19-2n:18;\')}}C{a.F(\'V:\'+3.M+\'w; 29-V:\'+3.M+\'w; 1a:\'+3.13+\'w; 19-2n:18;\')}a.F(\'3i:3f; 1q:\'+b.y+\'w; 1t:\'+b.x+\'w; 3e:\'+3.2F+\'; 1Z:2W; 1H-1e:\'+3.2B+\'w; 1H-4Y:\'+3.2k+\'; 1H-4W:\'+3.2t+\'; 1H-U:\'+3.2q+\'; 19-4S:\'+3.2w+\';\');9 a.4O("")};H.5.1K=4(b){7 a=3.36().24(b);a.x-=28(3.13/2,10);a.y-=28(3.M/2,10);9 a};4 B(a){3.Y=a;3.Q=a.v();3.N=a.2U();3.12=a.2S();3.14=a.2T();3.T=a.32();3.j=[];3.u=z;3.21=z;3.Z=K H(3,a.25())}B.5.4p=4(){9 3.j.k};B.5.1E=4(){9 3.j};B.5.39=4(){9 3.u};B.5.v=4(){9 3.Q};B.5.16=4(){9 3.Y};B.5.1x=4(){7 i;7 b=K o.n.1A(3.u,3.u);7 a=3.1E();q(i=0;i<a.k;i++){b.X(a[i].P())}9 b};B.5.1z=4(){3.Z.I(z);3.j=[];1X 3.j};B.5.1y=4(d){7 i;7 b;8(3.2M(d)){9 t}8(!3.u){3.u=d.P();3.1W()}C{8(3.14){7 l=3.j.k+1;7 a=(3.u.O()*(l-1)+d.P().O())/l;7 c=(3.u.17()*(l-1)+d.P().17())/l;3.u=K o.n.1U(a,c);3.1W()}}d.1j=L;3.j.F(d);b=3.j.k;8(3.Q.1T()>3.Y.1w()){8(d.v()!==3.Q){d.I(3.Q)}}C 8(b<3.12){8(d.v()!==3.Q){d.I(3.Q)}}C 8(b===3.12){q(i=0;i<b;i++){3.j[i].I(z)}}C{d.I(z)}3.2K();9 L};B.5.2J=4(a){9 3.21.2I(a.P())};B.5.1W=4(){7 a=K o.n.1A(3.u,3.u);3.21=3.Y.20(a)};B.5.2K=4(){7 b=3.j.k;8(3.Q.1T()>3.Y.1w()){3.Z.1v();9}8(b<3.12){3.Z.1v();9}7 a=3.Y.25().k;7 c=3.Y.2H()(3.j,a);3.Z.2b(3.u);3.Z.2O(c);3.Z.1M()};B.5.2M=4(a){7 i;8(3.j.1i){9 3.j.1i(a)!==-1}C{q(i=0;i<3.j.k;i++){8(a===3.j[i]){9 L}}}9 t};4 6(a,c,b){3.X(6,o.n.2R);c=c||[];b=b||{};3.j=[];3.D=[];3.1h=[];3.1F=z;3.1g=t;3.N=b.4h||4g;3.12=b.4e||2;3.1R=b.2C||z;3.S=b.4c||[];3.1Q=b.2Q||"";3.1D=L;8(b.34!==1m){3.1D=b.34}3.14=t;8(b.2x!==1m){3.14=b.2x}3.15=t;8(b.2v!==1m){3.15=b.2v}3.T=t;8(b.2u!==1m){3.T=b.2u}3.1u=b.49||6.2s;3.1o=b.45||6.2r;3.1d=b.42||6.2p;3.1I=b.3U||6.2a;3.1n=b.3Q||6.2l;8(3P.3L.3K().1i("3G")!==-1){3.1L=3.1n}C{3.1L=6.2g}3.2f();3.2e(c,L);3.I(a)}6.5.2E=4(){7 a=3;3.1F=3.v();3.1g=L;3.1k();3.1h=[o.n.A.1O(3.v(),"3D",4(){a.1p(t)}),o.n.A.1O(3.v(),"3B",4(){a.1c()})]};6.5.2A=4(){7 i;q(i=0;i<3.j.k;i++){3.j[i].I(3.1F)}q(i=0;i<3.D.k;i++){3.D[i].1z()}3.D=[];q(i=0;i<3.1h.k;i++){o.n.A.3A(3.1h[i])}3.1h=[];3.1F=z;3.1g=t};6.5.2m=4(){};6.5.2f=4(){7 i,1e;8(3.S.k>0){9}q(i=0;i<3.1d.k;i++){1e=3.1d[i];3.S.F({1Y:3.1u+(i+1)+"."+3.1o,V:1e,1a:1e})}};6.5.3z=4(){7 i;7 a=3.1E();7 b=K o.n.1A();q(i=0;i<a.k;i++){b.X(a[i].P())}3.v().2N(b)};6.5.2U=4(){9 3.N};6.5.3y=4(a){3.N=a};6.5.2S=4(){9 3.12};6.5.3x=4(a){3.12=a};6.5.1w=4(){9 3.1R||3.v().3w[3.v().3I()].2C};6.5.3J=4(a){3.1R=a};6.5.25=4(){9 3.S};6.5.3u=4(a){3.S=a};6.5.3a=4(){9 3.1Q};6.5.3t=4(a){3.1Q=a};6.5.2P=4(){9 3.1D};6.5.3M=4(a){3.1D=a};6.5.2T=4(){9 3.14};6.5.3N=4(a){3.14=a};6.5.3r=4(){9 3.15};6.5.3q=4(a){3.15=a};6.5.3p=4(){9 3.1o};6.5.3R=4(a){3.1o=a};6.5.3n=4(){9 3.1u};6.5.3m=4(a){3.1u=a};6.5.3l=4(){9 3.1d};6.5.3V=4(a){3.1d=a};6.5.2H=4(){9 3.1I};6.5.3k=4(a){3.1I=a};6.5.32=4(){9 3.T};6.5.3j=4(a){3.T=a};6.5.3Y=4(){9 3.1n};6.5.3Z=4(a){3.1n=a};6.5.1E=4(){9 3.j};6.5.40=4(){9 3.j.k};6.5.41=4(){9 3.D.k};6.5.1y=4(b,a){3.1P(b);8(!a){3.1c()}};6.5.2e=4(b,a){7 i;q(i=0;i<b.k;i++){3.1P(b[i])}8(!a){3.1c()}};6.5.1P=4(b){8(b.43()){7 a=3;o.n.A.1O(b,"3d",4(){8(a.1g){3.1j=t;a.1k()}})}b.1j=t;3.j.F(b)};6.5.3c=4(c,a){7 b=3.1J(c);8(!a&&b){3.1k()}9 b};6.5.3b=4(a,c){7 i,r;7 b=t;q(i=0;i<a.k;i++){r=3.1J(a[i]);b=b||r}8(!c&&b){3.1k()}9 b};6.5.1J=4(b){7 i;7 a=-1;8(3.j.1i){a=3.j.1i(b)}C{q(i=0;i<3.j.k;i++){8(b===3.j[i]){a=i;4X}}}8(a===-1){9 t}b.I(z);3.j.4U(a,1);9 L};6.5.4T=4(){3.1p(L);3.j=[]};6.5.1k=4(){7 a=3.D.4Q();3.D=[];3.1p(t);3.1c();37(4(){7 i;q(i=0;i<a.k;i++){a[i].1z()}},0)};6.5.20=4(d){7 f=3.36();7 c=K o.n.1U(d.27().O(),d.27().17());7 a=K o.n.1U(d.26().O(),d.26().17());7 e=f.24(c);e.x+=3.N;e.y-=3.N;7 g=f.24(a);g.x-=3.N;g.y+=3.N;7 b=f.35(e);7 h=f.35(g);d.X(b);d.X(h);9 d};6.5.1c=4(){3.1S(0)};6.5.1p=4(a){7 i,J;q(i=0;i<3.D.k;i++){3.D[i].1z()}3.D=[];q(i=0;i<3.j.k;i++){J=3.j[i];J.1j=t;8(a){J.I(z)}}};6.5.33=4(b,e){7 R=4L;7 g=(e.O()-b.O())*s.1C/1B;7 f=(e.17()-b.17())*s.1C/1B;7 a=s.1r(g/2)*s.1r(g/2)+s.31(b.O()*s.1C/1B)*s.31(e.O()*s.1C/1B)*s.1r(f/2)*s.1r(f/2);7 c=2*s.4K(s.30(a),s.30(1-a));7 d=R*c;9 d};6.5.2Y=4(b,a){9 a.2I(b.P())};6.5.2X=4(c){7 i,d,W,18;7 a=4I;7 b=z;q(i=0;i<3.D.k;i++){W=3.D[i];18=W.39();8(18){d=3.33(18,c.P());8(d<a){a=d;b=W}}}8(b&&b.2J(c)){b.1y(c)}C{W=K B(3);W.1y(c);3.D.F(W)}};6.5.1S=4(e){7 i,J;7 c=3;8(!3.1g){9}8(e===0){o.n.A.1b(3,"4H",3);8(1s 3.1l!=="1m"){4G(3.1l);1X 3.1l}}7 d=K o.n.1A(3.v().1x().26(),3.v().1x().27());7 a=3.20(d);7 b=s.1V(e+3.1L,3.j.k);q(i=e;i<b;i++){J=3.j[i];8(!J.1j&&3.2Y(J,a)){8(!3.15||(3.15&&J.4F())){3.2X(J)}}}8(b<3.j.k){3.1l=37(4(){c.1S(b)},0)}C{1X 3.1l;o.n.A.1b(3,"4E",3)}};6.5.X=4(d,c){9(4(b){7 a;q(a 4D b.5){3.5[a]=b.5[a]}9 3}).4C(d,[c])};6.2a=4(a,b){7 e=0;7 c=a.k.4B();7 d=c;4A(d!==0){d=28(d/10,10);e++}e=s.1V(e,b);9{19:c,2L:e}};6.2g=4z;6.2l=4y;6.2s="4J://o-n-4w-4v-4u.4N.4t/4s/4r/4R/4q/m";6.2r="4o";6.2p=[4V,4n,4m,4l,4Z];',62,311,'|||this|function|prototype|MarkerClusterer|var|if|return||||||||||markers_|length|||maps|google|div_|for||Math|false|center_|getMap|px|||null|event|Cluster|else|clusters_|anchor_|push|cluster_|ClusterIcon|setMap|marker|new|true|height_|gridSize_|lat|getPosition|map_||styles_|printable_|style|height|cluster|extend|markerClusterer_|clusterIcon_|||minClusterSize_|width_|averageCenter_|ignoreHidden_|getMarkerClusterer|lng|center|text|width|trigger|redraw_|imageSizes_|size|visible_|ready_|listeners_|indexOf|isAdded|repaint|timerRefStatic|undefined|batchSizeIE_|imageExtension_|resetViewport_|top|sin|typeof|left|imagePath_|hide|getMaxZoom|getBounds|addMarker|remove|LatLngBounds|180|PI|zoomOnClick_|getMarkers|activeMap_|sums_|font|calculator_|removeMarker_|getPosFromLatLng_|batchSize_|show|div|addListener|pushMarkerTo_|title_|maxZoom_|createClusters_|getZoom|LatLng|min|calculateBounds_|delete|url|position|getExtendedBounds|bounds_|url_|addDomListener|fromLatLngToDivPixel|getStyles|getSouthWest|getNorthEast|parseInt|line|CALCULATOR|setCenter|background|backgroundPosition_|addMarkers|setupStyles_|BATCH_SIZE|padding|display|number|fontFamily_|BATCH_SIZE_IE|draw|align|createCss|IMAGE_SIZES|fontStyle_|IMAGE_EXTENSION|IMAGE_PATH|fontWeight_|printable|ignoreHidden|textDecoration_|averageCenter|parentNode|none|onRemove|textSize_|maxZoom|mouseout|onAdd|textColor_|mouseover|getCalculator|contains|isMarkerInClusterBounds|updateIcon_|index|isMarkerAlreadyAdded_|fitBounds|useStyle|getZoomOnClick|title|OverlayView|getMinimumClusterSize|getAverageCenter|getGridSize|0px|absolute|addToClosestCluster_|isMarkerInBounds_|click|sqrt|cos|getPrintable|distanceBetweenPoints_|zoomOnClick|fromDivPixelToLatLng|getProjection|setTimeout|innerHTML|getCenter|getTitle|removeMarkers|removeMarker|dragend|color|pointer|cssText|overlayMouseTarget|cursor|setPrintable|setCalculator|getImageSizes|setImagePath|getImagePath|getPanes|getImageExtension|setIgnoreHidden|getIgnoreHidden|object|setTitle|setStyles|image|mapTypes|setMinimumClusterSize|setGridSize|fitMapToMarkers|removeListener|idle|backgroundPosition|zoom_changed|serif|sans|msie|Arial|getMapTypeId|setMaxZoom|toLowerCase|userAgent|setZoomOnClick|setAverageCenter|fontFamily|navigator|batchSizeIE|setImageExtension|normal|createElement|calculator|setImageSizes|fontStyle|removeChild|getBatchSizeIE|setBatchSizeIE|getTotalMarkers|getTotalClusters|imageSizes|getDraggable|bold|imageExtension|fontWeight|clearInstanceListeners|document|imagePath|textDecoration|textSize|styles|black|minimumClusterSize|textColor|60|gridSize|anchor|setZoom|max|78|66|56|png|getSize|images|trunk|svn|com|v3|library|utility|clusterclick|500|2000|while|toString|apply|in|clusteringend|getVisible|clearTimeout|clusteringbegin|40000|http|atan2|6371|src|googlecode|join|img|slice|markerclustererplus|decoration|clearMarkers|splice|53|weight|break|family|90|appendChild'.split('|'),0,{}))

