//______________________________________________________________________// function setActiveStyleSheet(title) { var i, a, main; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) { a.disabled = true; if(a.getAttribute("title") == title) a.disabled = false; } } } //______________________________________________________________________// function lostpassword(show) { if(show) document.getElementById("lost_pass").style.display = ""; else document.getElementById("lost_pass").style.display = "none"; } //______________________________________________________________________// function hideguestbookpost(id) { if(confirm("êtes vous sûr de vouloir supprimer ce message?")) { document.getElementById(id).style.display = "none"; document.getElementById("hr"+id).style.display = "none"; } } //______________________________________________________________________// function end_loading() { document.getElementById("loading").style.visibility = "hidden"; } //______________________________________________________________________// function show_user(user) { window.open('user.php?user=' + user , 'User','toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=0,menuBar=0,width=300,height=410,top=100,left=100'); return(false); } //______________________________________________________________________// function show_rules(tournoi) { window.open('rules.php?tournoi=' + tournoi , 'Rules','toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=0,menuBar=0,width=400,height=600,top=100,left=100'); return(false); } //______________________________________________________________________// function show_month(tournoi, to_hide, to_show) { document.getElementById("t"+tournoi+"_mois"+to_hide).style.display = "none"; document.getElementById("t"+tournoi+"_mois"+to_show).style.display = ""; } //______________________________________________________________________// function show_details(tournoi, part, m, n) { document.getElementById(tournoi+"_p0").style.display = "none"; document.getElementById(tournoi+"_p1").style.display = "none"; document.getElementById(tournoi+"_p"+part).style.display = ""; if(part == 1) { document.getElementById("t"+tournoi+"info"+m+"_"+n).style.display = ""; } } //______________________________________________________________________// function show(id) { document.getElementById("j_" + id).style.visibility = "visible"; } //______________________________________________________________________// function hide(id) { document.getElementById("j_" + id).style.visibility = "hidden"; } //______________________________________________________________________// function aff_contenu(id, content) { for (var i = 1; i<=8; i++) document.getElementById("content"+id+"_"+i).style.visibility = "hidden"; document.getElementById("content"+id+"_"+content).style.visibility = "visible"; } //______________________________________________________________________// function aff_details(tournoi, content) { show_details(tournoi, 0, 0, 0); document.getElementById("t_"+tournoi).innerHTML = content; return; } //______________________________________________________________________// function aff_news(news, max) { for (var i = 1; i<=max; i++) { document.getElementById("news"+i).style.display = "none"; } if(news != 0) document.getElementById("news"+news).style.display = ""; } //______________________________________________________________________// function recruit_advert(i) { document.getElementById("r1").style.visibility = "hidden"; document.getElementById("r2").style.visibility = "hidden"; document.getElementById("r3").style.visibility = "hidden"; // document.getElementById("r"+i).style.visibility = "visible"; // if(i == 3) // { // i=0; // } // setTimeout(recruit_advert(i+1), 12000); }