// event loader
function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			oldonload();
			func();
		}
	}
}

// jquery show/hide
$( document ) . ready (
  function showhide() {
	$( 'p.fullProfile' ).before( '<p class="control"><a class="trigger" href="#">expand profile</a></p>' );
	$( 'p.fullProfile' ).hide();
	$( 'a.trigger' ).toggle (
	  function () {
		$(this.parentNode.nextSibling).slideDown('slow');
		$(this).html( 'close profile' );
	  },
	  function () {
		$(this.parentNode.nextSibling).slideUp('fast');
		$(this).html( 'expand profile' );
	  }
	)
  }
)

// load these
// addLoadEvent(name);