var MyUtils = {
	noheadfoot: function(element) {
		//$(element).href=$(element).href+"&noheadfoot=1";
/*
		element.observe('click',function(event) {
			var element = event.element();
			alert(element.href);
			return false;
		});
*/
		element.onclick = function() {
			var noheadfoot = element.href+"&noheadfoot=1";
			jQuery("#sidebar").load(noheadfoot);
			return false;
		};
	}
}

Element.addMethods(MyUtils);

jQuery(document).ready(function($) {
	$$('#communitylisting a').invoke("noheadfoot");
  $$('a.userlink').invoke("noheadfoot");
	$('a.toggle').click(function() {
		$($(this).attr('href')).toggle();
		if (($(this)).html() == '+') {
			($(this)).html('-');
		} else {
			($(this)).html('+');
		}
		return false;
	});
	//$('.starthidden').toggle();
});
