jQuery.fn.navigateThisPage = function(selector,title) {
	document.write('<div id="' + title + '"><!-- --></div>');
	jQuery(function() {
		var n = jQuery('<ul class="navigatethispage"><!-- --></ul>');
		var l = n.filter('ul');
		var h = jQuery(document).find(selector);
		var c= 1;
		h.each(function() {
			var t = jQuery(this);
			if(!t.attr('id')) t.attr('id', 'h'+c++);
			var i = jQuery('<a></a>');
			i.attr('href', '#'+t.attr('id')).text(t.text());
			i.appendTo(l).wrap('<li></li>');
			});
		jQuery('#' + title).append(n);
		});
	
};
