var wait = 100 		//sleep time until next letter (milliseconds)
var message = new Array()
message[0] = " Welcome to V P M P "
message[1] = " V P M P  Polytechnic college, Gandhinagar, Gujarat [INDIA]"
var msgs = 1 		//Number of message (0 is first)

var temp = ""		//Do not modify these... (recommended)
var curmsg = 0
var a = 0
var counter = 0

function typew()
{
	a = a + 1
	check()
	window.status = message[curmsg].substring(0, a)
	if(a == message[curmsg].length + 5)
	{
		curmsg = curmsg + 1
		a = 0
	}
	if(curmsg > msgs)
	{
		curmsg = 0 
	}
	counter = setTimeout("typew()", wait)
}
	
function check()
{
	if(a <= message[curmsg].length)
	{
		if(message[curmsg].substring(a, a + 1) == "")
		{
			a = a + 1
			check()
		}
	}
}
typew();
