//Create an array 

var allPageTags = new Array(); 



function toggle(theClass) {

	//Populate the array with all the page tags

	var allPageTags=document.getElementsByTagName("*");

	//Cycle through the tags using a for loop

	for (i=0; i<allPageTags.length; i++) {

		//Pick out the tags with our class name

		if (

			allPageTags[i].className=='babydance' ||

			allPageTags[i].className=='preschool' ||

			allPageTags[i].className=='kindergarten' ||

			allPageTags[i].className=='ballet' ||

			allPageTags[i].className=='jazzhiphop' ||

			allPageTags[i].className=='modern' ||

			allPageTags[i].className=='hiphop' ||

			allPageTags[i].className=='yoga' ||

			allPageTags[i].className=='specialneeds' ||

			allPageTags[i].className=='tap' ||
			
			allPageTags[i].className=='pilates' ||
			
			allPageTags[i].className=='zumba'

		) {

			allPageTags[i].style.display='none';

		}

		if (allPageTags[i].className==theClass) {

			allPageTags[i].style.display='block';

		}

	}

}
