/*********************************************************************************************************
COLLEZIONE JAVASCRIPT AD USO DI MASSIMILIANO CARRARA
Tutti i diritti sono riservati!!
**********************************************************************************************************/
//scrivo una volta sola la mail valida per tutto il sito!!
function getMail(){
	var mail="max."+"carrar"+"a&#64;emai"+"l.it";
	return mail;
}

//---------------------------------------------------------------------------------------------------------
// ------------------------ FUNZIONE EMAIL WEBMASTER INVISIBILE -------------------------------------------
//---------------------------------------------------------------------------------------------------------
/*  Uso: <script language="javascript">scriviMail();</script> */
function scriviMail(mess){
//	var mess="webmaster";
	var mail=getMail();
	document.write ('<A HREF="mailto:');
	document.write (mail);	
	document.write ('">');
	document.write (mess);	
	document.write ('</A>');	
}

//---------------------------------------------------------------------------------------------------------
// ------------------------ FUNZIONE TESTO SCORREVOLE SULLA BARRA -----------------------------------------
//---------------------------------------------------------------------------------------------------------
//dichiarazione variabili

var messaggio="ciclimaffioletti.com - Il portale del ciclista";
var vel=100; 	//velocità di scorrimento: maggiore è il num e piu va piano
var lentxt=messaggio.length;
var width=100;
var pos=1-width;

function TestoScorrevole() {
  pos++;
  var scroller="";
  if (pos==lentxt) {
    pos=1-width;
  }
  if (pos<0) {
    for (var i=1; i<=Math.abs(pos); i++) {
      scroller=scroller+" ";}
    scroller=scroller+messaggio.substring(0,width-i+1);
  }
  else {
    scroller=scroller+messaggio.substring(pos,width+pos);
  }
  window.status = scroller;
  setTimeout("TestoScorrevole()",vel);
  }



//---------------------------------------------------------------------------------------------------------
// ------------------------ FUNZIONI PER IL MENU GRAFICO PER CAMBIARE SFONOD ALLE CELLE -----------------------------------------
//---------------------------------------------------------------------------------------------------------
function LmOver(elem, clr)
{elem.style.backgroundColor = clr;
elem.children.tags('A')[0].style.color = "#7D3F00";
elem.style.cursor = 'hand'}

function LmOut(elem, clr)
{elem.style.backgroundColor = clr;
elem.children.tags('A')[0].style.color = "#FFFFC1";}

function LmDown(elem, clr)
{elem.style.backgroundColor = clr;
elem.children.tags('A')[0].style.color = "#7D3F00";}

function LmUp(path)
{location.href = path;}



//---------------------------------------------------------------------------------------------------------
// ------------------------ FUNZIONE ERRORI -----------------------------------------
//---------------------------------------------------------------------------------------------------------







