if (navigator.platform == "Win32" && navigator.appName == "Microsoft Internet Explorer" && window.attachEvent && ((navigator.platform.indexOf("Opera")) == -1) && ((navigator.userAgent.indexOf("Opera") == -1))  )
{
	document.writeln('<style type="text/css">img { visibility:hidden; } </style>');

	/*
	var oColl = document.all.tags("input");
	if(oColl != null)
	{
	  alert(oColl.length);
	  for(i = 0; i < oColl.length; ++i)
	  {
	    if(oColl[i].type == "image")
	      oColl[i].className = "input-image-hidden";
	  }
	}
	*/

	/*
	alert("initialize");
	alert("document.forms.length is: " + document.forms.length);

			// get all of the <input> tags
			var oColl = document.all.tags("input");
			// if there are any ...
			if(oColl != null)
			{
					alert("got em!");
					alert(oColl.length);
					for(y = 0; y < oColl.length; ++y)
					{
						alert(oColl[y].type);
						if(oColl[y].type == "image")
						{
							alert("found image");
							alert(oColl[y].className);
							// save old class name
							oColl[y].oldClassName = oColl[y].className;
							// set new class name containing 'visibility: hidden;'
							oColl[y].className = "input-image-hidden";
						}
					}
			}
	*/
	
	window.attachEvent("onload", fnLoadPngs);
}

function fnLoadPngs()
{
	var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
	var itsAllGood = (rslt != null && Number(rslt[1]) >= 5.5);

	for (var i = document.images.length - 1, img = null; (img = document.images[i]); i--) {
		if (itsAllGood && img.src.match(/\.png$/i) != null) {
			var src = img.src;
			img.style.width = img.width + "px";
			img.style.height = img.height + "px";
			img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='scale')"
			img.src = "images/spacer.gif";
		}
		img.style.visibility = "visible";
	}
}

// djs : addtions
// src - image source url
// img - image object
function isFilterRequired(src, img)
{
	if (!((navigator.platform == "Win32" 
	&&  navigator.appName == "Microsoft Internet Explorer" 
	&&  window.attachEvent 
	&& ((navigator.platform.indexOf("Opera")) == -1) 
	&& ((navigator.userAgent.indexOf("Opera") == -1)))))
	{
		return false;
	}
	
	var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
	var itsAllGood = (rslt != null && Number(rslt[1]) >= 5.5);
	if(!itsAllGood)
	{
		return false;
	}
	
	// if the filter has a value the filter is required.

	if(img.style.filter != "")
		return true;

	if(src.match(/\.png$/i) == null)
	{
		return false;
	}
	
	return true;
}

// ================================================
// djs : following functions assumes IE & *.png.that is, 
//     : no test is performed to validate that
//     : the browser is IE. It is assumed that these
//     : facts were validated via isFilterRequired() 
//     : above or by some other means.

function filterPNG(img)
{
	if(img == null)
		return;
		
	var src = img.src;
	img.style.width = img.width + "px";
	img.style.height = img.height + "px";
	img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='scale')"
	img.src = "images/spacer.gif";
	img.style.visibility = "visible";
}

function killPNGFilter(img)
{
	if(img == null)
		return;

	img.style.filter = "";
	img.src = "images/spacer.gif";
	img.style.visibility = "visible";
	
}

// ================================================




