﻿/*============================================================================
	Copyright 2010/2011 Muppet's T.T. Auderghem (http://www.muppetsauderghem.be)
	Author : Frédéric SCHOLER, web architect (frederic.scholer@gmail.com)
//
- Version 2 (août 2011) : passage à jQuery et (plus tard ?) ajout de fonctionnalités
- Version 1 (janvier 2010) : le code est opérationnel, mais devrait être "modernisé"
============================================================================*/
jQuery(document).ready(function($) {
	var les6tables = $('#table1_tour1, #table2_tour1, #table1_tour2, #table2_tour2, #table1_tour0, #table2_tour0'); // les 6 tables
	les6tables.hide();
	$('#table1_tour0, #table2_tour0').show();
	$('#choice_top0 span, #choice_top1 span, #choice_top2 span, #choice_middle0 span, #choice_middle1 span, #choice_middle2 span').click(function() {
		var cible = $(this).text();
		les6tables.hide();
		switch(cible) {
			case('1er tour') :
				$('#table1_tour1, #table2_tour1').show();
			break;
			case('2ème tour') :
				$('#table1_tour2, #table2_tour2').show();
			break;
			case('complet') :
				$('#table1_tour0, #table2_tour0').show();
			break;
		}
	});
});
