function filterCoffee(coffeeIDsStr) {
	// First clear all previously highlighted coffee sections
	clearHighlightedCoffee();
	var coffeeIDsArr = coffeeIDsStr.split(",");
	// Now run through the array of coffee section IDs passed from the flash widget and highlight each one
	for (var i=0; i<coffeeIDsArr.length; i++) {
		highlightCoffee(coffeeIDsArr[i]);
	}
}

function highlightCoffee(coffeeID) {
	var coffeeSection = document.getElementById(coffeeID);
	if(coffeeSection) coffeeSection.className = "filtered";
}

function clearHighlightedCoffee() {
	var coffeeSections = cssQuery("#coffeeLists li");
	for (var i=0; i<coffeeSections.length; i++) {
		coffeeSections[i].className = "";
	}
}
