  var delay = 7000;   //set delay between message change (in miliseconds)
  var curdelay = delay;
  var maxsteps = 30;  // number of steps to take to change from start color to endcolor
  var stepdelay = 40; // time in miliseconds of a single step

  var startcolor = new Array(216,216,216); // start color (red, green, blue)
  var endcolor = new Array(0,0,0); // end color (red, green, blue)

  var fcontent = new Array();

//  begintag='<div style="font-family: lucida, lucida sans unicode, lucida grande, sans-serif; font-size: 9pt;">'; //set opening tag, such as font declarations
  begintag=''; //set opening tag, such as font declarations
  fcontent[0]="SDiD&#153;<br /><br /> &#8226; First RFID SD Card Reader/Writer in the industry<br /> &#8226; Smallest form factor and longest read/write range<br /> &#8226; Plug & Play: adapts Wireless PDA/Smartphones<br /> &#8226; Open platform development: WinCE and PalmOS<br /> &#8226; Low cost and flexible solutions for mobile RFID<br /> &#8226; Software Development Kits<br /> &#8226; Strong technical developer support<br /> &#8226; Online interactive forum community<br /></span>";
  fcontent[1]="SDiD&#153; 1010<br /><br /> &#8226; Up to 5.0 cm (2.0&#34;) range<br /> &#8226; Near Field Communication (NFCIP-1, ISO18092 compliant)<br /> &#8226; ISO14443A compliant<br /> &#8226; Supports Philips MIFARE&reg;<br /> &#8226; Supports Philips MIFARE DESFire&reg;<br /> &#8226; Integrated SAM (Secure Access Module) with SmartCard compliant JCOP OS<br /> &#8226; Ideal for contactless payment, advertising and promotional applications<br /></span>";
  fcontent[2]="SDiD&#153; 1020<br /><br /> &#8226; Up to 8.0 cm (3.2&#34;) range<br /> &#8226; ISO15693 compliant<br /> &#8226; ISO14443A/B compliant<br /> &#8226; Supports Philips MIFARE&reg; and Philips MIFARE DESFire&reg;<br /> &#8226; Supports Philips I-CODE&reg; and Philips I-CODE&reg; SLI<br /> &#8226; Supports Texas Instrument Tag-it&#153 HF-I<br /> &#8226; Can be customized for industrial, enterprise and government applications<br /></span>";
  fcontent[3]="SDiD&#153; 1210<br /><br /> &#8226; First Low Frequency RFID Reader / Writer SD Card<br /> &#8226; ISO 11784 and ISO 11785 compliant for Animal ID<br /> &#8226; Supports Half Duplex (HDX) LF RFID, up to 12.5 cm (5.0&#34;) range<br /> &#8226; Supports Full Duplex (FDX) LF RFID, up to 9.0 cm (3.5&#34;) range<br /> &#8226; Supports TI TIRIS LF, Sokymat Q5, NXP HITAG&#153;1 & NXP HITAG&#153;S (no security)<br /> &#8226; Read, write and search 125 kHz and 134.2 kHz LF RFID tags<br /> &#8226; Can be customized for industrial, enterprise and government applications<br /></span>";
  fcontent[4]="SDiD&#153; 1212<br /><br /> &#8226; First Low Frequency RFID Reader / Writer SD Card with 2GB SD Memory<br /> &#8226; ISO 11784 and ISO 11785 compliant for Animal ID<br /> &#8226; Supports Half Duplex (HDX) LF RFID, up to 12.5 cm (5.0&#34;) range<br /> &#8226; Supports Full Duplex (FDX) LF RFID, up to 9.0 cm (3.5&#34;) range<br /> &#8226; Supports TI TIRIS LF, Sokymat Q5, NXP HITAG&#153;1 & NXP HITAG&#153;S (no security)<br /> &#8226; Read, write and search 125 kHz and 134.2 kHz LF RFID tags<br /> &#8226; Can be customized for industrial, enterprise and government applications<br /></span>";
//  closetag='</div>';
  closetag='';

  var fwidth='100%'; //set scroller width
  var fheight='150px'; //set scroller height

  var ie4=document.all&&!document.getElementById;
  var DOM2=document.getElementById;
  var faderdelay=0;
  var index=0;
  var fadecounter;
  var changecounter;

  function previous()
  {
    if (index==1)
      index=fcontent.length-1;
    else
      index = index-2;
    if (index < 0)
      index = 0;

    clearTimeout(fadecounter);
    clearTimeout(changecounter);
    curdelay = delay;
    document.getElementById("fscroller").style.color="rgb("+endcolor[0]+", "+endcolor[1]+", "+endcolor[2]+")";
    changecounter=setTimeout("changecontent()",0);
    control.innerText='Stop';
  }

  function startstop()
  {
    if (curdelay == delay)
    {
      clearTimeout(fadecounter);
      clearTimeout(changecounter);
      curdelay = 0;
      document.getElementById("fscroller").style.color="rgb("+endcolor[0]+", "+endcolor[1]+", "+endcolor[2]+")";
      control.innerText='Start';
    }
    else
    {
      curdelay = delay;
      changecounter=setTimeout("changecontent()",0);
      control.innerText='Stop';
    }
  }

  function next()
  {
    clearTimeout(fadecounter);
    clearTimeout(changecounter);
    curdelay = delay;
    document.getElementById("fscroller").style.color="rgb("+endcolor[0]+", "+endcolor[1]+", "+endcolor[2]+")";
    changecounter=setTimeout("changecontent()",0);
    control.innerText='Stop';
  }

  function changecontent()
  {
    if (index>=fcontent.length)
      index=0

    if (DOM2)
    {
      document.getElementById("fscroller").style.color="rgb("+startcolor[0]+", "+startcolor[1]+", "+startcolor[2]+")"
      document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag
      linkcolorchange(1);
      colorfade(1,20);
    }
    else if (ie4)
    {
      document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag;
    }

    index++
  }

  function linkcolorchange(step)
  {
    var obj=document.getElementById("fscroller").getElementsByTagName("A");

    if (obj.length>0)
    {
      for (i=0;i<obj.length;i++)
        obj[i].style.color=getstepcolor(step);
    }
  }

  function colorfade(step)
  {
    if (step<=maxsteps)
    {
      document.getElementById("fscroller").style.color=getstepcolor(step);
      linkcolorchange(step);
      step++;
      fadecounter=setTimeout("colorfade("+step+")",stepdelay);
    }
    else
    {
      clearTimeout(fadecounter);
      document.getElementById("fscroller").style.color="rgb("+endcolor[0]+", "+endcolor[1]+", "+endcolor[2]+")";
      if (curdelay)
        changecounter=setTimeout("changecontent()", curdelay);
    }
  }

  function getstepcolor(step)
  {
    var diff
    var newcolor=new Array(3);

    for(var i=0;i<3;i++)
    {
      diff = (startcolor[i]-endcolor[i]);

      if(diff > 0)
      {
        newcolor[i] = startcolor[i]-(Math.round((diff/maxsteps))*step);
      }
      else
      {
        newcolor[i] = startcolor[i]+(Math.round((Math.abs(diff)/maxsteps))*step);
      }
    }

    return ("rgb(" + newcolor[0] + ", " + newcolor[1] + ", " + newcolor[2] + ")");
  }

  if (ie4||DOM2)
  {
    document.write('<div id="fscroller" style="border:0px solid black;width:'+fwidth+';height:'+fheight+'"></div>');
  }

  if (window.addEventListener)
    window.addEventListener("load", changecontent, false)
  else if (window.attachEvent)
    window.attachEvent("onload", changecontent)
  else if (document.getElementById)
    window.onload=changecontent
