(function(){

	function ExpandHideRefinements() {};

	ExpandHideRefinements.hideAll = function() {
	   var moreLess = document.getElementById("moreLess");
	   var title = "";
	   if (moreLess != null) {
	      title = (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();
	});

})();








