function montre(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}

function look(id)
{
	var doc = document.getElementById(id);
	var doc1 = document.getElementById('cadre_texte_bas');
	var doc101 = document.getElementById('cadre_texte2_bas');
	var doc21 = document.getElementById('cadre_texte_haut');
	var doc121 = document.getElementById('cadre_texte2_haut');
	var doc22 = document.getElementById('cadre_information_haut');
	var doc23 = document.getElementById('titre_selection');
	var doc2 = document.getElementById('cadre_information_milieu');
	var doc3 = document.getElementById('cadre_information_bas');
	var doc4 = document.getElementById('cadre_principal_bas');
	var doc5 = document.getElementById('cadre_principal_milieu');
	var doc6 = document.getElementById('cadre_comite_haut');
	var doc7 = document.getElementById('cadre_comite_milieu');
	var doc8 = document.getElementById('cadre_comite_bas');
	var doc9 = document.getElementById('cadre_bas');
	var doc10 = document.getElementById('cadre_gauche');
	var doc11 = document.getElementById('cadre_droit');
	var doc12 = document.getElementById('cadre_texte_milieu');
	var doc13 = document.getElementById('imprimante');
	var doc14 = document.getElementById('affichage_classements');

	if (document.all) // ok I.E 
		{
			if (id=='affichage_details_joueurs')
				{
					H1 = doc.offsetHeight;
					H2 = doc2.offsetHeight;
					doc12.style.height=H1+20+"px";
					doc1.style.top=H1+174+45+"px";
					doc3.style.top=H2+176+"px";
					if (doc13)
						{
							doc13.style.visibility='visible';
							doc13.style.top=H2+200+"px";
							H2=H2+20;
						}
					if (H1>H2) {H3=H1;} else {H3=H2;}
					doc4.style.top=H3+174+45+20+"px";
					doc5.style.height=H3+174+45+20-160+"px";
					doc6.style.top=H3+174+45+20+13+"px";
					doc7.style.top=H3+174+45+20+26+"px";
					doc8.style.top=H3+174+45+20+41+"px";
					doc9.style.top=H3+174+45+20+54+"px";
					doc10.style.height=H3+174+45+20+54-20+"px";
					doc11.style.height=H3+174+45+20+54-20+"px";
				}
			if (id=='cadre_texte_milieu')
				{
					H1 = doc.offsetHeight;
					H2 = doc2.offsetHeight;
					doc1.style.top=H1+174+29+"px";
					doc3.style.top=H2+176+"px";
					if (doc13)
						{
							doc13.style.visibility='visible';
							doc13.style.top=H2+200+"px";
							H2=H2+35;
						}
					if (H1>H2) {H3=H1;} else {H3=H2;}
					doc4.style.top=H3+174+29+20+"px";
					doc5.style.height=H3+174+29+20-160+"px";
					doc6.style.top=H3+174+29+20+13+"px";
					doc7.style.top=H3+174+29+20+26+"px";
					doc8.style.top=H3+174+29+20+41+"px";
					doc9.style.top=H3+174+29+20+54+"px";
					doc10.style.height=H3+174+29+20+54-20+"px";
					doc11.style.height=H3+174+29+20+54-20+"px";
				}
			if (id=='cadre_texte2_milieu')
				{
					H3 = doc.offsetHeight;
					doc101.style.top=H3+174+29+"px";
					doc4.style.top=H3+174+29+20+"px";
					doc5.style.height=H3+174+29+20-160+"px";
					doc6.style.top=H3+174+29+20+13+"px";
					doc7.style.top=H3+174+29+20+26+"px";
					doc8.style.top=H3+174+29+20+41+"px";
					doc9.style.top=H3+174+29+20+54+"px";
					doc10.style.height=H3+174+29+20+54-20+"px";
					doc11.style.height=H3+174+29+20+54-20+"px";
				}
			if (id=='affichage_resultats_journee_gauche')
				{
					H1 = doc.offsetHeight;
					H2 = doc2.offsetHeight;
					doc12.style.height=H1+5+"px";
					if (doc13)
						{
							doc13.style.visibility='visible';
							doc13.style.top=H2+220+"px";
						}
					doc1.style.top=H1+174+29+"px";
					doc3.style.top=H2+176+"px";
					if (H1>H2) {H3=H1;} else {H3=H2;}
					doc4.style.top=H3+174+29+20+"px";
					doc5.style.height=H3+174+29+20-160+"px";
					doc6.style.top=H3+174+29+20+13+"px";
					doc7.style.top=H3+174+29+20+26+"px";
					doc8.style.top=H3+174+29+20+41+"px";
					doc9.style.top=H3+174+29+20+54+"px";
					doc10.style.height=H3+174+29+20+54-20+"px";
					doc11.style.height=H3+174+29+20+54-20+"px";
				}
			if (id=='affichage_resultats_division_gauche')
				{
					H1 = doc.offsetHeight;
					H2 = doc2.offsetHeight;
					doc12.style.height=H1+171+30+"px";
					H1 = doc12.offsetHeight;
					if (doc13)
						{
							doc13.style.visibility='visible';
							doc13.style.top=H2+220+"px";
						}
					doc1.style.top=H1+174+29+"px";
					doc3.style.top=H2+176+"px";
					if (H1>H2) {H3=H1;} else {H3=H2;}
					doc4.style.top=H3+174+29+20+"px";
					doc5.style.height=H3+174+29+20-160+"px";
					doc6.style.top=H3+174+29+20+13+"px";
					doc7.style.top=H3+174+29+20+26+"px";
					doc8.style.top=H3+174+29+20+41+"px";
					doc9.style.top=H3+174+29+20+54+"px";
					doc10.style.height=H3+174+29+20+54-20+"px";
					doc11.style.height=H3+174+29+20+54-20+"px";
				}
					if (id=='cadre_texte2_milieu'){doc101.style.visibility='visible';} else {doc1.style.visibility='visible';doc3.style.visibility='visible';}
					doc4.style.visibility='visible';
					doc6.style.visibility='visible';
					doc7.style.visibility='visible';
					doc8.style.visibility='visible';
					doc9.style.visibility='visible';
					doc10.style.visibility='visible';
					doc11.style.visibility='visible';
		}
	else // ok firefox.0.9.2 , pas mozilla.1.0 ni netscape.7.02 
		{
			if (id=='affichage_details_joueurs')
				{
					H1 = document.defaultView.getComputedStyle(doc, null).height;
					H1 = parseInt(H1.substr(0, H1.length-2));
					H2 = document.defaultView.getComputedStyle(doc2, null).height;
					H2 = parseInt(H2.substr(0, H2.length-2));
					doc12.style.height=H1+15+"px";
					doc1.style.top=H1+171+45+"px";
					doc3.style.top=H2+176+"px";
					if (doc13)
						{
							doc13.style.visibility='visible';
							doc13.style.top=H2+200+"px";
							H2=H2+20;
						}
					if (H1>H2) {H3=H1;} else {H3=H2;}
					doc4.style.top=H3+174+45+20+"px";
					doc5.style.height=H3+174+45+20-160+"px";
					doc6.style.top=H3+174+45+20+13+"px";
					doc7.style.top=H3+174+45+20+26+"px";
					doc8.style.top=H3+174+45+20+41+"px";
					doc9.style.top=H3+174+45+20+54+"px";
					doc10.style.height=H3+174+45+20+54-20+"px";
					doc11.style.height=H3+174+45+20+54-20+"px";
				}
			if (id=='cadre_texte_milieu')
				{
					H1 = document.defaultView.getComputedStyle(doc, null).height;
					H1 = parseInt(H1.substr(0, H1.length-2));
					H2 = document.defaultView.getComputedStyle(doc2, null).height;
					H2 = parseInt(H2.substr(0, H2.length-2));
					doc1.style.top=H1+171+29+"px";
					doc3.style.top=H2+176+"px";
					if (doc13)
						{
							doc13.style.visibility='visible';
							doc13.style.top=H2+200+"px";
							H2=H2+35;
						}
					if (H1>H2) {H3=H1;} else {H3=H2;}
					doc4.style.top=H3+174+29+20+"px";
					doc5.style.height=H3+174+29+20-160+"px";
					doc6.style.top=H3+174+29+20+13+"px";
					doc7.style.top=H3+174+29+20+26+"px";
					doc8.style.top=H3+174+29+20+41+"px";
					doc9.style.top=H3+174+29+20+54+"px";
					doc10.style.height=H3+174+29+20+54-20+"px";
					doc11.style.height=H3+174+29+20+54-20+"px";
				}
			if (id=='cadre_texte2_milieu')
				{
					H3 = document.defaultView.getComputedStyle(doc, null).height;
					H3 = parseInt(H3.substr(0, H3.length-2));
					doc101.style.top=H3+171+29+"px";
					doc4.style.top=H3+174+29+20+"px";
					doc5.style.height=H3+174+29+20-160+"px";
					doc6.style.top=H3+174+29+20+13+"px";
					doc7.style.top=H3+174+29+20+26+"px";
					doc8.style.top=H3+174+29+20+41+"px";
					doc9.style.top=H3+174+29+20+54+"px";
					doc10.style.height=H3+174+29+20+54-20+"px";
					doc11.style.height=H3+174+29+20+54-20+"px";
				}
			if (id=='affichage_resultats_journee_gauche')
				{
					H1 = document.defaultView.getComputedStyle(doc, null).height;
					H1 = parseInt(H1.substr(0, H1.length-2));
					H2 = document.defaultView.getComputedStyle(doc2, null).height;
					H2 = parseInt(H2.substr(0, H2.length-2));
					doc12.style.height=H1+5+"px";
					if (doc13)
						{
							doc13.style.visibility='visible';
							doc13.style.top=H2+220+"px";
						}
					doc1.style.top=H1+171+29+"px";
					doc3.style.top=H2+176+"px";
					if (H1>H2) {H3=H1;} else {H3=H2;}
					doc4.style.top=H3+174+29+20+"px";
					doc5.style.height=H3+174+29+20-160+"px";
					doc6.style.top=H3+174+29+20+13+"px";
					doc7.style.top=H3+174+29+20+26+"px";
					doc8.style.top=H3+174+29+20+41+"px";
					doc9.style.top=H3+174+29+20+54+"px";
					doc10.style.height=H3+174+29+20+54-20+"px";
					doc11.style.height=H3+174+29+20+54-20+"px";
				}
			if (id=='affichage_resultats_division_gauche')
				{
					H1 = document.defaultView.getComputedStyle(doc, null).height;
					H1 = parseInt(H1.substr(0, H1.length-2));
					H2 = document.defaultView.getComputedStyle(doc2, null).height;
					H2 = parseInt(H2.substr(0, H2.length-2));
					H4 = document.defaultView.getComputedStyle(doc14, null).height;
					H4 = parseInt(H4.substr(0, H4.length-2));
					doc12.style.height=H1+H4+50+"px";
					H1 = document.defaultView.getComputedStyle(doc12, null).height;
					H1 = parseInt(H1.substr(0, H1.length-2));
					if (H1>200)
						{
							doc13.style.visibility='visible';
							doc13.style.top=H2+220+"px";
						}
					doc1.style.top=H1+171+29+"px";
					doc3.style.top=H2+176+"px";
					if (H1>H2) {H3=H1;} else {H3=H2;}
					doc4.style.top=H3+174+29+20+"px";
					doc5.style.height=H3+174+29+20-160+"px";
					doc6.style.top=H3+174+29+20+13+"px";
					doc7.style.top=H3+174+29+20+26+"px";
					doc8.style.top=H3+174+29+20+41+"px";
					doc9.style.top=H3+174+29+20+54+"px";
					doc10.style.height=H3+174+29+20+54-20+"px";
					doc11.style.height=H3+174+29+20+54-20+"px";
				}
				if (id=='cadre_texte2_milieu'){doc101.style.visibility='visible';} else {doc1.style.visibility='visible';doc3.style.visibility='visible';}
				doc4.style.visibility='visible';
				doc6.style.visibility='visible';
				doc7.style.visibility='visible';
				doc8.style.visibility='visible';
				doc9.style.visibility='visible';
				doc10.style.visibility='visible';
				doc11.style.visibility='visible';
		}
}
