function fixObjPng(objfix, parentOBJ){
if(objfix==null){return}
var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])
	if ((version >= 5.5 ) && (version < 7 ) && (document.body.filters)) {
		objfix.style.display="block";
		var img = objfix;
		var imgName = img.src;
		if(imgName==null){
			if(parentOBJ!=null){parentOBJ.style.display="block";}
			return true;
		}
		if(imgName.toUpperCase().indexOf('PNG')== -1){
			if(parentOBJ!=null){parentOBJ.style.display="block";}
			return true;
		}
		//img.src = '';
		if(parentOBJ!=null){
			parentOBJ.setAttribute('onclick', objfix.getAttribute('onclick'));		
			parentOBJ.setAttribute('onmouseover', objfix.getAttribute('onmouseover') );
			alpha = parentOBJ.style.filter.alpha;
		}else{
			alpha = '100';
		}
		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: 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
		
		if(version < 8){
			var strNewHTML = "<span " + imgID + imgClass + imgTitle
			+ " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + " "
			+ ";filter: progid:DXImageTransform.Microsoft.AlphaImageLoader"
			+ "(src=\'" + imgName + "\', sizingMethod='scale');\"></span>";
			
			/*
			var newSpan = document.createElement('span');
			newSpan.style.cssText = img.style.cssText + '; width:100%; height:100%; display:block; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+ imgName + '\', sizingMethod=\'scale\');';
			
			divcont = objfix.parentNode;
			divcont.removeChild(objfix);
			divcont.appendChild(newSpan);*/
			
			
			
			img.outerHTML = strNewHTML;
		}else{
			var strNewHTML = "<span " + imgID + imgClass + imgTitle
			+ " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + " "
			+ ";filter: progid:DXImageTransform.Microsoft.AlphaImageLoader"
			+ "(src=\'" + imgName + "\', sizingMethod='scale');\"></span>" 
			img.outerHTML = strNewHTML;
			
			/*if(parentOBJ!=null){
				//parentOBJ.style.backgroundColor="transparent";
				parentOBJ.style.background="url('images/transparent.gif')";
				//parentOBJ.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=50)";
			}*/
		}
		
		
		
		
		   
		if(parentOBJ!=null){
			parentOBJ.style.display="block";
		  //parentOBJ.innerHTML=strNewHTML;
		}

	}
	if(parentOBJ!=null){
		parentOBJ.style.display="block";
	}
}



