<!--
//variables to edit
var totalImage = 25;
var speed = 15;
var first_opac = 50;
var sec_opac =100;

//nothing else to edit
var opac = new Array();
var si = new Array();

for(i=0; i < totalImage; i++) {
opac[i] = first_opac;
}

function showimage(what,doshow,num) {
   if (document.all) {
     (doshow) ? opac[num] = (opac[num] + speed) : opac[num] = (opac[num] - speed);
     eval(what+".filters.alpha.opacity="+opac[num]);
     if (opac[num] >= sec_opac)
         opac[num] = sec_opac;
     if (opac[num] <= first_opac)
         opac[num] = first_opac;
     
     if (opac[num] <= first_opac || opac[num] >= sec_opac) {
       clearInterval(si[num]);
       cleared = true;
     }
   }
}

function ClearInt(num) {
   clearInterval(si[num]);
}

function Illuminate(theElem){
ClearInt(theElem);
si[theElem]=setInterval('showimage(\'image' + theElem + '\',true,' + theElem + ')',10);
}

function deIlluminate(theElem){
ClearInt(theElem);
si[theElem]=setInterval('showimage(\'image' + theElem + '\',false,' + theElem + ')',10);
}
// -->