var SC = {};

// corrige les PNGs sur IE5.5 et IE6
SC.fixPNG = {
	init: function(){
		// test IE
		if(document.all != null && window.opera == null){
			// test IE 6
			if(window.XMLHttpRequest == null && document.implementation != null && document.compatMode != null){
				// récupération des images
				var imgs = document.getElementsByTagName('img');
				for(var i = 0, img; img = imgs[i]; i++){
					if(/png$/i.test(img.src)){
						var src = img.src;
						img.src = '/img/dot.gif';
						img.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+src+"',sizingMethod='image');";
					}
				}
			}
		}
	}
};

window.onload = function(){
	SC.fixPNG.init();
}
