
// ==========================
// (C) 2000 by CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header

// blink speed in miliseconds
var rate = 1000;

// the three blink colors
var Color1 = "#FF0000"
var Color2 = "#FFFFFF"


// the color if/when turned off (no-blink color)
var ColorX = "#FF0000"

// set this to true for auto start; else, false
var DoIt = true

// do not edit below this line
// ---------------------------

bV  = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"
ok = false

var i=0;
function doTriStateRainbowLink(){
   ok =  true
   if ((bNS && bV >= 5) || (bIE && bV >= 4)){
      i++;
	  for (j=0; j < 7 ; j++) {
		  nBlink = 'newblink' + j;
		  if (i==1) C = Color1
		  if (i==2) C = Color2
		  if (!DoIt) C = ColorX  
		  nBlinkIE = nBlink + '.style.color = "' + C + '";'
		  if (bIE) eval(nBlinkIE)
		  //nBlinkNS = 'document.getElementById(' + nBlink + ').style.color = "' + C + '";'
		  if (bNS) document.getElementById(nBlink).style.color = C;
		  }
		  if (i > 1) i = 0
		  if (DoIt) timer=setTimeout('doTriStateRainbowLink()', rate)
   }      
}


function doOnOff(a){
   if (ok){
      if (a =="off") {DoIt = false}
      if ((a =="on")&&(!DoIt)) {
          DoIt = true
          doTriStateRainbowLink()
      }
   }
}


doTriStateRainbowLink();