var max=0;
function textlist()
{
   max=textlist.arguments.length;
   for (i=0; i<max; i++)
	    this[i]=textlist.arguments[i];
}
tl=new textlist
(
   "Book an Appointment" 
);
var x=0; pos=0;
var l=tl[0].length;

function textbook()
{
	document.getElementById('book').innerHTML=tl[x].substring(0,pos);

	if(pos++==l)
	{
		pos=0;
		setTimeout("textbook()",3000);
		x++;
		if(x==max)
			x=0;
		l=tl[x].length;
	} else
		setTimeout("textbook()",50);
}
