var textItems = new Array();

textItems[0]="We called It's done! when we needed to make some changes to our network wiring. Even though it was a small job, It's done! were quick to respond, the work was carried out efficiently and up to our expectations... Stuart Wilks, Senior Manager, Hill International (UK) Limited - 1 London Bridge, London"
textItems[1]="We had been searching for reliable IT support for many years, without success. We had plenty of promises but no delivery. Until we found It's done! The staff are friendly and efficient and I wish we had found them a lot sooner... Jamie Cassidy, Director, Porter Brown & Co (Financial Services) Ltd - Cricklewood, London" 
textItems[2]="... The level of expertise and attention to detail was quite incredible. With keen prices out of all proportion to the highly professional service, I recommend It's Done structured cabling service to any small to medium business... Elliot Isaacs, Director, Pangaea Laboratories Ltd - Child's Hill, London"
textItems[3]="TRI Investments is a small investment company heavily dependent on technology. It's done! provide a fast and efficient service combined with a proactive can-do attitude... Chris Finch, Managing Director, Tri Investments Limited - Mayfair, London"
textItems[4]="It's done! Installed our systems quickly and efficiently and have provided an excellent support service ever since. They are helpful and knowledgeable and we would not hesitate in recommending them... Mark Day, Managing Director, Mark & Aidan Day Ltd - Pewsey"
textItems[5]="Words we would use to describe It's Done: professional, competent, prompt, attentive, friendly, value-for-money and dependable... Tal Willmott, Manager, Anston Investments Ltd - Golders Green, London"
textItems[6]="Just to let you know that we are absolutely delighted with the service we have been receiving from It's Done! over the past 2 years. The remote access you have been using regularly is an absolute gift for quick repairs. We cannot operate without our computer system and it is very helpful to our business to know that we have dependable, helpful and professional IT team behind us… Phil Heaton, Director, Parklife - London"





Array.prototype.shuffle = function() {
  for (var i = 0; i < this.length; i++){
    var r = parseInt(Math.random() * this.length);
    var obj = this[r];
    this[r] = this[i];
    this[i] = obj;
  }
}

textItems.shuffle()

	var storyCount = 0;
	var itemLen = 0;

	function tickTock(){

		var obj = document.getElementById("scroller");

		var myTimeout = 50;
		var str;
		var st = textItems[storyCount];

		if ( itemLen > st.length ) {
			storyCount++;
			if ( storyCount >= textItems.length  ) {
				storyCount = 0;
			}
			itemLen = 0;
			myTimeout=5000;
			setTimeout("tickTock()", myTimeout);
		} else {
			++itemLen;
			str = textItems[storyCount].toString();
			str = str.substring(0,itemLen) + (itemLen == str.length+1 ? "":"_");
			obj.innerHTML = str;// "<a href=\"#\" class=\"headlines\">" + str + "</a>";
			setTimeout("tickTock()", myTimeout);
		}

	}

	setTimeout("tickTock()", 2000);
