function whatStamp(){
	return myStampNone;
}	
function runHeadline(){
	var myTimeout;
	if(myLength == 0){
		thisStory++;
		thisStory = thisStory % myCount;
		mySummary = mySummaries[thisStory].replace(/&quot;/g,'"');
		myURL = myLinks[thisStory];
		myObj.href = myURL;
		myStart = "<span class=\"headls\">" + theLeadString + "</span>";
	}
	
	myObj.innerHTML = myStart + mySummary.substring(0,myLength) + whatStamp();
	
	if(myLength != mySummary.length){
		myLength++;
		myTimeout = myCharTime;
	} else {
		myLength = 0;
		myTimeout = myStoryTime;
	}
	
	setTimeout("runHeadline()", myTimeout);
}

function startHeadline(){
	thisStory = -1;myLength = 0;
	if (document.getElementById){
		myObj = document.getElementById("headlineBase");
		runHeadline();
	} else {
		document.write("<style>.headi{display:none;}.heado{border:0px; padding:0px;}</style>");
		return true;
	}
}

//var myCount = 4;
var myCharTime = 50;
var myStoryTime = 5000;
var myStampOne = "_";
var myStampTwo = "-";
var myStampNone = "";
var theLeadString = "";

startHeadline();


