// Show only one object ////////////////////////////////////////////////////////////////////////////////
function showElement(objectList, objectName){
	// loop thru each object in the object list array
	for (var i=0; i < objectList.length; i++){
		
		// check if currect objectList element matches the object name passed in
		if (objectList[i] == objectName){
			// if yes, then show object on page
			document.getElementById(objectName).style.display = 'block';
		}
		
		// if objects do not match
		else {
			// hide object on page
			document.getElementById(objectList[i]).style.display = 'none';
		}
		
	}
}

// Show all elements ///////////////////////////////////////////////////////////////////////////////////
function showAllElements(objectList){
	
	// loop thru each object in the object list array
	for (var i=0; i < objectList.length; i++){
		
		// show element
		document.getElementById(objectList[i]).style.display = 'block';
		
	}
	
}


// Hide only one object ////////////////////////////////////////////////////////////////////////////////
function hideElement(objectList, objectName){
	// loop thru each object in the object list array
	for (var i=0; i < objectList.length; i++){
		
		// check if currect objectList element matches the object name passed in
		if (objectList[i] == objectName){
			// if yes, then hide object on page
			document.getElementById(objectName).style.display = 'none';
		}
		
		// if objects do not match
		else {
			// show object on page
			document.getElementById(objectList[i]).style.display = 'block';
		}
		
	}
}

// Hide all elements ///////////////////////////////////////////////////////////////////////////////////
function hideAllElements(objectList){
	
	// loop thru each object in the object list array
	for (var i=0; i < objectList.length; i++){
		
		// show element
		document.getElementById(objectList[i]).style.display = 'none';
		
	}
	
}
