function pageload(hash) {
	if(hash) {
		$("#load").block({ message: '<img src="images/carregando.gif" />' });
		$("#load").load(hash + ".asp");
	} else {
		$("#load").load("websites.asp");
	}
};

$(document).ready(function() {
	$.historyInit(pageload);

	$("a[@rel='history']").livequery('click',function() {
		var hash = this.href;
		hash = hash.replace(/^.*#/, '');
		$.historyLoad(hash);
		return false;
	});
});