function pageload(hash) {
	//alert(hash.split('.')[0]);
	$('#tabNav').tabs("select", hash.split('.')[0]);
	/*
	if(hash) {
		$("#load").load(hash);
	} else {
		$("#load").empty();
	}
	*/
}

$(document).ready(function(){
	//fl20090312 - we don't have tabs, so we exit
	if ($("#tabNav").length == 0) {
		return;
	}

	$.history.init(pageload);
	$("#tabNav a").click(function(){
				var hash = this.href;
				hash = hash.replace(/^.*#/, '');
				//if (!($.browser.msie && $.browser.version == 7)) {
					$.history.load(hash);
				//}
			return false;
	});
	
	$('#tabNav').tabs({	
			fx : {
					//height: 'toggle',
					opacity: 'toggle',
					duration: 200
			}
		}
	)

	if ($('#tabNav').tabs('length') == 1) 
	{
		$('#tabNav').hide();
		$('#pnlLoaders div:first-child').css("border-top", "none");
	}
	
	$('#tabPlaceholder').toggle();
	$('#tabContainer').toggle();
});

function showContainer() 
{
/*
	document.getElementById('tabPlaceholder').style.display = 'none';
	document.getElementById('tabContainer').style.display = 'block';
*/
}
