
$().ready(function() {

    function hash_handle(hash)
	{
	if(hash)
	{
	        $("div.members").hide().filter("#"+hash).show();
		$(".tabs li").removeClass("selected").filter("."+hash).addClass("selected");
	}
	else
	{
		hash_handle("employers");
	}
	return false;
	};	


    	$.history.init(hash_handle);
		$(".members li a").click(function(){
			// 
			var hash = this.href;
			hash = hash.replace(/^.*#/, '');
			// moves to a new page. 
			// pageload is called at once. 
			$.history.load(hash);
			return false;
		});
});


