\n'
document.write(temp);
var alphabet="abcdefghijklmnopqrstuvwxyz"
mots = new Array();
// nbmot = DEFINIT LE NOMBRE DE MOTS DU DICTIONNAIRE !!!
nbmot= 15;
lgmot= 0;
motde= 0;
nbtro= 0;
oktro= 0;
nberr= 0;
rien = ""
// ATTENTION LONGUEUR MAXIMALE DES MOTS = 12
mots[ 1]="BLIZZARD";
mots[ 2]="BROUILLARD";
mots[ 3]="EVAPORATION";
mots[ 4]="ATMOSPHERE";
mots[ 5]="GIROUETTE";
mots[ 6]="HECTOPASCAL";
mots[ 7]="HYGROMETRE";
mots[ 8]="CUMULONIMBUS";
mots[ 9]="BAROMETRE";
mots[10]="STRATOSPHERE";
mots[11]="TRAMONTANE";
mots[12]="CONDENSATION";
mots[13]="THERMOMETRE";
mots[14]="ANTICYCLONE";
mots[15]="DEPRESSION"
mots[16]="BEAUFORT";
var timerID=0;
function hangman_DoFSCommand(cmd, arg)
{
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
var map = InternetExplorer ? hangman : document.embeds[0];
if (cmd=="start")
{
rien="";
nom="_flash0/gogo";
map.TGotoLabel(nom,"go0");
nom="_flash0/choix";
map.TGotoLabel(nom,"debut");
nberr=0;
nbtro=0;
for(x=1;x<27;x++)
{
nom='_flash0/a'+x;
map.TGotoLabel(nom,alphabet.charAt(x-1));
if(InternetExplorer)
{
map.Tplay(nom);
}
}
motde=Math.round(Math.random()*nbmot)+1;
lgmot=mots[motde].length;
for(y=0;y<12;y++)
{
nom='_flash0/l'+eval(y)
if(y>=lgmot)
{
lett='vide';
}
else
{
lett='bl';
}
map.TGotoLabel(nom,lett);
if(InternetExplorer)
{
map.Tplay(nom);
}
}
}
if (cmd=="lettre" && nberr!=6 && nbtro!=mots[motde].length)
{
oktro=0;
arg=""+arg;
for(x=0;x