// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

// For jQuery Cluetip plugin
$(document).ready(function() {  
  $('a.tips').cluetip({
		splitTitle: '|'
	});
});

// Andy Langton's show/hide/mini-accordion - updated 18/03/2009
// Modified by SA on may 26, '09
// this tells jquery to run the function below once the DOM is ready
$(document).ready(function() {	
	$('.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;
	});
});
