function filterContent() {

	// see if anything is checked at all
	var show_all = true;
	var show_classes = [];
	var show_count = 0;
	
	$("div#cbmr_type_filter div input").each(function(i) {
		if ($(this).attr("checked")) {
			// alert('selected option: ' + $(this).val());
			show_all = false;
			show_classes.push($(this).val());
		}
	});
	
	// cycle thru the divs
	$("div#cbmr_on_our_shelves div").each(function(d) {

		var d = $(this);
		var show = false;
		
		
		if (show_all) {
		
			show = true;
			
		} else {
		
			var tmp_show = true;
			for (var n=0; n < show_classes.length; n++) {
				if (!d.hasClass(show_classes[n])) {
					tmp_show = false;
				}
			}
			show = tmp_show;			
		
		}
			
		if (show) {
			$(this).show('fast');
			show_count++
		} else {
			$(this).hide('fast');
		}	
		
	});				
	
	if (show_count > 0) {
		$("div#cbmr_no_items").hide('fast');
	} else {
		$("div#cbmr_no_items").show('fast');	
	}
	
}
