// JavaScript Document
var tips=new Array()
   tips[0]="Tip numero 0";
   tips[1]="Tip numero 1";
   tips[2]="Tip numero 2";
   tips[3]="Tip numero 3";

var nn=document.layers?true:false;
var DOM2=document.getElementById?true:false;
var NN6=DOM2&&navigator.userAgent.toLowerCase().indexOf("netscape")!=-1;
var toggle=false,tiplayer=null,tiplayerwidth=null;

nn?window.captureEvents(Event.MOUSEMOVE):null;

function Inizia()
   {
   tiplayer=nn?document.layers.tooltip:DOM2?document.getElementById("tooltip"):document.all.tooltip
   tiplayerwidth=nn?tiplayer:tiplayer.style;
   }


function tipWrite(id)
   {
   tiplayerwidh.width=tips[id].length*7;
   if (nn){
      tiplayer.document.open();tiplayer.document.write(tips[id]);tiplayer.document.close();}
      else tiplayer.innerHTML=tips[id];
   }
	
function tip(n)
   {
   toggle=!toggle;
   if (toggle){
      tipWrite(n);
      nn?window.onmousemove=mostra:document.onmousemove=mostra;
      tiplayerwidth.visibility='visible';}
      else{
      nn?window.onmousemove=null:document.onmousemove=null;
      tiplayerwidth.visibility='hidden';}
   }

function mostra(mosso)
   {
   if (nn){
      tiplayer.top=mosso.pageY+10;
      tiplayer.left=mosso.pageX+10;}
   else
      if (DOM2&&NN6){
      tiplayer.style.top=mosso.pageY+10;
      tiplayer.style.left=mosso.pageX+10;}
      else{
         tiplayer.style.top=window.event.clientY+10;
         tiplayer.style.left=window.event.clientX+10;}
   }

