/*here must be a Copyright by MooTools
  found at http://demos.mootools.net/Accordion
  a short manipulation was done. 
*/


window.addEvent('domready', function() {
	
	//create our Accordion instance
	var myAccordion = new Accordion($('accordion'), 'h3.toggler', 'div.element', {
		opacity: false,
		onActive: function(toggler, element){
			toggler.setStyle('color', '#FFFFFF');
		},
		onBackground: function(toggler, element){
			toggler.setStyle('color', '#FFFFFF');
		}
	});

	//add click event to the "add section" link
	myAccordion.addEvent('click', function(event) {
		event.stop();	
	});



	var Element = $('FeedbackElement');
		
	$('open').addEvent('click', function()
	{
	  Element.tween('margin-top', 0);
	  return false; // alternative syntax to stop the event
	});	
	
	
	$('open2').addEvent('click', function() 
	{
	  Element.tween('margin-top', -310);
	  return false; // alternative syntax to stop the event
	});

});
