// JQuery code for Expand/collapse action on Training Search Provider form
$(document).ready(function(){
	$("form#findtrainingf > fieldset > fieldset > fieldset").css({"height":"1.5em"})
	$("form#findtrainingf > fieldset > fieldset > fieldset legend").toggle(
	function(){
		$(this).parent().css({"height":"auto"});
		$(this).parent().addClass("closed");
	},
	function(){
		$(this).parent().css({"height":"1.5em"});
		$(this).parent().removeClass("closed");
	})
	// Initialise all tickboxes unticked
	$("form#findtrainingf input[@type='checkbox']").each(function() {
		this.checked = false;
	});
})