var strt = 10;
var endd = 10000;
var flashNums = 1000; // Number of times the script should flash
var opac = strt;
var speed = 1;
var si;
var cleared = true;
var whichFlash = true;
var timerIs = 1;

function showimage(what,doshow) {

if (document.all) {
  cleared = false;
  (doshow) ? opac+=speed : opac-=speed;
  eval(what+".filters.alpha.opacity="+opac);
  if (opac <= strt || opac >= endd) {
    clearInterval(si);
    cleared = true;
  }
}

if (document.layers) clearInterval(si);
}

function ClearInt() {
if (!cleared) clearInterval(si);
}
function flashOn(){
ClearInt();si=setInterval('showimage(\'image1\',true)',10);
}
function flashOff(){
ClearInt();si=setInterval('showimage(\'image1\',false)',100);
}
for (count = 0; count < flashNums; count++){
if (whichFlash == true){setTimeout("flashOn()",timerIs);}
if (whichFlash == false){setTimeout("flashOff()",timerIs);}
timerIs = timerIs + 100000;
whichFlash = !whichFlash;
}
