$(document).ready(function(){


  // Fix all inline PNG images and the element #container with the custom sizingMethod of "scale"
  /*$("img[@src$=png], #page").pngfix({
    sizingMethod: "scale"
  });
  $("img[@src$=png], #nav").pngfix({
    sizingMethod: "crop"
  });
  $("img[@src$=png], .zoom ").pngfix({
    sizingMethod: "crop"
  });*/

  fix_mypng();
  $("img[@src$=png][@src$!=google], #page").pngfix({
    sizingMethod: "scale"
  });
  $("img[@src$=png][@src$!=google], #nav").pngfix({
    sizingMethod: "crop"
  });
  $("img[@src$=png][@src$!=google], .zoom ").pngfix({
    sizingMethod: "crop"
  });
  $("img[@src$=png][@src$!=google], .blocHome1 ").pngfix({
    sizingMethod: "crop"
  });
  $("img[@src$=png][@src$!=google], .blocHome2 ").pngfix({
    sizingMethod: "crop"
  });
  $("img[@src$=png][@src$!=google], .blocHome3 ").pngfix({
    sizingMethod: "crop"
  });

  dispoToggle=true;
	
    $("div.liste-articles-toggled h4").next().hide();
    $("div.liste-articles-toggled h4").removeClass("dploy");
    /*$("div.liste-articles-toggled h4").not(":first").next().hide();*/
	/*$("div.liste-articles-toggled h4").each(function (item) { alert("ter");})*/


 $("div.liste-articles-toggled h4").click(function () {

    if($(this).next().is(":visible"))
    {

      $(this).next().slideToggle("slow");
      $(this).removeClass("dploy");
      $(this).addClass("dployed");
    }
    else
    {
   

      $("div.liste-articles-toggled h4").next(":visible").slideToggle("slow");
      $("div.liste-articles-toggled h4").removeClass("dploy");
      $("div.liste-articles-toggled h4").addClass("dployed");
  

      $(this).next().slideToggle("slow");
      $(this).removeClass("dployed");
      $(this).addClass("dploy");
    }


  });




 });
 function fix_mypng()
{

  var arVersion = navigator.appVersion.split("MSIE")
  var version = parseFloat(arVersion[1])

  if ((version >= 5.5) && (document.body.filters) && (version<7))
    {
       for(var i=0; i<document.images.length; i++)
       {
          var img = document.images[i]
          var imgName = img.src.toUpperCase()

          if (imgName.substring(imgName.length-3, imgName.length) == "PNG" && imgName.indexOf("GOOGLE", 0)<0 )
          {
          
             var imgID = (img.id) ? "id='" + img.id + "' " : ""
             var imgClass = (img.className) ? "class='" + img.className + "' " : ""
             var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
             var imgStyle = "display:inline-block;" + img.style.cssText
             if (img.align == "left") imgStyle = "float:left;" + imgStyle
             if (img.align == "right") imgStyle = "float:right;" + imgStyle
             if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
             var strNewHTML = "<span " + imgID + imgClass + imgTitle
             + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;"  + imgStyle + ";"
             + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
             + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
             img.outerHTML = strNewHTML
            
             i = i-1
          }
       }
    }
}

