var i, timeToShowEachFrameMS;

function init() {
	document.getElementById('logo1').style.visibility = "hidden";
	document.getElementById('logo2').style.visibility = "hidden";
	document.getElementById('logo3').style.visibility = "hidden";
	//document.getElementById('logo4').style.visibility = "hidden";
	
	i = 0;
	timeToShowEachFrameMS = 150;
	
	show1();
}

function show1() {
	i++;
	document.getElementById('logo1').style.visibility = "visible";
	if(i < 660) {
		setTimeout('hide1()',timeToShowEachFrameMS);
	}
}
function hide1() {
	document.getElementById('logo1').style.visibility = "hidden";
	setTimeout('show2()',1);
}
function show2() {
	document.getElementById('logo2').style.visibility = "visible";
	setTimeout('hide2()',timeToShowEachFrameMS);
}
function hide2() {
	document.getElementById('logo2').style.visibility = "hidden";
	setTimeout('show3()',1);
}
function show3() {
	document.getElementById('logo3').style.visibility = "visible";
	setTimeout('hide3()',timeToShowEachFrameMS);
}
function hide3() {
	document.getElementById('logo3').style.visibility = "hidden";
	setTimeout('show1()',1);
}


function show4() {
	document.getElementById('logo4').style.visibility = "visible";
	setTimeout("hide4()",timeToShowEachFrameMS);
}
function hide4() {
	document.getElementById('logo4').style.visibility = "hidden";
	setTimeout("show1()",timeToShowEachFrameMS);
	console.log('hide4');
}



