var displaycats = {
	
	showAll : function(e) {

		
		var ul_elm = document.getElementById('categories');
		
	
	
		var li_elm = ul_elm.getElementsByTagName('LI');
		//Unhide all the elements. Even though 25 are being show and the rest hidden will will change the display on all of them
		for(i=0;i<li_elm.length;i++){
		
				li_elm[i].style.display = 'block';
		}
		//Now change the click here for more link to nothing
		
		var li_tohide = document.getElementById('morecategories');
		li_tohide.innerHTML = '';
	},
	
	linkcategory : function(e){
		
		var target = (e.target) ? e.target : e.srcElement;
		//alert(target.id)
		if(target.id != 'morecategories'){
			window.location='products.shtml#'+target.id;
		}
	}
}
