var lgth=0;
// from http://www.globalrph.com/davescripts/click.htm

// list news items here (use as many as you need. Use quotes around each one and end each line with a semicolon)
var a1= "We're amongst the most responsible businesses in the UK";
var a2="We're Britain's most trusted brand";
var a3="Virtually all our electricity is sourced from wind and water power";
var a4 = "We are one of the largest purchasers of wind and water power";
var theAnchorObject = "<a href = 'walking_the_talk.php'>"

//Follow the format below, e.g. the next message would be a4, a5 etc.
davesitems = new items(a1,a2,a3, a4);

// ****  Do not alter below this line *****************************************
var ini = 0; var st = 0; var x = davesitems[0].length;

function items() 
{
		lgth = items.arguments.length;
		
		for (i = 0; i < lgth; i++)
		{
			this[i] = items.arguments[i];
		}
}

function newsclicker()
{
	var temp = davesitems[ini].substring(0,st) + "_";
	document.davesnewsform.davestextbox.value = temp;
	
	if(st++==x) 
	{ 
		//Adjust timer for delay between messages
		st=0; setTimeout("newsclicker()",2000); ini++;
		if (ini==lgth) 
		{	
		ini=0; x=davesitems[ini].length; 
		}
	} 
	else
	{
		//adjust timer for "clicking speed" eg letter,letter,letter....
		setTimeout("newsclicker()",30);
	}
	
	return temp;
	
}
//-->
