$(function () {
	$('h1').each(function () {
		var $h = $(this),
			$s,
			id = $h.attr('id');
		if(undefined!==id) {
			$h.removeAttr('id');
			$s = $('<div>').css('padding-top', 40).attr('id', id);
			$s.insertBefore($h);
		}
	});
	$('#topbar').scrollSpy();
});

