// JavaScript Document
function helpslide(){
	window.addEvent('domready', function() {
		var helpSlider = new Fx.Slide('getting_started_slide',{
			duration: 1000,
			transition: Fx.Transitions.Bounce.easeOut
		});
		
		helpSlider.hide();
		
		$('slide_btn').addEvent('click', function(e){
			e.stop();
			helpSlider.toggle();
		});
	
	});
};

function accessibility(){
	window.addEvent('domready', function() {
		var anotherEl = $('right_column_wrap');
		
		// Again we are able to create a morph instance
		var morph = new Fx.Morph('right_column_wrap');
		
		// Or we just use Element.morph
		$('acc_9_btn').addEvent('click', function(e) {
			e.stop();
			// Changes the element's style to .myClass defined in the CSS
			anotherEl.morph('.acc_9');
		});
		$('acc_12_btn').addEvent('click', function(e) {
			e.stop();
			// Changes the element's style to .myClass defined in the CSS
			anotherEl.morph('.acc_12');
		});
		$('acc_14_btn').addEvent('click', function(e) {
			e.stop();
			// Changes the element's style to .myClass defined in the CSS
			anotherEl.morph('.acc_14');
		});

	});
};

//-----------------new element

function jargon(){
	window.addEvent('domready', function() {
		
		//create our Accordion instance
		var myAccordion = new Accordion($('jargon'), 'h3.toggler', 'div.jargon_element', {
			opacity: false,
			onActive: function(toggler, element){
				toggler.setStyle('color', '#9501AD');
				element.setStyle('color', '#21004F');
			},
			onBackground: function(toggler, element){
				toggler.setStyle('color', '#999999');
				element.setStyle('color', '#cccccc');
			}
		});
	
		//add click event to the "add section" link
		$('add_section').addEvent('click', function(event) {
			event.stop();
			
			
			
		});
	});	
};
