var delay = 10000; 
var maxsteps=20;
var stepdelay=70;

var startcolor= new Array(34,34,34); 
var endcolor=new Array(255,255,255); 

var fcontent=new Array();
begintag='';
fcontent[0]="I absolutely love BioServers - their customer support is friendly and the pings are always low!<div class='customerName'>-Anonymous</div>"
fcontent[1]="BioServers is an awesome service, the support i get from them is easily the best I've ever had. I totally recommend Bioservers for your gaming needs!<div class='customerName'>-LillskillszZ</div>"
fcontent[2]="Bioservers is a well-priced hosting buisness for game servers and supplies excellent customer support. I've never seen cheaper prices on any other hosting business before, and I am impressed about the quality of the servers. Buying a server comes with great features such as a control panel, svn updates every 6 hours and fast-installation mods for garrysmod, and FREE voice servers for all game servers. Overall, Bioservers offers exceptional service with amazing support.<div class='customerName'>-Foxhound</div>"
fcontent[3]="Overall I thought the service was great. The admins treated me with respect and helped me with issues promptly. The server itself was setup fast and the performance was amazing.<div class='customerName'>-Nathan Barnard</div>"
fcontent[4]="Bioservers webhosting is great. They have faster speed than my previous webhost. Bioservers also uses cPanel Accelerated which is streamlined for better speed, which is great. The best bit about bioservers is the amount of disk space you get, bandwidth and other awesome things like unlimited subdomains and email accounts they supply me with. I totally recommend BioServers to all, especially clans.<div class='customerName'>-Sean @ www.puregamers.co.uk</div>"
fcontent[5]="So far, my experience with BioServers has been brill. They solved all my problems and are great for support. The connection speed is great, my website loads super fast, and the bandwidth and webspace is generous for the price.<div class='customerName'>-Spikey @ www.spikey.bioservers.co.uk</div>"
fcontent[6]="Bioservers is the best game hoster I've ever had! The pings are always low for me and my players. His Panel Administration is very nice and works perfectly. The Support is very welcoming! I really recommend Bioservers for Everyone!<div class='customerName'>-Mr.Pauls</div>"
closetag='';

var fadelinks=1;

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


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
    if (fadelinks)
      linkcolorchange(1);
    colorfade(1, 15);
  }
  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);
  }
}

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

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('<span id="fscroller"></span>');

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