// Determine the browser version so that transparent PNGs can be displayed properly.
browserversion = new String (navigator.appName);
platform = new String (navigator.platform);
if (browserversion.indexOf("Microsoft") != -1 && platform.indexOf("Win") != -1) 
{
	var pngSpecial = true;
	// The browser requires special handling of PNG files with transparency.
} 
else 
{
	var pngSpecial = false;
	// The browser is a NORMAL browser like Firefox, which can inherently display PNG files correctly.
}


function PrintPNG (img, width, height, styles)
// This function displays the specified PNG image ('img') at the specified width ('width') and ('height')
// using either a standard <img> tag or special <div> tag for I.E.
// Any styles in ('styles') are applied to the style tag also.
// See http://www.alistapart.com/articles/pngopacity/ for details.
// (c) 2006 Hilltop Computing :: www.hilltop.net
{
	if (pngSpecial == true)	//For IE/Win32:
	{
		var t = "<div style=" + String.fromCharCode(34) + "position: relative; width: " + width + "px; height: " + height + "px; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + img + "',sizingMethod='scale'); " + styles + String.fromCharCode(34) + "></div>"
		document.write (t);

	}
	else	// All NORMAL browsers:
	{
		document.write ("<img src='" + img +"' width=" + width + "height=" + height + " style='" + styles + "'>");
	}
}