function prodFilter(evt) {
	//hide em to start, then show only the class selected 
	$("#articles .productThmb").css("display","none");	
	var getClass = $(this).attr("rel");
	$("#articles ." + getClass).css("display","block");
		
	/* Would have been cool to change the URL without reloading, for bookmarking purposes. Another day
	var getURL = $(this).attr("href");
	window.location.replace = getURL;
	*/
	
	evt.preventDefault();
}

function prodShowAll(evt) {
	$("#articles .productThmb").css("display","block");
	//hide all to start
	$("#sideBarLeft ol ol").css("display","none");	
	
	/* Would have been cool to change the URL without reloading, for bookmarking purposes. Another day
	var getURL = $(this).attr("href");
	window.location.replace = getURL;
	*/
	
	evt.preventDefault();
}

function prodExpandSubmenu() {
	//hide all to start
	$("#sideBarLeft ol ol").css("display","none");
	
	var currItem = $(this).parent();
	$("ol",currItem).css("display","block");	
}

//assign the filter to all links in the left navigation
function prodFilterSetup() {
	$("#sideBarLeft a#showAll").bind("click",prodShowAll);
	$("#sideBarLeft ol a").bind("click",prodFilter);
	$("#sideBarLeft a.tier1").bind("click",prodExpandSubmenu);
	
	$("#sideBarLeft ol ol").css("display","none");
	
	
}
$("document").ready(prodFilterSetup);
