		$('body').fadeOut("fast");
		$('body').fadeIn("slow");
		$('.hint').fadeOut(0);
function validate(){

	var user = document.getElementById("user").value;
	var pass = document.getElementById("pass").value;

	if (user=="wccapm"&&pass=="mpaccw"){
		document.getElementById('progressbar').style.visibility='visible';
		
		$(function() {
			var i=0;
			function changei(){
				$( "#progressbar" ).progressbar({
					value: i
				});
				$( "#progressbar ").progressbar({
					complete: function(){
							$("#progressbar").fadeOut("slow");
							$("body").fadeOut("fast");
							function goToNextWindow(){window.location='welcome.html';}
							setTimeout(goToNextWindow,1000);
					}
				})
				i=i+(Math.random()*2);
				document.getElementsByClassName('progress-text')[0].innerHTML = Math.round(i) + '% Complete.';
				setTimeout(changei,15);
			}
			changei();
			
		});
		
		document.getElementById("body").style.backgroundColor="lightgreen";
		} else {
		$(".center").effect('shake', 1000);
		$(".hint").fadeIn("fast");
	}

}

function loadComplete(){
	var img = document.getElementById("load");
	$("#load").fadeOut("slow");
	
}

setTimeout(loadComplete,1000);

