//  -------------------------------------------------------------------- //
//                   HELIOP - SSII INFORMATIQUE                          //
//                 Copyright (c) 2007 heliop.com                         //
//                    <http://www.heliop.com/>                           //
//  -------------------------------------------------------------------- //
// doFScommand.js - Javascript pour gérer le flash du haut
// Date: 12/09/2007
// Aut. Laurent Bourretere (l.bourretere@heliop.com)
// Ver. 1.0
function myFlash_DoFSCommand(command)
{
 if (command=='vehicule')
 { 
  document.location = '../../dsp/dsp_espacevehicule/index.php?section=vehicule&'+urlSession;
 }
 else if (command=='stock')
 {
  document.location = '../../dsp/dsp_espacestock/index.php?section=stock&'+urlSession; 
 }
 else if (command=='divers')
 {
  document.location = '../../dsp/dsp_espacedivers/index.php?section=divers&'+urlSession; 
 }
 else
 {
  document.location = '../../dsp/dsp_preaccueil/index.php?'+urlSession; 
 }
}

if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 &&   navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1)
{
 document.write('<SCRIPT LANGUAGE=VBScript\> \n');
 document.write('on error resume next \n');
 document.write('Sub myFlash_FSCommand(ByVal command, ByVal args)\n');
 document.write(' call myFlash_DoFSCommand(command, args)\n');
 document.write('end sub\n');
 document.write('</SCRIPT\> \n');

 document.write('<SCRIPT LANGUAGE=VBScript\> \n');
 document.write('on error resume next \n');
 document.write('Sub myFlash2_FSCommand(ByVal command, ByVal args)\n');
 document.write(' call myFlash2_DoFSCommand(command, args)\n');
 document.write('end sub\n');
 document.write('</SCRIPT\> \n');
}

