//function load1(textHere){
//	document.getElementById('loading1').innerHTML = textHere;
	//document.getElementById('loading1').innerHTML = "l";
//}

function load2(){
	document.getElementById('loading1').innerHTML = "";
	document.getElementById('loading1').style.display = "none";
	clearInterval(begin);
}
var textHere = "Loading ";

//assign the first one - couter
	var curWindmill = 1;


//actual function to turn the windmill

function turn() {
	//check to see if you need to reset the counter
	if (curWindmill == 5) {
		curWindmill = 1;
		textHere = "Loading ";
		
	}
	else { 
		//add one to windmill
		++curWindmill;
		setdots();
	}
	
	
	document.getElementById('loading1').innerHTML =	textHere;
	
}
//used to start and stop the windmill
var begin;

// start the windmill

function startTurning() {
		
	//this will start the counter
	begin = setInterval("turn()",300);
}



function setdots() {


	for ( x=2; x<= curWindmill; x+=3) {
	
		textHere += ".";
	
	}

}