$(document).ready(function(){
//	$('.subcat').hide();
//	$('.subsubcat').hide();
	
	$('.cat').live("click", function(event){
		if ($(this).find('a:first').attr("href")=='#'){
			event.preventDefault();	
			if ($(this).find('.subcat:first').css("display")=='block'){
				$(this).find('.subcat:first').hide("slow");
			} else {
				$(this).find('.subcat:first').show("slow");			
			}					
		}
	});

	$('.subcat li').click( function(event) {
		event.stopPropagation();
		if ($(this).find('a:first').attr("href")=='#'){
			event.preventDefault();	
			if ($(this).find('.subsubcat:first').css("display")=='block'){
				$(this).find('.subsubcat:first').hide("slow");
			} else {
				$(this).find('.subsubcat:first').show("slow");			
			}						
		}		
	});	
	
	$('.subsubcat').click( function(event) {
		event.stopPropagation();
	});	
});
