function pmGov()
{
    //specify interval between slide (in mili seconds)
    this.slidespeed=5000;
    this.thumbsSetContent_Width = 211;

    //specify images
    this.imageholder = new Array();
    this.imageholder_small = new Array();
    this.imageCount = 0;

    //specify corresponding links
    this.slidelinks = new Array();

    //specify title
    this.slidetitle = new Array();

    //specify desc                           
    this.slidedesc = new Array();

    this.ie = document.all;
    
    this.whichimage = 0;

    // Big Image Control
    this.itemImg_CrtlID = null;    
    this.itemTitle_CrtlID = null;    
    this.itemSummary_CrtlID = null;   
    this.thumbsContainer_CrtlID = null;

    pmGov.prototype.init = function(xmlPath)
    {
        if(this.itemImg_CrtlID != null)
            this.blenddelay=(this.ie)? this.itemImg_CrtlID.filters[0].duration*1000 : 0;
         
         this.loadSlideShow(xmlPath);              
    }

    /* XML LOAD */
    pmGov.prototype.loadSlideShow = function(xmlPath)
    {
     // code for IE
     if (window.ActiveXObject)
     {
            //alert ('IE')
           var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.3.0");
           xmlDoc.async = false;
           xmlDoc.load(xmlPath);
     }
     // code for CHROME
     else if (navigator.userAgent.toLowerCase().indexOf('chrome') > -1)
      {
        var xmlhttp = new window.XMLHttpRequest();
        xmlhttp.open("GET",xmlPath,false);
        xmlhttp.send(null);
        xmlDoc = xmlhttp.responseXML.documentElement;
      }

        // code for Mozilla, etc.
     else if (document.implementation && document.implementation.createDocument)
     {
            //alert ('FF')
            var xmlDoc = document.implementation.createDocument("", "", null);
            xmlDoc.async = false;
            xmlDoc.load(xmlPath);
     }
     else
     {
          alert('Your browser cannot handle this script');
     }

      var slides = xmlDoc.getElementsByTagName('ministre');
        for (i=0; i < slides.length; i++)
        {
            this.imageholder_small[i] = new Image();
            this.imageholder_small[i].src = '/squelettes-dist/imgs/GOV/' + slides[i].getAttribute('img_small');            
            this.slidetitle[i] = slides[i].getAttribute('nom');                         
            this.slidedesc[i] = slides[i].getAttribute('poste');
            this.imageCount++;
        }
        for (i=0; i < slides.length; i++)
        {
            this.imageholder[i] = new Image();
            this.imageholder[i].src = '/squelettes-dist/imgs/GOV/' + slides[i].getAttribute('img');
        }
        
    }
    /* / XML LOAD */

    pmGov.prototype.showThumbnail = function()
    {
        var thumbsSetContent_1 = document.getElementById("divMinistres");
    
        for (i=0; i < this.imageholder_small.length; i++)
        {
            thumbsSetContent_1.innerHTML  += '<a href="#" onmouseover="ShowMinistre(\''+ this.imageholder[i].src + '\', \''+ this.slidetitle[i] + '\', \''+ this.slidedesc[i] + '\');" onmouseout="ClearMinistre();"><img src="' + this.imageholder_small[i].src + '" class="mnSmall" id="thumbsSet_' + (i) + '" alt="' + this.slidetitle[i].src + '" width="70" height="80" />';  
        }   
    }


    pmGov.prototype.slideit = function()
    {
    }    
}

    function ShowMinistre(img, title, desc)
    {
       var thumbsSetContent_1 = document.getElementById("divShowMinistre");
       thumbsSetContent_1.innerHTML  = '<img src="' + img + '" width="180" height="220"><br/><br/><b>' + title + '</b><br/><br/><font color=red>' + desc + '</font>';    
    }
    
    function ClearMinistre()
    {
       var thumbsSetContent_1 = document.getElementById("divShowMinistre");
       thumbsSetContent_1.innerHTML  = '<br><br><br><br><center>Survolez les photos<br/> pour afficher les informations<br/>compl&eacute;mentaires</center>';    
    }