function clsPersone(userId, nome, cognome, email, negozio, scheda, foto, colore, banner)
{
 this.userId  = userId;
 this.nome    = nome;
 this.cognome = cognome;
 this.email   = email;
 this.negozio = negozio;
 this.scheda  = scheda;
 this.foto    = foto;
 this.colore  = colore;
 this.banner  = banner;
};


//-------------------------------------------------------------------------------

function scheda(i)
{
//funzione che visualizza la scheda attivista nella popup
var strHTML = ''; //html creato dinamicamente
var strMail = ''; //indirizzo mail

//posizione di comparsa del layer contenente la scheda attivista

/*
var y
if (window.event.clientY)
	y = window.event.clientY
else
	y = 0;

if (y<300)
	y = 300;

*/
document.all.spScheda.style.marginTop = 120;



//creazione della scheda

document.all.divPopupTitle.innerHTML = aPersone[i].nome + ' ' + aPersone[i].cognome;

strHTML += aPersone[i].scheda;
strHTML += '<br><br>';
strHTML += 'Puoi contattarmi' + 
		   ' presso il negozio di ' + aPersone[i].negozio + 
		   ' oppure per eMail cliccando sulla mia foto';

document.all.divPopupBody.innerHTML = strHTML;

strHTML = '';

if (aPersone[i].foto.length>0)
	{

	if (aPersone[i].negozio == 'Lerici')
		{
		strMail = 'equodelmare.lerici@magazzinidelmondo.it';
		}
	else
		{
		strMail = 'info@magazzinidelmondo.it';
		};

	strHTML += '<a href="mailto:' + strMail + '?subject=all\'attenzione di ' + aPersone[i].nome + ' ' + aPersone[i].cognome +'">';
	strHTML +=		'<img src="' + aPersone[i].foto + '" width=75 border=0>';
	strHTML += '</a>';
	}
else
	 strHTML += '<img src="img/magamondosmall.gif" width=75>';

document.all.divPopupImg.innerHTML = strHTML;

//formattazione grafica
var banner;
if (aPersone[i].banner.length==0)
	banner = "img/menuscuro.gif"
else
	banner = aPersone[i].banner;

document.all.tdTitle1.background = banner;
document.all.tdTitle2.background = banner;
document.all.tdTitle3.background = banner;
document.all.tdTitle4.background = banner;

/*
// psa 27082003: con IE6 questa parte fa casino

var colore;
if (aPersone[i].colore.length == 0)
	colore = "#55AA88";
else
	colore = aPersone[i].colore

document.all.divPopupBody.style.color = colore;

document.all.tblScheda.style.borderBottomColor = colore;
document.all.tblScheda.style.borderTopColor    = colore;
document.all.tblScheda.style.borderLeftColor   = colore;
document.all.tblScheda.style.borderRightColor  = colore;
*/

document.all.spScheda.style.visibility='visible';


};
//-------------------------------------------------------------------------------

function chiudiPopup ()
{
//funzione che chiude la popup contenente la scheda attivista

document.all.spScheda.style.visibility='hidden';

};
//-------------------------------------------------------------------------------
