// news ticker function
var newslist=new Array();
var cnt=0;			// current news item
var curr = "";
var i=-1;			// current letter being typed

newslist[0]=new Array("Check out the share check javascript","t_sharecheck.html")
newslist[1]=new Array("Use this javascript to create your own fruit machine","t_fruity.html")
newslist[2]=new Array("Create a To Do list with this script","t_todolist.html")
newslist[3]=new Array("Use this script to register users on your site","t_register.html")
newslist[4]=new Array("This script tells your users the last time they visited your site","t_greetings.html")

function newsticker()
{
	// 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];	
  		mtxt.innerHTML = "<small><a href='"+temp2+"'><font color='#ff0000'>"+curr+"_</small></font></a>";
  		setTimeout('newsticker()',10)
		return;
	}

	// new item
	i = -1; curr = "";
	if (cnt<newslist.length-1)
		cnt++;
	else
		cnt=0;
	setTimeout('newsticker()',3000)

}



