/* author: mister */

/* Generated by AceHTML Freeware http://freeware.acehtml.com */

/* Creation date: 31/07/2006 */



//gestisce il menu laterale

//funzioni dell'orologio

function startTime()
{

var today=new Date()

var h=today.getHours()

var m=today.getMinutes()

var s=today.getSeconds()

// add a zero in front of numbers<10

m=checkTime(m)

s=checkTime(s)

document.getElementById('txt').innerHTML=h+":"+m+":"+s

t=setTimeout('startTime()',500)

}
function checkTime(i)

{

if (i<10)

  {i="0" + i}

  return i

}

// codice per la gestione della scritta sulla barra di stato

timeID = 5;

stcnt = 11;

msg = "<<Devaki Grafica benvenuto/a e grazie per la visita>>";

wmsg = new Array(33);

wmsg[0] = msg;

blnk = "                                                               ";

for (i = 1; i < 32; i++) {

b = blnk.substring(0, i);

wmsg[i] = "";

for (j = 0; j < msg.length; j++) wmsg[i] = wmsg[i] + msg.charAt(j) + b;

}

function wiper() {

if (stcnt > -1) str = wmsg[stcnt];

else str = wmsg[0];

if (stcnt-- < -40) stcnt = 31;

status = str;

clearTimeout(timeID);

timeID = setTimeout("wiper()", 150);

}



   //codice cambia immagine del menù
   function cambiaImgIn1()
   {
     var img1=new Image();
     document.images[0].src="immaginisito/homeg.jpg";
   }
   function cambiaImgIn2()
   {
     var img2=new Image();
     document.images[1].src="immaginisito/chisonog.jpg";
   }
   function cambiaImgIn3()
   {
     var img3=new Image();
     document.images[2].src="immaginisito/imieiforumg.jpg";
   }
   function cambiaImgIn4()
   {
     var img4=new Image();
     document.images[3].src="immaginisito/guestbookg.jpg";
   }
   function cambiaImgIn5()
   {
     var img5=new Image();
     document.images[4].src="immaginisito/frasig.jpg";
   }
   function cambiaImgIn6()
   {
     var img6=new Image();
     document.images[5].src="immaginisito/chatg.jpg";
   }
   function cambiaImgIn7()
   {
     var img7=new Image();
     document.images[6].src="immaginisito/Immaginig.jpg";
   }
   function cambiaImgIn8()
   {
     var img8=new Image();
     document.images[7].src="immaginisito/utilitag.jpg";
   }

   function cambiaImgOut1()
   {
     var img1=new Image();
     document.images[0].src="immaginisito/home.jpg";
   }

   function cambiaImgOut2()
   {
     var img2=new Image();
     document.images[1].src="immaginisito/chisono.jpg";
   }
   function cambiaImgOut3()
   {
     var img3=new Image();
     document.images[2].src="immaginisito/imieiforum.jpg";
   }
   function cambiaImgOut4()
   {
    var img4=new Image();
     document.images[3].src="immaginisito/guestbook.jpg";
   }
   function cambiaImgOut5()
   {
     var img5=new Image();
     document.images[4].src="immaginisito/frasi.jpg";
   }
   function cambiaImgOut6()
   {

    var img6=new Image();
     document.images[5].src="immaginisito/chat.jpg";
   }
   function cambiaImgOut7()
   {
     var img7=new Image();
     document.images[6].src="immaginisito/Immagini.jpg";
   }
   function cambiaImgOut8()
   {
     var img8=new Image();
     document.images[7].src="immaginisito/utilita.jpg";
   }

   //fine codice immagini menu

   //inizio codice mostra i nomi dei font
   function mostraNome(event,id)
   {
            document.getElementById('testoCommento').style.color="magenta";
            document.getElementById('testoCommento').style.backgroundColor="black";
           document.getElementById ('testoCommento').type = 'text';
	         document.getElementById ('testoCommento').value = document.getElementById(id).name;
				bcs = document.getElementById ('boxCommento').style;
				bcs.left=(document.layers) ? e.pageX : document.body.scrollLeft+event.clientX + 10;
				bcs.top=(document.layers) ?  e.pageY : document.body.scrollTop+event.clientY;
   }

   function nascondiNome()
   {
     document.getElementById ('testoCommento').type = 'hidden';
   }
   //fine codice mostra nomi dei font
   
   //codice che cambia colore hai link 
   function cambiaColoreOver(i)
   {
      document.getElementById('link'+ i).style.color="yellow";
   }
   function cambiaColoreOut(i)
   {
      document.getElementById('link' + i).style.color="white";
   }//fine codice cambia colore link 
   
