function geoBrowserShowParticipantsWindow(){
		$("#geo-browser-participant-header").show();
		$("#geo-browser-etape-header").hide();
		$("#geo-browser-participant-container").show();
		$("#geo-browser-etape-container").hide();
	}
	
function geoBrowserShowEtapesWindow(){
		$("#geo-browser-participant-header").hide();
		$("#geo-browser-etape-header").show();
		$("#geo-browser-participant-container").hide();
		$("#geo-browser-etape-container").show();
	}


function geoBrowserLoadEtape(week_id)
{
	geoBrowserShowEtapesWindow();
	$(".etape_loader").parent().removeClass('on');
	$(".etape_loader").filter(function(){return $(this).attr('rel')==week_id;}).parent().addClass('on');
	loadWeek(week_id);
}

function geoBrowserLoadParticipant(user_id)
{
	geoBrowserShowParticipantsWindow();
	$(".participant_loader").parent().removeClass('on');
	$(".participant_loader").filter(function(){return $(this).attr('rel')==user_id;}).parent().addClass('on');

	loadParticipant(user_id);
}

function geoBrowserLoadAll(week_id)
{
	geoBrowserShowParticipantsWindow();
	$(".participant_loader").parent().removeClass('on');
	loadAll();
}

$(document).ready(function(){ 

	// This sets the opacity of the thumbs to fade down to 60% when the page loads
	$("#geo-browser-show-participant").click(geoBrowserShowParticipantsWindow);
	$("#geo-browser-show-etape").click(geoBrowserShowEtapesWindow);

	$(".participant_loader").click(function(){geoBrowserLoadParticipant($(this).attr('rel'));})
	$(".etape_loader").click(function(){geoBrowserLoadEtape($(this).attr('rel'));})
	$(".all_loader").click(function(){geoBrowserLoadAll();})


});

