var ImgsPath="";var Exceptions=new Array();Exceptions[0]="image-sans-transparence.png";Exceptions[1]="image-autre.png";window.onload=function(){PngFixImg();PngFixBkground();}
function PngFixImg(){var arVersion=navigator.appVersion.split("MSIE")
var version=parseFloat(arVersion[1])
if((version>=5.5)&&(document.body.filters))
{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")
{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}}}}
function PngFixBkground(){var StyleSheets=document.styleSheets;for(i=0;i<StyleSheets.length;i++)
{if(StyleSheets[i].rules)
{Rules=StyleSheets[i].rules;for(j=0;j<Rules.length;j++)
{if((Rules[j].style.background)||(Rules[j].style.backgroundImage)||(Rules[j].style.backgroundRepeat))
{if(Rules[j].style.background)
{BkgroundImg=Rules[j].style.background.match('[a-z0-9_-]*\.png');BkgroundRepeat=Rules[j].style.background.match('repeat|repeat\-x|repeat\-y|no\-repeat');}
else
{BkgroundImg=Rules[j].style.backgroundImage.match('[a-z0-9_-]*\.png');BkgroundRepeat=Rules[j].style.backgroundRepeat;}
var regex=new RegExp(BkgroundImg,'g');var yatil=regex.test(Exceptions);if((BkgroundImg!=null)&&(yatil==false))
{if(BkgroundRepeat!=null)
{if((BkgroundRepeat=="repeat")||(BkgroundRepeat=="repeat-x")||(BkgroundRepeat=="repeat-y"))
{sizingMethod='scale';}
else
{sizingMethod='crop';}}
Rules[j].style.backgroundImage="none";Rules[j].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ImgsPath+BkgroundImg+"', sizingMethod='"+sizingMethod+"')";}}}}}}
