function switchBack(id) {
	new_call = 'test'+id;
	
	for (i = 1; i < (total+1); i++) {
		old_call = 'test'+i;
		windowShade(old_call, '0px', '0px', 'hidden');
	}

	windowShade(new_call, '340px', '', 'visible');
	
}

function autoRotate(){
	if(count == total) {
		count = 1;
	} else {
		count = count + 1;
	}
	switchBack(count);
}

function startRotation () {
	rotation = setInterval("autoRotate()", interval);
}

function windowShade(divLoc, wdth, hght, vsblty) {
	document.getElementById(divLoc).style.width = wdth;
    document.getElementById(divLoc).style.height = hght;
   	document.getElementById(divLoc).style.visibility = vsblty;
 	if(vsblty == "visible") {
   		document.getElementById(divLoc).style.display = "block";
   	} else {
   		document.getElementById(divLoc).style.display = "none";
   	}
}
