/*Gestion des PNG sous IE 5.5 (version 1.1)*/
function EPalphaBG(){
	R=navigator.appVersion.match(/MSIE (\d+\.\d+)/,'');
	O=(R!=null && Number(R[1])>=5.5 && Number(R[1])<7);
	for(i=0;i<document.all.length;i++){
		B=document.all[i].currentStyle.backgroundImage;
		if(O && B && B.indexOf("EP-tinymce")==-1){
			if(B.match(/\.png/i) != null){
				S=B.substring(5,B.length-2);
				document.all[i].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+S+"',sizingMethod='scale')";
				document.all[i].style.backgroundImage="url('x.gif')";
			}
		}
	}
}
function EPpng(){
	R=navigator.appVersion.match(/MSIE (\d+\.\d+)/,'');
	O=(R!=null && Number(R[1])>=5.5 && Number(R[1])<7);
	for(i=document.images.length- 1,img=null;(img=document.images[i]);i--){
		if(O && img.src.match(/\.png$/i)!=null){
			S=img.src;
			if(S.indexOf("EP-tinymce")==-1){
				D=document.createElement("DIV");
				if(img.align) D.style.float=img.align;
				if(img.className) D.className=img.className;
				if(img.height) D.style.height=img.height+"px";
				if(img.id) D.id=img.id;
				if(img.style.cursor) D.style.marginTop=img.style.cursor;
				if(img.style.margin) D.style.marginTop=img.style.margin;
				if(img.style.marginTop) D.style.marginTop=img.style.marginTop;
				if(img.style.marginLeft) D.style.marginLeft=img.style.marginLeft;
				if(img.style.padding) D.style.position=img.style.padding;
				if(img.style.position) D.style.position=img.style.position;
				if(img.style.zIndex) D.style.zIndex=img.style.zIndex;
				if(img.title) D.title=img.title;
				if(img.width) D.style.width=img.width+"px";
				D.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+S+"',sizing='scale')"
				img.replaceNode(D);
				}
		}
		img.style.visibility="visible";
	}
}
if(navigator.platform=="Win32" && navigator.appName=="Microsoft Internet Explorer" && window.attachEvent){window.attachEvent("onload",EPalphaBG); window.attachEvent("onload",EPpng);}