(function($) {

$.fn.initAccordion = function()
{
	return this.each(function()
	{
		$this = $(this);
		
		$this.find(".aContent").hide();
		
		var myTrigger = ' <em class="aTrigger">Learn more...</em>';
		
		$this.find('p:eq(0)').append(myTrigger);
	
		$this.find(".aTrigger").hover(function()
		{
			$(this).addClass("hover");
		},function()
		{
			$(this).removeClass("hover");
		}).click(function()
		{
			$(this).toggleClass("active").parent().next(".aContent").slideToggle("slow");
			
			if ($.browser.msie) //ie doesn't like next() fcn
			{
				$(this).parent().find(".aContent").slideToggle("slow");
			}
		});
		
	});
};

})(jQuery)