    // <SCRIPT Language="JavaScript" Src="images/homepage_marquee/spotlight.js">
    //----------------------------
    //---------- begin -----------
    var rotationTime = 4;  // sec
    var T_ms         = 100;
    var CR           = '\n';
    var spots        = new Array();
    var preloaded    = false;
    var curSpot      = 0;
    var curTimeout   = 0;
    var ndx          = 0;
    var ie           = (document.getElementById && document.all);
    //----------------------------
    //   [ndx][0] = image ctl,  [ndx][1] = path to image,  [ndx][2] = URL for hyperlink

    spots[ndx]    = new Array();
    spots[ndx][0] = new Image();
    spots[ndx][1] = 'files/rotpic01.gif';
          ndx     = (ndx + 1);

    spots[ndx]    = new Array();
    spots[ndx][0] = new Image();
    spots[ndx][1] = 'files/rotpic02.gif';
          ndx     = (ndx + 1);
		  
    spots[ndx]    = new Array();
    spots[ndx][0] = new Image();
    spots[ndx][1] = 'files/rotpic03.gif';
          ndx     = (ndx + 1);
		  
    spots[ndx]    = new Array();
    spots[ndx][0] = new Image();
    spots[ndx][1] = 'files/rotpic04.gif';
          ndx     = (ndx + 1);
		  
    spots[ndx]    = new Array();
    spots[ndx][0] = new Image();
    spots[ndx][1] = 'files/rotpic05.gif';
          ndx     = (ndx + 1);
		  
    spots[ndx]    = new Array();
    spots[ndx][0] = new Image();
    spots[ndx][1] = 'files/rotpic06.gif';
          ndx     = (ndx + 1);		
		  
    spots[ndx]    = new Array();
    spots[ndx][0] = new Image();
    spots[ndx][1] = 'files/rotpic07.gif';
          ndx     = (ndx + 1);	

    spots[ndx]    = new Array();
    spots[ndx][0] = new Image();
    spots[ndx][1] = 'files/rotpic08.gif';
          ndx     = (ndx + 1);

    spots[ndx]    = new Array();
    spots[ndx][0] = new Image();
    spots[ndx][1] = 'files/rotpic09.gif';
          ndx     = (ndx + 1);		
		  
    //----------------------------
    function dw(txt){
      document.write(txt); }
    //function updateURL(newURL){
    //  var ctl = document.getElementById('marqueeLink');
    //  ctl.href = newURL; }
    function preload(){  var i;
      for(i=0; i<spots.length; i++){
        spots[i][0].src = spots[i][1]; } 
      preloaded = true; }
    function rotate(){  var ctl;
      if(preloaded){
        halt(); // just in case mouseout triggers double-recursion
        curSpot++;
        if(curSpot==spots.length)  curSpot = 0;
        ctl = document.getElementById('spotlight');
        if(ie){
          ctl.style.filter = 'progid:DXImageTransform.Microsoft.Fade(duration=0.5);';
          ctl.filters.item(0).Apply();
          ctl.src = spots[curSpot][0].src;
          ctl.filters.item(0).Play();
        }else{
          ctl.src = spots[curSpot][0].src; }
      //  updateURL(spots[curSpot][2]);
      }else{
        self.setTimeout('rotate()', 100);
        return true; }
      curTimeout = self.setTimeout('rotate()', (rotationTime * 1000));
      return true; }
    function halt(){
      self.clearTimeout(curTimeout);  curTimeout=0; }
    //----------------------------
    // choose random marquee image (of 2)
    // var r = Math.random();
    // dw('<A HREF="https://www.aitcom.net/welcometoait.php">');
    // if(r < 0.5){
    //  dw('<IMG ID="marquee" Src="images/homepage_marquee/marquee_main1.jpg" '+CR);
    //  dw(' Border="0" Width="407" Height="154" Alt=""></a>');
    // }else{
    //  dw('<IMG ID="marquee" Src="images/homepage_marquee/marquee_main2.jpg" '+CR);
    //  dw(' Border="0" Width="407" Height="154" Alt=""></a>');
    // } // random marquee image
    // write framework for dynamic substitutions
    dw('<A ID="marqueeLink" NAME="Image">');
    dw('<IMG ID="spotlight" Src="'+spots[0][1]+'" '+CR);
    dw(' Border="0" Width="289" Height="173" Alt="" '+CR);
    dw(' onMouseEnter="halt();" onMouseOut="rotate();"></a>'+CR);
    // preload images
    preload();
    // initiate rotation
    self.setTimeout('rotate()', (rotationTime * 1000));
    //----------- end ------------
    //----------------------------

