$(document).ready(function () {


	// add a show/hide handle above all <code> blocks
	$('code').each(function (code) {
		$(this).hide();
		$(this).before('<a href="javascript:void;">Show Code</a>');
		$(this).prev().click(function () {
			this.innerHTML = (this.innerHTML == 'Show Code') ? 'Hide Code' : 'Show Code';
			$(this).next().toggle('slow');
		});
	});



});