// Activate non-standard IE 5/6 transforms for fixing PNGs
function activateIEPNGFix() {
	if( document.styleSheets && document.styleSheets[0] 
		&& 
		document.styleSheets[0].addRule) {
  			//document.styleSheets[0].addRule('*', 'behavior: url(/common/javascript/iepngfix.htc)');
			document.styleSheets[0].addRule('img', 'behavior: url(/common/javascript/iepngfix.htc)');
			document.styleSheets[0].addRule('div', 'behavior: url(/common/javascript/iepngfix.htc)');
	}
}

(function() {
 	if(document.all && /MSIE (5\.5|6)/.test(navigator.userAgent)) {
		if(window.onload) {
			var oldOnload = window.onload;
			window.onload = function () {
				oldOnload();
				activateIEPNGFix();				
			}
		}
		else 
			window.onload = function () {
				activateIEPNGFix();	
			}
	}
})();
