// JavaScript Document
var str = new Array();
str[0] = "MindSpark'11 was a Grand Success with a participation of about 6000 and a footfall of over 12000!!"
str[1] = "We thank all our Sponsors for their kind support."
str[2] = "VIT bagged the title of Technical Championship and GCOE, Amravati was crowned the most enthusiastic college."


var kar = new Array();
kar[0] = "http://www.mind-spark.org/";
kar[1] = "http://www.mind-spark.org/sponsors.php";
kar[2] = "http://www.mind-spark.org/championship.php"

var c = 0, update = 0;
//document.getElementById("update").setAttribute("onclick","location.assign('"+kar[0]+"');");
$(document).ready(function(){
$("#update").click(function(){
	window.location.assign(kar[update]);
});
});
$(document).ready(function type(){
	$("#update").append(str[update].substring(c,c + 1));
	setTimeout(function(){
		if(c == str[update].length){
			c = 0;
			if(update == str.length - 1)
				update = 0;
			else
				update = update + 1;
			//document.getElementById("update").setAttribute("onclick","location.assign(&#34"+kar[update]+"&#34);");
			setTimeout(function(){$("#update").text("");type();},3000);
		}
		else{
			c = c + 1;
			type();
		}
	},65);
});

