(function($) {
$.fn.Accordion = function() {
	$(this).find('ul').hide();
	$(this).find('ul:first').show();
	$(this).find('li a').click(
		function() {
			var checkElement = $(this).next();
			if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
				return false;
			}
			if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
				$(this).parents('ul').find('ul:visible').slideUp('normal');
				checkElement.slideDown('normal');
				return false;
			}
		}
	);
}

})(jQuery);