 var newslist=new Array();
var cnt=0;			// current news item
var curr = "";
var i=-1;			// current letter being typed
var inc = 0;

newslist[inc]=new Array("Wellcome Trust backs counterfeit drug analysis project ","http://www.securingpharma.com/40/articles/538.php");
inc ++;

newslist[inc]=new Array("Lack of authentication 'undermines US anti-counterfeit strategy'","http://www.securingpharma.com/40/articles/537.php");
inc ++;

newslist[inc]=new Array("Oracle launches serialisation software for pharma","http://www.securingpharma.com/40/articles/536.php");
inc ++;

newslist[inc]=new Array("Bilcare unveils pharma clients for authentication tech","http://www.securingpharma.com/40/articles/535.php");
inc ++;


function newsticker() {
	var tickertxt = document.getElementById( 'tickertxt' );
	// next character of current item
	if (i < newslist[cnt][0].length - 1) {
		i++;
		temp1 = newslist[cnt][0];	
		temp1 = temp1.split('');	
  		curr = curr+temp1[i];
		temp2 = newslist[cnt][1];	
  		tickertxt.innerHTML = "<a href='"+temp2+"'>"+curr+"_</a>";
  		setTimeout('newsticker()',10);
		return;
	}

	// new item
	i = -1; curr = "";
	if (cnt<newslist.length-1)
		cnt++;
	else
		cnt=0;
	setTimeout('newsticker()',3000);
}