stop();
detectG_mc.gotoAndPlay(1);
detectD_mc.gotoAndPlay(1);
radar1_mc.gotoAndPlay(1);
radar2_mc.gotoAndPlay(1);
radar3_mc.gotoAndPlay(1);
alarm_mc.gotoAndPlay(1);
centrale_mc.gotoAndPlay(1);
numpad_mc.gotoAndPlay(1);
messCentrale_mc._visible = false;
messAlarme_mc._visible = false;
messClavier_mc._visible = false;
messRadar_mc._visible = false;
messDetecteur_mc._visible = false;
messCentrale_mc.onPress = function()
{
   this._visible = false;
};
messAlarme_mc.onPress = function()
{
   this._visible = false;
};
messClavier_mc.onPress = function()
{
   this._visible = false;
};
messRadar_mc.onPress = function()
{
   this._visible = false;
};
messDetecteur_mc.onPress = function()
{
   this._visible = false;
};
centrale_btn.onRelease = function()
{
   _root.messCentrale_mc._visible = true;
   _root.messAlarme_mc._visible = false;
   _root.messClavier_mc._visible = false;
   _root.messRadar_mc._visible = false;
   _root.messDetecteur_mc._visible = false;
};
alarm_btn.onRelease = function()
{
   _root.messCentrale_mc._visible = false;
   _root.messAlarme_mc._visible = true;
   _root.messClavier_mc._visible = false;
   _root.messRadar_mc._visible = false;
   _root.messDetecteur_mc._visible = false;
};
numpad_btn.onRelease = function()
{
   _root.messCentrale_mc._visible = false;
   _root.messAlarme_mc._visible = false;
   _root.messClavier_mc._visible = true;
   _root.messRadar_mc._visible = false;
   _root.messDetecteur_mc._visible = false;
};
i = 1;
while(i < 4)
{
   eval("radar" + i + "_btn").onRelease = function()
   {
      _root.messCentrale_mc._visible = false;
      _root.messAlarme_mc._visible = false;
      _root.messClavier_mc._visible = false;
      _root.messRadar_mc._visible = true;
      _root.messDetecteur_mc._visible = false;
   };
   i++;
}
i = 1;
while(i < 3)
{
   eval("detect" + i + "_btn").onRelease = function()
   {
      _root.messCentrale_mc._visible = false;
      _root.messAlarme_mc._visible = false;
      _root.messClavier_mc._visible = false;
      _root.messRadar_mc._visible = false;
      _root.messDetecteur_mc._visible = true;
   };
   i++;
}
marche_btn.onRelease = function()
{
   _root.gotoAndPlay("alarme_on");
};
stop_btn.onRelease = function()
{
};
