/**
 * Coach registration JavaScript
 * 
 * @author Ollie Maitland
 * @copyright Byng Systems LLP
 * 
 */
var Registration = {

	/**
	 * Toggle the county input
	 * 
	 * @param HTMLElement input
	 * @param HTMLElement localAuthorities
	 * @param HTMLElement counties
	 * @param HTMLElement wrap  
	 */
	toggleInput : function (input, localAuthorities, counties, wrap)
	{
		if (input.checked == true) {
			localAuthorities.disabled = true;
			counties.disabled = false;
			ByngUI.toggle(wrap);
		} else {
			localAuthorities.disabled = false;
			counties.disabled = true;
			ByngUI.toggle(wrap);			
		}
	}
	
}

window.addEvent('domready', function(){
		
	/*	var toggler = $$('.article h2').addClass('button-toggler');
		var togglee = $$('.article .pane');

		var showPane = new Fx.Accordion(toggler , togglee, {
			opacity	:	0,
			//show	:	1,
			onActive: function(toggler) { toggler.addClass('active'); },
			onBackground: function(toggler) { toggler.removeClass('active'); }
		  });
	*/
});	
