function fadeObject(id, c1, c2, s1, s2) {
  var self = this;
  this.id      = id;
  this.elem    = false;
  this.colour  = {
    stt: [parseInt(c1.substr(0, 2), 16), parseInt(c1.substr(2, 2), 16), parseInt(c1.substr(4, 2), 16)],
    end: [parseInt(c2.substr(0, 2), 16), parseInt(c2.substr(2, 2), 16), parseInt(c2.substr(4, 2), 16)],
    now: [parseInt(c1.substr(0, 2), 16), parseInt(c1.substr(2, 2), 16), parseInt(c1.substr(4, 2), 16)]
  };
  this.steps   = [s1, s2];
  this.dir     = false;
  this.active  = false;
  this.queue   = [];
  this.msg     = [];
  this.message = 0;
  function d2h(num) {
    num = Math.round(num);
    return ((num < 16) ? "0" : "") + num.toString(16);
  }
  this.fade = function(message, direction) {
    this.elem = this.elem || document.getElementById(this.id);
    this.queue.push([message, direction]);
    for (var x = 0; x < this.queue.length; x++) {
      for (var y = x + 1; y < this.queue.length; y++) {
        if (this.queue[x][0] == this.queue[y][0] && this.queue[x][1] != this.queue[y][1]) {
          this.queue.splice(x, 1);
          this.queue.splice(y - 1, 1);
        }
      }
    }
    if (!this.active) setTimeout(function() { self.fadeLoop(); }, 10);
  };
  this.fadeLoop = function() {
    if (!this.active && this.queue.length) {
      if (this.dir && this.message != this.queue[0][0]) this.queue.unshift([this.message, false]);
      var msg = this.queue.shift();
      if (this.msg[msg[0]]) {
        this.active = true;
        this.elem.innerHTML = this.msg[this.message = msg[0]];
        this.dir = msg[1];
      }
    }
    if (this.dir) {
      var c1 = this.colour.stt, c2 = this.colour.end, s = this.steps[0];
    } else var c1 = this.colour.end, c2 = this.colour.stt, s = this.steps[1];
    for (var x = 0, cnow = "", inc = 0; x < 3; x++) {
      this.colour.now[x] += inc = (c2[x] - c1[x]) / s;
      cnow += this.colour.now[x] = (inc < 0) ? Math.max(this.colour.now[x], c2[x]) : Math.min(this.colour.now[x], c2[x]);
    } this.elem.style.color = "#" + d2h(this.colour.now[0]) + d2h(this.colour.now[1]) + d2h(this.colour.now[2]);
    if (cnow == c2.join("")) {
      this.active = false;
      if (!this.queue.length) {
        if (!this.dir) {
          if (this.msg[0]) {
            this.queue.push([0, true]);
            setTimeout(function() { self.fadeLoop(); }, 10);
          } else this.elem.innerHTML = "&nbsp;";
        }
      } else setTimeout(function() { self.fadeLoop(); }, 10);
    } else setTimeout(function() { self.fadeLoop(); }, 10);
  };
  if (window.addEventListener) {
    window.addEventListener('load', function() { self.fade(0, true); }, false); 
  } else if (window.attachEvent)
    window.attachEvent('onload', function() { self.fade(0, true); });
}
/* ***** End ********************************/




var fader = new fadeObject('rotateMsgBox', 'ffffff', '000000', 100, 100);
fader.msg[0] = ""; // LEAVE THIS BLANK!
fader.msg[1] = "<div><p><em>&quot;Yuba Highlands would like to thank Squaretree for expertly designing an amazing site for our potential development. The site became a bigger piece of our marketing campaign than we had anticipated due to its extreme effectiveness. Every concern and question we had along the way was addressed immediately by the professional and courteous staff at Squaretree.&quot;</em></p></div><br/><div style='color: #4E8D32;'><p>Amber Hustead, <br />GRE Management Services, Inc.</p></div>";
fader.msg[2] = "<div><p><em>&quot;Just wanted to let you know, out of all the things that could have been a problem with our office move, our network was not one of them. Thanks to you both for all your efforts and getting us up and running. I have had no problems with the email/computer/network stuff. Excellent work!&quot;</em></p></div><br/><div style='color: #4E8D32;'><p>Capital Region Financial Group, Ester</p></div>";
fader.msg[3] = "<div><p><em>&quot;Squaretree IT Projects has provided Capital Region Financial Group, LLC with outstanding IT solutions for over 10 years. They consistently monitor, service and evaluate our equipment and servicing needs on a smooth and ongoing basis. Compliments to Squaretree on providing us, and our community, quality IT service solutions for businesses in the Sacramento area.&quot;</em></p></div><br/><div style='color: #4E8D32;'><p>Caryn B. Jones, <br /> Co-owner: Capital Region Financial Group LLC</p></div>";
fader.msg[4] = "<div><p><em>&quot;Your tech is always so professional; to the point and quiet. He is your stealth tech! Very easy to work with over the phone and in person. You've got a great crew, now that we've had the pleasure of everyone's visitation. He just left, we tested everything: H-A-P-P-Y!&quot;</em></p></div><br/><div style='color: #4E8D32;'><p>CRFG, <br />Ester Swisher</p></div>";
fader.msg[5] = "<div><p><em>&quot;We are pleased to be working with Squaretree. Working with Squaretree has been a breath of fresh air.&quot;</em></p></div><br/><div id='quotename'><p>CU Direct Corporation</p></div>";
fader.msg[6] = "<div><p><em>&quot;There is no way we could have had the most profitable month and quarter in the history of the company without the application Squaretree built.&quot;</em></p></div><br/><div style='color: #4E8D32;'><p>David Meyers, <br />ConSol</p></div>";
fader.msg[7] = "<div><p><em>&quot;CAC was in desperate need of a new website and IT support and Squaretree came to the rescue! They listened to our needs and produced a website that exceeded our expectations. Each time we needed to change or add something, Squaretree and their team of professionals were able to deliver results quickly and efficiently. Squaretree IT Projects has superior customer service and a level of professionalism where the customer's needs are their number one priority.&quot;</em></p></div><br/><div style='color: #4E8D32;'><p>Deedra Withers, <br />CAC's Editor &amp; Communications Specialist</p></div>";
fader.msg[8] = "<div><p><em>&quot;The efforts of your team have greatly aided CDF in achieving what we feel were nearly impossible tasks given the time allotted.&quot;</em></p></div><br/><div style='color: #4E8D32;'><p>Department of Forestry &amp; Fire Protection</p></div>";
fader.msg[9] = "<div><p><em>&quot;Thank you for the great service today. I can't think of the last time a potential 'serious problem' was handled so quickly, graciously and thoroughly.&quot;</em></p></div><br/><div style='color: #4E8D32;'><p>Digistream</p></div>";
fader.msg[10] = "<div><p><em>&quot;I just wanted to send a note to express my appreciation of the job you did revamping our web site. It was an excellent job and your staff was very responsive and easy to work with. I look forward to working on additional projects with you and your team.&quot;</em></p></div><br/><div style='color: #4E8D32;'><p>Doug Hawkins, <br />Plastic Package</p></div>";
fader.msg[11] = "<div><p><em>&quot;Squaretree has given me peace of mind. Now I'm confident that when I come into work in the morning, our network will be working properly.&quot; </em></p></div><br/><div style='color: #4E8D32;'><p>Emily Duenas, <br />Future Funding</p></div>";
fader.msg[12] = "<div><p><em>&quot;Our sincere thanks to Squaretree, Inc. for outstanding performance on this project.&quot; </em></p></div><br/><div style='color: #4E8D32;'><p>Employment Development Department, <br />State of California</p></div>";
fader.msg[13] = "<div><p><em>&quot;Your tech listened to the problems, worked quietly and thoroughly running down the list of items we were still having issues with. She sniffed out 2 important non-working items that were impeding us from doing business off site. She didn't let go of the issue until it was resolved and moved on down her list resolving some new install aftermath on the stations to smooth workflow. Your tech was definitely needed on site today to work out these kinks and now we are hopeful for smooth computering.&quot;</em></p></div><br/><div style='color: #4E8D32;'><p>Ester Swisher, <br />Capital Region Financial Group</p></div>";
fader.msg[14] = "<div><p><em>&quot;I love your executive summary reports on the health of our network. Since we outsource our IT maintenance and don't necessarily hear about every little detail that goes on behind the scenes, it is nice to see a visual report of what is being taken care of so we can concentrate on running the business.&quot;</em></p></div><br/><div style='color: #4E8D32;'><p>Ester Swisher, CRFG</p></div>";
fader.msg[15] = "<div><p><em>&quot;Squaretree has excellent professionals who performed quality work in developing our firm's web presence. As an unexpected bonus, we obtained new business from our site.&quot;</em></p></div><br/><div style='color: #4E8D32;'><p>Frank Radoslovich, <br />Radoslovich Law Corporation</p></div>";
fader.msg[16] = "<div><p><em>&quot;Over the last ten years, Squaretree has demonstrated a valuable understanding of our needs as an aid to local commerce.&quot;</em></p></div><br/><div style='color: #4E8D32;'><p>Gary Brewer, <br />Sacramento Metro Chamber</p></div>";
fader.msg[17] = "<div><p><em>&quot;As a loyal Squaretree customer who started smaller, our needs have continually been met by Squaretree's cost-effective solution.&quot;</em></p></div><br/><div style='color: #4E8D32;'><p>Jim Green, <br />Northern California Cardiology Associates</p></div>";
fader.msg[18] = "<div><p><em>&quot;Because we rely so heavily on electronic medical records, the peace of mind that Proactive IT has provided, by preventing downtime, is invaluable.&quot;</em></p></div><br/><div style='color: #4E8D32;'><p>Jim Green, NCCA</p></div>";
fader.msg[19] = "<div><p><em>&quot;Thank you for your note. Everything is working fine. Thanks again for jumping in on Saturday to get us up and running. It is refreshing to work with a professional IT firm!&quot;</em></p></div><br/><div style='color: #4E8D32;'><p>John Beatty, <br />Hester Roofing</p></div>";
fader.msg[20] = "<div><p><em>&quot;Thank you for all of your help, you've done a great job for us. It gives me great comfort to know that I can be anywhere anytime (with a network connection) and still do everything I'd do at my office with such ease.&quot;</em></p></div><br/><div style='color: #4E8D32;'><p>Kim Parker, <br />California Employers Association</p></div>";
fader.msg[21] = "<div><p><em>&quot;Your engineer was awesome. She came in today, moved all of our servers, put up with us moving office furniture around her and even set up a new desktop station. All this in well under the time she had quoted us. We are thrilled.&quot;</em></p></div><br/><div style='color: #4E8D32;'><p>Kim Parker, CEA</p></div>";
fader.msg[22] = "<div><p><em>&quot;After a few months as a new client of yours, I am pleased to say that I am confident we chose the right company for a long term working relationship. From our account representative, to our website designer, to our IT troubleshooter, to the person who answered your phones yesterday, we have been treated with nothing less than superior customer service! Your friendly, timely and very knowledgeable staff has been a pleasure to work with through some difficult transitions with our VPN, website changes and our server. We appreciate working with such a professional and first rate outfit. Thank you for making our lives easier and our association more productive!&quot; </em></p></div><br/><div style='color: #4E8D32;'><p>Kim Parker, CEA</p></div>";
fader.msg[23] = "<div><p><em>&quot;[Web Application Support] I really enjoy working with you, you have a great turn around and have excellent service! &quot;</em></p></div><br/><div style='color: #4E8D32;'><p>Kim Parris, <br />Central California Appellate Program</p></div>";
fader.msg[24] = "<div><p><em>&quot;Your phone support staff are great, the telephone assistance is so polite and courteous that it almost makes you forget you have a computer problem!&quot;</em></p></div><br/><div style='color: #4E8D32;'><p>Linda Calkins, <br />Northern California Cardiology Associates</p></div>";
fader.msg[25] = "<div><p><em>&quot;From requirements gathering through development, we were extremely impressed with Squaretree's highly professional project management and superior commitment to quality.&quot;</em></p></div><br/><div style='color: #4E8D32;'><p>Lynn Conner, <br />Parasec</p></div>";
fader.msg[26] = "<div><p><em>&quot;[Squaretree's] commitment to quality service and customer satisfaction makes me very confident in their ability to deliver great results.&quot;</em></p></div><br/><div style='color: #4E8D32;'><p>Matt Pease, <br />Microsoft Corporation</p></div>";
fader.msg[27] = "<div><p><em>&quot;Squaretree's remarkable development team made us confident from the start of the project that we would finally get the mission critical application we needed. Not only are they technically proficient, but they took the time to listen to us and thoroughly understand our organization. These elements came together to create a product even better than we had envisioned.&quot;</em></p></div><br/><div style='color: #4E8D32;'><p>Mike Sturdivant, PCBC</p></div>";
fader.msg[28] = "<div><p><em>&quot;Squaretree has taken great care of our computers /IT needs for the past 3 years the staff is the best I have worked with. I would highly recommend their services.&quot;</em></p></div><br/><div style='color: #4E8D32;'><p>Paul Borra, <br />Cargonet</p></div>";
fader.msg[29] = "<div><p><em>&quot;Squaretree has an excellent eye for value through technology. The Squaretree team helped my organization deliver significant business process return through enabling software. The team helped us implement our IT project with phenomonal ease, and we are still reaping the benefits of their work here.&quot;</em></p></div><br/><div style='color: #4E8D32;'><p>Pelco</p></div>";
fader.msg[30] = "<div><p><em>&quot;SharePoint has been GREAT. Perhaps the most uplifting thing for staff over the past year. We've been able to work more efficiently and effectively and we are still only scratching the surface in terms of building the site out.&quot;</em></p></div><br/><div style='color: #4E8D32;'><p>Sara Naab Schaff, <br />Freedom From Hunger</p></div>";
fader.msg[31] = "<div><p><em>&quot;Just wanted to let you know I am SOOOOO happy now. My computer works like it should, thanks for your help!!!!&quot;</em></p></div><br/><div style='color: #4E8D32;'><p>Stacy Albarran, <br />Carlson Logistics</p></div>";fader.msg[32] = "<div><p><em>&quot;THANK YOU!!!  I submitted the form from my laptop and it worked fine. One more year down.  You are the best and I’m hoping with you that 'we' (you) won’t have to do this difficult process again! &quot;</em></p></div><br/><div style='color: #4E8D32;'><p>Diane Bauer <br />Timberworks Construction</p></div>";
fader.msg[32] = "<div><p><em>&quot;I would definitely recommend Squaretree. They are always on time and complete things very quickly. Squaretree let us know from the beginning 'Tell us what you need and we’ll get it done.' They have absolutely stayed true to their word and exceeded our expectations.&quot;</em></p></div><br/><div style='color: #4E8D32;'><p>Michele Sweet, WGBCO</p></div>";
fader.msg[33] = "<div><p><em>&quot;I would definitely recommend Squaretree. They are always on time and complete things very quickly. Squaretree let us know from the beginning 'Tell us what you need and we’ll get it done.' They have absolutely stayed true to their word and exceeded our expectations.&quot;</em></p></div><br/><div style='color: #4E8D32;'><p>Michele Sweet, WGBCO</p></div>";

var fadePosition = Math.floor(Math.random() * fader.msg.length)+1;
var fadeTimeinSeconds = 10;
var firstFade = true;

function nextFade()
{
	if (firstFade)
	{
		firstFade = false;
		fader.fade(0, false);
	}
	if (fadePosition >= fader.msg.length)
		fadePosition = 1;
	fader.fade(fadePosition, true);
	fadePosition++;
	setTimeout("nextFade();", fadeTimeinSeconds * 1000);
}

