theCurrentStory = -1;
theCurrentLength = 0;
var theSummaries = new Array();
var theSiteLinks = new Array();
var theItemCount = 4;

theSummaries[0] = '"I want to express our sincere appreciation for the effort you guys have put into building an extremely effective site for us. As you know, it was imperative that the site satisfied the rigorous standards set by the insurance and banking industries with whom we are partnered." - Steve Bennett, Head Of Business Development for Theft Protect';
theSiteLinks[0] = "retail.html#theftprotect";
theSummaries[1] = '"I must commend you on your attention to detail, expertise and knowledge in delivering a first rate job. The resulting site and connection to the HSBC Platform is frequently receiving favorable comments from our 2000+ broker customers and is a reflection of your excellent grasp of our requirements." - Steve Bennett, Head Of Business Development for HSBC Spectrum Theft Protect';
theSiteLinks[1] = "insurance.html#spectrum";
theSummaries[2] = '"IST Media have been our Internet Consultants for the past 6 years. We have always received a consistently high level of professional service from the team. No request is too much trouble and their knowledge and experience in website design and e-commerce is of great value to our business. We look forward to working with them for the next 6 years!" - Talitha Gibbins, Head of Marketing for SRS Leisure';
theSiteLinks[2] = "leisure.html#srsleisure";
theSummaries[3] = '"IST Media were our first choice of internet consultancy firm when we decided to take our consumer electronics business online.  They were extremely friendly, helpful and professional from the outset, working with us and understanding the needs of our business from our website design through to our database design." - Fazana Hussain, Managing Director for 3 Pins';
theSiteLinks[3] = "retail.html#3pinsappliance";

setInterval( 
	function() {
		theCurrentStory++;
		theCurrentStory = theCurrentStory % theItemCount;
		theAnchorObject = document.getElementById("tickerAnchor");
		theAnchorObject.href = theSiteLinks[theCurrentStory];
		theStorySummary = theSummaries[theCurrentStory].replace(/&quot;/g,'"');
		theAnchorObject.innerHTML = theStorySummary;
		
		if(theCurrentLength != theStorySummary.length) {
			theCurrentLength++;
		} else {
			theCurrentLength = 0;
		}
	}, 
	20000
)

theCurrentStory++;
theCurrentStory = theCurrentStory % theItemCount;
theAnchorObject = document.getElementById("tickerAnchor");
theAnchorObject.href = theSiteLinks[theCurrentStory];
theStorySummary = theSummaries[theCurrentStory].replace(/&quot;/g,'"');
theAnchorObject.innerHTML = theStorySummary;
theCurrentLength++;