
$(document).ready(function() {
	$('.taxonomy_nav li a').click(function() {
		var thisHREF = $(this).attr('href');
		if (thisHREF.indexOf("/#") == -1) return true;

		currentBG = $(this).parent().css('list-style-image');
		newBG = (currentBG.indexOf('-right') != -1) ? currentBG.replace(/-right/, '-down') : currentBG.replace(/-down/, '-right') ;

		// reset any items currently open
		$(this).parent().siblings().children('ul:visible').slideUp('fast');
		$(this).parent().siblings().css('list-style-image', currentBG.replace(/-down/, '-right'));

		// open the new item
		$(this).parent().css('list-style-image', newBG);
		$(this).siblings('ul').slideToggle('fast');

		return false;
	});
});
