/*
	
	fixes IE pngs
	
*/




// declare an array (window.PNGs) with elements: the ids of elements to be corrected. 

function pngfix(){
	if(!window.PNGs)return false;
	var pngs = window.PNGs, curE, path, imgE, i;
	
	
	for(i=0; i<pngs.length; i++){
		curE = document.getElementById(pngs[i])
			
			
			
			
			
			
			//div with backgroundImage 
			if(curE.tagName == "DIV"){
				
				
				// clear backgroundImage
				path = curE.currentStyle.backgroundImage.substring( 
					curE.currentStyle.backgroundImage.indexOf('"')+1, 
					curE.currentStyle.backgroundImage.lastIndexOf('"')
					)
				curE.style.backgroundImage = 'none'
				
				// put image element
				curE.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+path+'")';
				
				
			}
			
			
	}
	
	
	
}




