// http://forum.mootools.net/viewtopic.php?id=2713					

			Accordion.implement({

				showAll: function() {

					var obj = {};

					this.elements.each(function(el, i){

						obj[i] = {};

						this.fireEvent('onActive', [this.togglers[i], el]);

						for (var fx in this.effects) obj[i][fx] = el[this.effects[fx]];

					}, this);

					return this.start(obj);

				},

				hideAll: function() {

					var obj = {};

					this.elements.each(function(el, i){

						obj[i] = {};

						this.fireEvent('onBackground', [this.togglers[i], el]);

						for (var fx in this.effects) obj[i][fx] = 0;

					}, this);

					return this.start(obj);

				}

			});

		

			// - - - - - - - - - - - - - - - - - - 

		

			window.addEvent('domready', function()

			{	

				// build the accordion...

				var accordion = new Fx.Accordion('#accordion h3.toggler', '#accordion div.element', 

					{

						opacity: false

						, onActive: function(toggler, element)

						{

							toggler.setStyle('color', '#fff');

						}

						

						, onBackground: function(toggler, element)

						{

							toggler.setStyle('color', '#fff');

						}

					}, 

					$('accordion')

				);

				

				// gather up the close buttons

				var close = $$(".content a.close");	

				

				// and append the close mechanics

				$each( close, function ( element )

					{

						element.addEvent( "click"

							, function ( e )

							{

								e = new Event(e);

								accordion.hideAll ();

								e.stop ();

								return false;

							}

						);

					}

				);

				

			});

