$(document).ready(function() {
	
	// Works with autoresize jQuery plugin
	$('textarea#resizeable').autoResize({
		limit : 400,
		extraSpace : 25
	}).trigger('change');
	
	// Andy Langton's show/hide/mini-accordion - updated 18/03/2009
	// Modified by SA on may 26, '09
	$('.collapsablelink').show();
	$('.collapsable').hide();
	// capture clicks on the toggle links
	$('a.toggleLink').click(function() {
		// Remove the link once it has been clicked
		$('.collapsablelink').hide(400);
		$('.collapsable').show(400);
		// return false so any link destination is not followed
		return false;
	});
	
	// This is necessary to enable the accordion on the welcome page of notes 
	$('#accordion').accordion();

});
