// 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() {
    $( 'div.notes' ).before( '<p class="control"><a class="trigger" href="#">Design notes</a></p>' );
    $( 'div.notes' ).hide();
    $( 'a.trigger' ).toggle (
      function () {
        $(this.parentNode.nextSibling).slideDown('slow');
        $(this).html( 'Close notes' );
      },
      function () {
        $(this.parentNode.nextSibling).slideUp('fast');
        $(this).html( 'Design notes' );
      }
    )
  }
)

// load these
// addLoadEvent(name);
