// LISTE DES ELEMENTS =========================================================
// Liste des sponsors triés par ordre alphabétique (sauf les sponsors principaux placés en 1er)
IMG_ELEMENTS = new Array(new Array(9000,'ministere.gif', 'Ministère de la Santé et des Sports',  'http://www.sante-jeunesse-sports.gouv.fr'),
                         new Array(9000,'ams.gif',       'American Medical Systems',             'http://www.americanmedicalsystems.com'),
                         new Array(9000,'glaxo.gif',     'GlaxoSmithKline',                      'http://www.gsk.fr'),
                         new Array(9000,'takeda.gif',    'Takeda',                               'http://www.takeda.fr'),
                         new Array(5000,'astellas.gif',  'Astellas',                             'http://www.astellas.com'),
                         new Array(5000,'boehringer.gif','Boehringer Ingelheim',                 'http://www.boehringer-ingelheim.fr'),
                         new Array(5000,'boston.gif',    'Boston Scientific',                    'http://www.bostonscientific.com'),
                         new Array(5000,'coloplast.gif', 'Coloplast',                            'http://www.coloplast.fr/'),
                         new Array(5000,'edap.gif',      'Edap TMS',                             'http://www.edap-tms.com'),
                         new Array(5000,'ferring.gif',   'Ferring',                              'http://www.ferring.com'),
                         new Array(5000,'ipsen.gif',     'Ipsen',                                'http://www.ipsen.com'),
                         new Array(5000,'medtronic.gif', 'Medtronic',                            'http://www.medtronic.fr/france'),
                         new Array(5000,'fabre.gif',     'Pierre Fabre',                         'http://www.pierre-fabre.com'),
                         new Array(5000,'sanofi.gif',    'Sanofi Aventis',                       'http://www.sanofi-aventis.com'),
                         new Array(5000,'wolf.gif',      'Richard Wolf',                         'http://www.richard-wolf.com'));
/*
IMG_ELEMENTS = new Array(new Array(9000,'bayer.gif',    'Bayer',                                'http://www.bayer.com'),
                         new Array(9000,'ligue.gif',    'La Ligue contre le Cancer',            'http://www.ligue-cancer.asso.fr'),
                         new Array(9000,'roche.gif',    'Roche',                                'http://www.roche.com/home.html'),
                         new Array(5000,'amgen.gif',    'Amgen',                                'http://www.amgen.fr/'),
                         new Array(5000,'ams.gif',      'American Medical Systems',             'http://www.americanmedicalsystems.com'),
                         new Array(5000,'astellas.gif', 'Astellas',                             'http://www.astellas.com'),
                         new Array(5000,'boston.gif',   'Boston Scientific',                    'http://www.bostonscientific.com'),
                         new Array(5000,'coloplast.gif','Coloplast',                            'http://www.coloplast.fr/'),
                         new Array(5000,'cook.gif',     'Cook Medical',                         'http://cookmedical.com/home.do/'),
                         new Array(5000,'edap.gif',     'Edap TMS',                             'http://www.edap-tms.com'),
                         new Array(5000,'ethicon.gif',  'Ethicon Endo-Surgery',                 'http://www.jnj.com/connect/'),
                         new Array(5000,'fabre.gif',    'Pierre Fabre',                         'http://www.pierre-fabre.com'),
                         new Array(5000,'ferring.gif',  'Ferring',                              'http://www.ferring.com'),
                         new Array(5000,'glaxo.gif',    'GlaxoSmithKline',                      'http://www.gsk.fr'),
                         new Array(5000,'igl.gif',      'Institut Georges Lopez',               'http://www.igl-transplantation.org/pages/accueil/acc_fr.html'),
                         new Array(5000,'ipsen.gif',    'Ipsen',                                'http://www.ipsen.com'),
                         new Array(5000,'karlstorz.gif','Karlstorz',                            'http://www.karlstorz.com'),
                         new Array(5000,'medtronic.gif','Medtronic',                            'http://www.medtronic.fr/france'),
                         new Array(5000,'olympus.gif',  'Olympus',                              'http://www.olympus.fr'),
                         new Array(5000,'pfizer.gif',   'Pfizer',                               'http://www.pfizer.fr'),
                         new Array(5000,'sanofi.gif',   'Sanofi Aventis',                       'http://www.sanofi-aventis.com'),
                         new Array(5000,'surgical.gif', 'Intuitive Surgical',                   'http://www.intuitivesurgical.com'),
                         new Array(5000,'takeda.gif',   'Takeda',                               'http://www.takeda.fr'),
                         new Array(5000,'wolf.gif',     'Richard Wolf',                         'http://www.richard-wolf.com'),
                         new Array(5000,'wyeth.gif',    'Wyeth',                                'http://www.wyeth.fr'));
*/

IMG_NUMBER = IMG_ELEMENTS.length;    // Nombre de sponsors
IMG_PREFIX = 'graphics/sponsors/';   // Emplacement des fichiers

// FONCTION DE DÉFILEMENT DES CAPTURES D'ÉCRAN DES SPONSORS ===================
// SUR LA PAGE DES SPONSORS ===================================================
function ScreenShot(number)
{
 var lNumber  = (number < IMG_NUMBER) ? number : 0;
 var sContent = '<img galleryimg="no" width="190" src="' + IMG_PREFIX + IMG_ELEMENTS[lNumber][1] + '"><br><br>' +
                '<img galleryimg="no" style="border:1px solid #949698" width="250" src="' + IMG_PREFIX + 'web_' + IMG_ELEMENTS[lNumber][1] + '"><br><br>' +
                '<span class="subtitle">' + IMG_ELEMENTS[lNumber][2] + '</span><br>' +
                '<a class="link" href="'  + IMG_ELEMENTS[lNumber][3] + '" target="_blank">Accéder au site web...</a>';
 document.getElementById('website').innerHTML = sContent;
 if (lNumber < (IMG_NUMBER - 1))
 {
     oPreload     = new Image();
     oPreload.src = IMG_PREFIX + 'web_' + IMG_ELEMENTS[lNumber+1][1];
 }
 setTimeout('ScreenShot(' + (lNumber+1) + ')', IMG_ELEMENTS[lNumber][0]);
}

// FONCTION DE CHARGEMENT ALÉATOIRE DES SPONSORS ==============================
// SUR TOUTES LES PAGES DU SITE WEB ===========================================
function Sponsors(lNumber)
{
 var tlIndexes = new Array();
 var lFixedImg = 4; // Nombre de logos fixes sur la page
 sContent  = '<img src="graphics/sponsors/ministere.gif"  galleryimg="no" border="0"><br>';
 sContent += '<img src="graphics/sponsors/ams.gif"  galleryimg="no" border="0"><br>';
 sContent += '<img src="graphics/sponsors/glaxo.gif"  galleryimg="no" border="0"><br>';
 sContent += '<img src="graphics/sponsors/takeda.gif"  galleryimg="no" border="0"><br>';
 while (tlIndexes.length < (lNumber - lFixedImg))
 {
      lIndex = Math.floor(Math.random() * (IMG_ELEMENTS.length - lFixedImg)) + lFixedImg;
      for (lCount=0; lCount<tlIndexes.length; lCount++)
      {
           if (tlIndexes[lCount] == lIndex)
           {
               break;
           }
      }
      if (lCount == tlIndexes.length)
      {
          tlIndexes[tlIndexes.length] = lIndex;
      }
 }
 for (lCount=0; lCount<tlIndexes.length; lCount++)
 {
      sContent += '<img src="' + IMG_PREFIX + IMG_ELEMENTS[tlIndexes[lCount]][1] + '" galleryimg="no" border="0"><br>';
 }
 document.getElementById('sponsors').innerHTML = sContent;
 setTimeout('Sponsors(' + lNumber + ');', 5000);
}