	// Control parameters
	var theCharacterTimeout = 100;
	var theStoryTimeout     = 3000;
	var theWidgetOne        = "_";
	var theWidgetTwo        = "-";
	var theWidgetNone       = "";
	if(!theSummaries) var theSummaries = new Array();
	if(!theSiteLinks) var theSiteLinks = new Array();
    var theItemCount = theSummaries.length;
	var NS6=(document.getElementById && !document.all) ? true : false;
	
// Ticker startup

function startTicker()
{
	theCurrentStory     = -1;
	theCurrentLength    = 0;
	if (document.getElementById) {	
		runTheTicker();   	
	}
	else {
            document.write("<style>.ticki{display:none;}.ticko{border:0px; padding:0px;}</style>");
            return true;
	}
}
// Ticker main run loop
function runTheTicker()	{
	var myTimeout;  
	if(theCurrentLength == 0)
	{
		theCurrentStory++;
		theCurrentStory      = theCurrentStory % theItemCount;
		theStorySummary      = theSummaries[theCurrentStory];
		theTargetLink        = theSiteLinks[theCurrentStory];
	}
	if(theStorySummary && theStorySummary!='')
		var textTitle = theStorySummary.substring(0,theCurrentLength) + whatWidget();
	else
		var textTitle = '';
	if (theTargetLink ) {
	
		if (NS6) {
					
					document.getElementById("TypeWriter1_theTicker").innerHTML  = '<a href="ShowNews.php?'+ theTargetLink +'" target="_top" class="siteNavigation" style="text-decoration:none;color:#7A839A;">'+textTitle+'</a>';
				 }
		else {
				if(document.getElementById("TypeWriter1_theTicker"))
					document.all.TypeWriter1_theTicker.innerHTML  = '<a href="ShowNews.php?'+ theTargetLink +'" target="_top" class="siteNavigation" style="text-decoration:none;color:#7A839A;">'+textTitle+'</a>';
				}
		} 	
	else {
		if (NS6) {
				document.getElementById("TypeWriter1_theTicker").innerHTML = '<span class="tickertext">'+textTitle+'</span>';
		}
		else {
				if(document.getElementById("TypeWriter1_theTicker"))
					document.all.TypeWriter1_theTicker.innerHTML  = '<span class="tickertext">'+textTitle+'</span>';
		}
	}
	
	if(theStorySummary && theStorySummary!='')	{
		if(theCurrentLength != theStorySummary.length)
		{
			theCurrentLength++;
			myTimeout = theCharacterTimeout;
		}
		else
		{
			theCurrentLength = 0;
			myTimeout = theStoryTimeout;
		}
	}
	setTimeout("runTheTicker()", myTimeout);
}
function whatWidget()
{
	if(theCurrentLength == theStorySummary.length)
	{
		return theWidgetNone;
	}

	if((theCurrentLength % 2) == 1)
	{
		return theWidgetOne;
	}
	else
	{
		return theWidgetTwo;
	}
}

startTicker();
