/* A JavaScript 1.2 script */ 

function msieversion() {
var ua = navigator.userAgent
var msie = ua.indexOf ( "MSIE " )
if ( msie > 0 )      // is Microsoft Internet Explorer; return version number
   return parseInt ( ua.substring ( msie+5, ua.indexOf ( ".", msie ) ) )
else
   return 0          // is other browser
}


/*
Based on a dynanimicdrive.com script
Improved with checking for minimal MSIE version 5
*/


function glowit(which){
if (document.all.glowtext[which].filters[0].strength==2)
  document.all.glowtext[which].filters[0].strength=0
else
  document.all.glowtext[which].filters[0].strength=2
}

function glowit2(which){
if (document.all.glowtext.filters[0].strength==0)
  document.all.glowtext.filters[0].strength=2
else
  document.all.glowtext.filters[0].strength=0
}

function startglowing(){
if (document.all.glowtext&&glowtext.length){
  for (i=0;i<glowtext.length;i++)
    eval('setInterval("glowit('+i+')",1500)')
  }
else if (glowtext)
  setInterval("glowit2(0)",1500)
}

if (document.all){
  if (msieversion() > 4) 
    window.onload=startglowing
}
