<!--
var theCharacterTimeout = 40;
var theStoryTimeout     = 5000;
var theHeadlines = new Array();

// Ticker startup
function startTicker()
{
	if (theHeadlines.length > 0) 
	{				
		theCurrentStory     = -1;
		theCurrentLength    = 0;
						
		if (document.getElementById) 
		{	
			theAnchorObject     = document.getElementById("tickerAnchor");
			theNoLinkObject		= document.getElementById("ticker_no_link");
			runTheTicker();   	
		} 
		else 
		{
			document.write("<style>.ticki{display:none;}.ticko{border:0px; padding:0px;}</style>");
			return true;
		}
	}
}


function runTheTicker()
{
	var myTimeout;  
	// next story 
	if(theCurrentLength == 0)
	{
		theCurrentStory++;
		theCurrentStory      = theCurrentStory % theHeadlines.length;
		theStorySummary      = theHeadlines[theCurrentStory][0].replace(/&quot;/g,'"');		
		theTargetLink        = theHeadlines[theCurrentStory][1];
		theAnchorObject.href = theTargetLink;
		theAnchorObject.target = theHeadlines[theCurrentStory][2];
		theAnchorObject.style.color = theHeadlines[theCurrentStory][3];		
		theAnchorObject.onclick = function() 
		{			
			googleAdTracker(theHeadlines[theCurrentStory][4]);
		}		
	}
	if (theTargetLink != "") 
	{
		//identify html entity and move to end of entity before printing out to browser
		if (theStorySummary.substring(theCurrentLength - 1,theCurrentLength) == "&")
		{					
			//move on to next letter of entity
			theCurrentLength = theCurrentLength + 1;
			
			// carry on creating entity until ; is reached i.e. the end
			while (theStorySummary.substring(theCurrentLength - 1,theCurrentLength) != ";")
			{	
				//move on to next letter of entity			
				theCurrentLength = theCurrentLength + 1;				
			}
			
			//move on to next letter of entity					
			theCurrentLength = theCurrentLength + 1;			
		}
		else
		{
			theNoLinkObject.innerHTML = "";		
			theAnchorObject.innerHTML = theStorySummary.substring(0,theCurrentLength);
		}	
	} 
	else 
	{
		theAnchorObject.innerHTML = "";
		theNoLinkObject.innerHTML = theStorySummary.substring(0,theCurrentLength);
	}	
	if(theCurrentLength != theStorySummary.length)
	{
		theCurrentLength++;
		myTimeout = theCharacterTimeout;
	}
	else
	{
		theCurrentLength = 0;
		myTimeout = theStoryTimeout;
	}
	// Call up the next cycle of the ticker
	setTimeout("runTheTicker()", myTimeout);
}
// -->