function runStories()
{
	// :: Set the Start Values ::
	intActiveStory = 7;
	intCurrentLen = 0;

	if (document.getElementById) {	
		objItemScroller = document.getElementById("ItemScroller");
		startStories();
	}
}

function startStories()
{
	var myTimeout;  
	// Go for the next story data block
	if(intCurrentLen == 0)
	{
		intActiveStory++;
		intActiveStory = intActiveStory % intTotalStories;
		theStorySummary = arrNewsStories[intActiveStory][0];		
		objItemScroller.removeAttribute('href')
		if(arrNewsStories[intActiveStory][1] != '')
		{
			objItemScroller.setAttribute('href', arrNewsStories[intActiveStory][1]);
			objItemScroller.setAttribute('target', arrNewsStories[intActiveStory][2]);
		}
	}
	// :: update the scroller to the current story ::
	objItemScroller.innerHTML = theStorySummary.substring(0,intCurrentLen) + '_';

	// :: set the length and timeout for this story ::
	if(intCurrentLen < theStorySummary.length)
	{
		intCurrentLen++;
		intTimeout = theCharacterTimeout;
	}
	else
	{
		intCurrentLen = 0;
		intTimeout = intStoryChange;
	}

	// :: loop to the next story ::
	setTimeout("startStories()", intTimeout);
}

var theCharacterTimeout = 43;
var intStoryChange = 4500;
var arrNewsStories = new Array();

arrNewsStories[0] = new Array(3);

arrNewsStories[0][0] = "View our list of Club Sponsors: - Please click here for more information";
arrNewsStories[0][1] = "Default.asp?Area=Sponsors";
arrNewsStories[0][2] = "";
arrNewsStories[1] = new Array(3);

arrNewsStories[1][0] = "MANAGERS & COACHES WANTED: - Please click here for more information";
arrNewsStories[1][1] = "http://www.trevensonfc.co.uk/Documents/TFC%20Managers%20wanted%20Poster.doc.pdf";
arrNewsStories[1][2] = "_blank";
arrNewsStories[2] = new Array(3);

arrNewsStories[2][0] = "DIRECT LINK TO KERNOW LEAGUE RESULTS. Click Here.......";
arrNewsStories[2][1] = "http://www.kernowleague.com/season/";
arrNewsStories[2][2] = "";
arrNewsStories[3] = new Array(3);

arrNewsStories[3][0] = "FREE TRAINING VOUCHER AVAILABLE. Click for details......";
arrNewsStories[3][1] = "http://www.trevensonfc.co.uk/Default.asp?Area=NewsStory&Story=403";
arrNewsStories[3][2] = "";
arrNewsStories[4] = new Array(3);

arrNewsStories[4][0] = "Trevenson Cobras Under 12's Announce New Sponsor. Click for details";
arrNewsStories[4][1] = "http://www.trevensonfc.co.uk/Default.asp?area=NewsStory&Story=395";
arrNewsStories[4][2] = "";
arrNewsStories[5] = new Array(3);

arrNewsStories[5][0] = "TREVENSON INVITE SPONSORSHIP.........Click Here";
arrNewsStories[5][1] = "http://www.trevensonfc.co.uk/Default.asp?Area=Sponsors";
arrNewsStories[5][2] = "";

var intTotalStories = 6;

