/********************************************************************/

// fixWindowsPNGs() works around the transparent png problem with IE Windows.
// To do that it is necessary to first insert a transparent gif because the AlphaImageLoader
// filter seems to put the image in on top of the existing image.

// the arguments are defined on the pages where the function is called.


function fixWindowsPNGs(folder,photos)
{
var uAgent = navigator["userAgent"];
var aName = navigator["appName"];
var photos = photos;
if(uAgent.indexOf("Windows") !=-1 && aName.indexOf("Explorer") != -1)
	{
document.write('<link rel="stylesheet" type="text/css" href="./pieces/stylesWindows.css" media="all" />');
		for(i=0; i<photos.length; i++)
		{
			if(document.getElementById(photos[i]))
			{
document.getElementById(photos[i]).src = "./media/transparent.gif";
var msFilter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=";
msFilter += folder;
msFilter += photos[i];
msFilter += ".png";
msFilter += ", sizingMethod='scale')";
document.getElementById(photos[i]).style.filter = msFilter;
			}
		}
	}
}

/********************************************************************/
