$(document).ready(function(){
	//Expand the menus on top. This requires jquery.slidePanel.js
	$('#global-kx a, #global-vmc a, #global-chin a').slidePanel({
		role: 'toggle-accordion',
		speed: 'normal', // normal is the default. fast and slow are other options
		target: getHeader
	});

	//This is for the sort set-up by RDEndecatags.jar
	layoutSortForm();
});

var getHeader = function(panel){
	return $('#' + panel.parent().attr('id').replace(/global/,'header'));
};

//Nexus function to display the Sort Form differently with or without Javascript
function layoutSortForm()
{
	//hide the submit button
	$("#recsort-submitter").addClass("hidden");

	//change the style of the sort-nav div (to resize it for example)
	$("#sort-nav").removeClass("completelayout");
	$("#sort-nav").addClass("simplerlayout");
}


