
$(document).ready(function() {

	$('#positions li a').click(function (evt) {
		$(".position").hide();
		$(this).closest('ul').find('a.selected').removeClass('selected');
		$(this).addClass('selected');
		var id = 'desc-'+$(this).attr('href').replace(/^#/,'');
		$('#'+id).show();
	});

	if (window.location.hash.replace(/^#/,'') == '') {
		$("#positions a:first").trigger('click');
	}
	else {
		$("#positions a[href='"+window.location.hash+"']").trigger('click');
	}

});

