function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
// images
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
MM_preloadImages('img/punto_on.gif','img/punto_off.gif')
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function list_on(imageName1,imageName2)
{
    id = "img/" + imageName1 + "_on.gif"
    document.images[imageName2].src = id
}
function list_off(imageName1,imageName2)
{
    id = "img/" + imageName1 + "_off.gif"
    document.images[imageName2].src = id
}

// box
var ar_quadre            = new Array(1,1,0,0,0,1,1,1,0,0,0,1,1,1,1,1,1,1,0,0,0,1,1) ;
var ar_quadre_mask       = new Array(1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1) ;

function cambiaColore(oggetto,colore,direzione,tipo,tipo_mask)
{
     var celle = null ;
     var stColore = "" ;
   celle = oggetto.getElementsByTagName('td');   
     for(i=0;i<celle.length;i++)
     {
        stColore += i+"="+celle[i].getAttribute('bgcolor')+"\n";
            if(tipo_mask[i] == 1)
            {
                if(direzione == "over")
                   celle[i].setAttribute('bgcolor', colore, 0);         
                    else
                    {
                       if(tipo[i] == 0)
                            celle[i].setAttribute('bgcolor', '#FFFFFF', 0);
                         else
                            celle[i].setAttribute('bgcolor', colore, 0);
                    }
            }
     } 
}

/*
// box -> arancio
function px_ar(imageName1,imageName2)
{
    id = "img/" + imageName1 + "_ar.gif"
    document.images[imageName2].src = id
}
// box -> azzurro
function px_azz(imageName1,imageName2)
{
    id = "img/" + imageName1 + "_azz.gif"
    document.images[imageName2].src = id
}
// box -> bianco
function px_bia(imageName1,imageName2)
{
    id = "img/" + imageName1 + "_bia.gif"
    document.images[imageName2].src = id
}
// box -> blu
function px_blu(imageName1,imageName2)
{
    id = "img/" + imageName1 + "_blu.gif"
    document.images[imageName2].src = id
}
*/
