$(document).ready(function()
{
	$('a[rel=external]').click(function()
	{
		window.open(this.href);
		return false;
	});
	

	$('a[href^=#]').each(function(i){
		$(this).attr('href', location.href+$(this).attr('href'));
	});

});
