(function(){

	function ExpandHideRefinements() {};

	ExpandHideRefinements.hideAll = function() {
	   var title = (document.getElementById("moreLess").title);
	   if (title == null || title == "") {
	      title = "Show All";
	   }
      title = "[" + title + "]";
      
		$(".hiddenCategory,.hiddenAttribute,.hiddenAttributeValue").hide();
		$("#moreLess").text(title).
		unbind().
		click(function() {
			ExpandHideRefinements.showAll();
			return false;
		});
	};
	
	ExpandHideRefinements.showAll = function() {
		$(".hiddenCategory,.hiddenAttribute,.hiddenAttributeValue").show("fast");
		$("#moreLess").text("[hide]").
		unbind().
		click(function() {
			ExpandHideRefinements.hideAll();
			return false;
		});
	};
	 
	$(document).ready(function() {
		ExpandHideRefinements.hideAll();
	});

})();








