/**
 * yaa (yet another accordion)
 *
 * http://www.604media.com/jquery
 *
 * Copyright (c) 2008 Tim Kraumanis
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 * Version: 1.0a
 */

(function($) {


$.fn.yaa = function(settings) {

    // settings
    settings = $.extend({
		activeClass: 'header_highlight',
        headClass: 'accordion_heading',
        contentClass: 'accordion_content',
		slideTime: 300
    }, settings || {});

    return this.each(function() {

		$(this).children('.' + settings.contentClass).hide(); 
		$(this).children('.' + settings.activeClass).next('.' + settings.contentClass).show();
		$(this).find('.' + settings.headClass).click(function() {
			$(this).next('.' + settings.contentClass).slideToggle()
			.siblings('.' + settings.contentClass + ':visible').slideUp(settings.slideTime);
		});
    
	

	});

};



})(jQuery);