/*
Script crée par Fabrice
http://www.janken-fight.fr/
*/

if(document.getElementById)
	{
 	if(navigator.appName.substring(0,3) == "Net")
 	document.captureEvents(Event.MOUSEMOVE);
 	document.onmousemove = acces_get_mouse;
 	}
function acces_get_mouse(e)
 	{
 	access_X = (navigator.appName.substring(0,3) == "Net") ? e.pageX : event.x+document.body.scrollLeft;
 	access_Y = (navigator.appName.substring(0,3) == "Net") ? e.pageY : event.y+document.body.scrollTop;
 	}

function disparition()
	{
	if(document.getElementById)
        document.getElementById("access_box").style.visibility = 'hidden'
	}
function afficher(defis)
	{
	if(document.getElementById)
	round0 = "<center><center><table border=0 cellpadding=0 cellspacing=0 width=160><tr><td bgcolor=#BCD8FF><table border=0 cellpadding=1 cellspacing=1 width=100%><tr><td bgcolor=#FFFFFF background=images/fond_tableau.jpg width=40%><b>Lancer le défi</b></td></tr><tr><td valign=top bgcolor=#FFFFFF><form action='?jeu=fight_accepter' method='post'>";
	round1 = "<b>Round 1 :</b><br><input type='radio' name='tour1' value='pierre'><img src=images/perso/pierre1.gif><input type='radio' name='tour1' value='feuille'><img src=images/perso/feuille1.gif><input type='radio' name='tour1' value='ciseau'><img src=images/perso/ciseau1.gif><br>";
	round2 = "<b>Round 2 :</b><br><input type='radio' name='tour2' value='pierre'><img src=images/perso/pierre1.gif><input type='radio' name='tour2' value='feuille'><img src=images/perso/feuille1.gif><input type='radio' name='tour2' value='ciseau'><img src=images/perso/ciseau1.gif><br>";
	round3 = "<b>Round 3 :</b><br><input type='radio' name='tour3' value='pierre'><img src=images/perso/pierre1.gif><input type='radio' name='tour3' value='feuille'><img src=images/perso/feuille1.gif><input type='radio' name='tour3' value='ciseau'><img src=images/perso/ciseau1.gif><br>";
	round4 = "<b>Round 4 :</b><br><input type='radio' name='tour4' value='pierre'><img src=images/perso/pierre1.gif><input type='radio' name='tour4' value='feuille'><img src=images/perso/feuille1.gif><input type='radio' name='tour4' value='ciseau'><img src=images/perso/ciseau1.gif><br>";
	round5 = "<b>Round 5 :</b><br><input type='radio' name='tour5' value='pierre'><img src=images/perso/pierre1.gif><input type='radio' name='tour5' value='feuille'><img src=images/perso/feuille1.gif><input type='radio' name='tour5' value='ciseau'><img src=images/perso/ciseau1.gif><br>";
	round6 = "<b>Round 6 :</b><br><input type='radio' name='tour6' value='pierre'><img src=images/perso/pierre1.gif><input type='radio' name='tour6' value='feuille'><img src=images/perso/feuille1.gif><input type='radio' name='tour6' value='ciseau'><img src=images/perso/ciseau1.gif><br>";
	round7 = "<b>Round 7 :</b><br><input type='radio' name='tour7' value='pierre'><img src=images/perso/pierre1.gif><input type='radio' name='tour7' value='feuille'><img src=images/perso/feuille1.gif><input type='radio' name='tour7' value='ciseau'><img src=images/perso/ciseau1.gif><br>";
	round8 = "<br><center><input type='submit' name='Submit' value='Valider' class='text'> <A HREF=# onClick='disparition();return(false)'>Fermer</A></center></form></td></tr></table></td></tr></table></center>";
 	document.getElementById("access_box").innerHTML = round0+round1+round2+round3+round4+round5+round6+round7+defis+round8;
 	document.getElementById("access_box").style.visibility = 'visible';
 	document.getElementById("access_box").style.left = access_X;
 	document.getElementById("access_box").style.top = access_Y;
	}
function lancer_afficher(defis)
	{
	if(document.getElementById)
	round0 = "<center><center><table border=0 cellpadding=0 cellspacing=0 width=160><tr><td bgcolor=#BCD8FF><table border=0 cellpadding=1 cellspacing=1 width=100%><tr><td bgcolor=#FFFFFF background=images/fond_tableau.jpg width=40%><b>La Carte</b></td></tr><tr><td valign=top bgcolor=#FFFFFF><form action='?jeu=liste_online' method='post'>";
	round1 = "<b>Round 1 :</b><br><input type='radio' name='tour1' value='pierre'><img src=images/perso/pierre1.gif><input type='radio' name='tour1' value='feuille'><img src=images/perso/feuille1.gif><input type='radio' name='tour1' value='ciseau'><img src=images/perso/ciseau1.gif><br>";
	round2 = "<b>Round 2 :</b><br><input type='radio' name='tour2' value='pierre'><img src=images/perso/pierre1.gif><input type='radio' name='tour2' value='feuille'><img src=images/perso/feuille1.gif><input type='radio' name='tour2' value='ciseau'><img src=images/perso/ciseau1.gif><br>";
	round3 = "<b>Round 3 :</b><br><input type='radio' name='tour3' value='pierre'><img src=images/perso/pierre1.gif><input type='radio' name='tour3' value='feuille'><img src=images/perso/feuille1.gif><input type='radio' name='tour3' value='ciseau'><img src=images/perso/ciseau1.gif><br>";
	round4 = "<b>Round 4 :</b><br><input type='radio' name='tour4' value='pierre'><img src=images/perso/pierre1.gif><input type='radio' name='tour4' value='feuille'><img src=images/perso/feuille1.gif><input type='radio' name='tour4' value='ciseau'><img src=images/perso/ciseau1.gif><br>";
	round5 = "<b>Round 5 :</b><br><input type='radio' name='tour5' value='pierre'><img src=images/perso/pierre1.gif><input type='radio' name='tour5' value='feuille'><img src=images/perso/feuille1.gif><input type='radio' name='tour5' value='ciseau'><img src=images/perso/ciseau1.gif><br>";
	round6 = "<b>Round 6 :</b><br><input type='radio' name='tour6' value='pierre'><img src=images/perso/pierre1.gif><input type='radio' name='tour6' value='feuille'><img src=images/perso/feuille1.gif><input type='radio' name='tour6' value='ciseau'><img src=images/perso/ciseau1.gif><br>";
	round7 = "<b>Round 7 :</b><br><input type='radio' name='tour7' value='pierre'><img src=images/perso/pierre1.gif><input type='radio' name='tour7' value='feuille'><img src=images/perso/feuille1.gif><input type='radio' name='tour7' value='ciseau'><img src=images/perso/ciseau1.gif><br>";
	round8 = "<br><center><input type='submit' name='Submit' value='Valider' class='text'> <A HREF=# onClick='disparition();return(false)'>Fermer</A></center></form></td></tr></table></td></tr></table></center>";
 	document.getElementById("access_box").innerHTML = round0+round1+round2+round3+round4+round5+round6+round7+defis+round8;
 	document.getElementById("access_box").style.visibility = 'visible';
 	document.getElementById("access_box").style.left = access_X;
 	document.getElementById("access_box").style.top = access_Y;
	}
function afficher_carte(carte)
	{
	if(document.getElementById)
	carte0 = "<center><center><table border=0 cellpadding=0 cellspacing=0 width=160><tr><td bgcolor=#BCD8FF><table border=0 cellpadding=1 cellspacing=1 width=100%><tr><td bgcolor=#FFFFFF background=images/fond_tableau.jpg width=40%><b>La Carte</b></td></tr><tr><td valign=top bgcolor=#FFFFFF>";
	carte1 = "<table id=Table_01 width=278 height=315 border=0 cellpadding=0 cellspacing=0><tr><td colspan=9><img src=images/carte_01.jpg width=214 height=17></td><td colspan=4><A HREF=# onClick='disparition();return(false)'><img src=images/carte_02.jpg width=64 height=17 border=0></a></td></tr><tr><td colspan=5><img src=images/carte_03.jpg width=143 height=19></td><td colspan=5><a href=?jeu=casino><img src=images/carte_04.jpg width=86 height=19 border=0></a></td><td colspan=3><img src=images/carte_05.jpg width=49 height=19></td></tr><tr><td><img src=images/carte_06.jpg width=33 height=16></td><td colspan=2><a href=?jeu=loterie><img src=images/carte_07.jpg width=66 height=16 border=0></a></td><td colspan=10><img src=images/carte_08.jpg width=179 height=16></td></tr><tr><td colspan=13><img src=images/carte_09.jpg width=278 height=36></td></tr><tr><td colspan=2><img src=images/carte_10.jpg width=67 height=17></td><td colspan=4><a href=?jeu=soul_society><img src=images/carte_11.jpg width=97 height=17 border=0></a></td><td colspan=7><img src=images/carte_12.jpg width=114 height=17></td></tr><tr><td colspan=13><img src=images/carte_13.jpg width=278 height=36></td></tr><tr><td colspan=4><img src=images/carte_14.jpg width=126 height=19></td><td colspan=6><a href=?jeu=maison><img src=images/carte_15.jpg width=103 height=19 border=0></a></td><td colspan=3><img src=images/carte_16.jpg width=49 height=19></td></tr><tr><td colspan=13><img src=images/carte_17.jpg width=278 height=18></td></tr><tr><td colspan=7><img src=images/carte_18.jpg width=180 height=19></td><td colspan=5><a href=?jeu=boutique><img src=images/carte_19.jpg width=76 height=19 border=0></a></td><td><img src=images/carte_20.jpg width=22 height=19></td></tr><tr><td colspan=13><img src=images/carte_21.jpg width=278 height=19></td></tr><tr><td colspan=3><img src=images/carte_22.jpg width=99 height=14></td><td colspan=5><a href=?jeu=gi><img src=images/carte_23.jpg width=103 height=14 border=0></a></td><td colspan=5><img src=images/carte_24.jpg width=76 height=14></td></tr><tr><td colspan=13><img src=images/carte_25.jpg width=278 height=38></td></tr><tr><td colspan=7><img src=images/carte_26.jpg width=180 height=16></td><td colspan=4><a href=?jeu=dojo><img src=images/carte_27.jpg width=66 height=16 border=0></a></td><td colspan=2><img src=images/carte_28.jpg width=32 height=16></td></tr><tr><td colspan=13><img src=images/carte_29.jpg width=278 height=30></td></tr><tr><td><img src=images/spacer.gif width=33 height=1></td><td><img src=images/spacer.gif width=34 height=1></td><td><img src=images/spacer.gif width=32 height=1></td><td><img src=images/spacer.gif width=27 height=1></td><td><img src=images/spacer.gif width=17 height=1></td><td><img src=images/spacer.gif width=21 height=1></td><td><img src=images/spacer.gif width=16 height=1></td><td><img src=images/spacer.gif width=22 height=1></td><td><img src=images/spacer.gif width=12 height=1></td><td><img src=images/spacer.gif width=15 height=1></td><td><img src=images/spacer.gif width=17 height=1></td><td><img src=images/spacer.gif width=10 height=1></td><td><img src=images/spacer.gif width=2  height=1></td></tr></table>";
	carte2 = "</td></tr></table></td></tr></table></center>";
 	document.getElementById("access_box").innerHTML = carte0+carte1+carte2;
 	document.getElementById("access_box").style.visibility = 'visible';
 	document.getElementById("access_box").style.left = access_X;
 	document.getElementById("access_box").style.top = access_Y;
	}
if(document.getElementById)
 	document.write('<DIV ID=access_box STYLE="top:0;left:0;position:absolute;z-index:9;visibility:hidden"></DIV>')
