window.onload = function()
{
	// JavaScript PNG fix
	sleight();
}


/********************************************************************************
*  The code below is derived from Sleight (c) 2001 Aaron Boodman.
*  http://www.youngpup.net/
********************************************************************************/

function sleight()
{
	if (navigator.platform != 'Win32' || navigator.appName != 'Microsoft Internet Explorer')
	{
		return;
	}
	
	var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
	var isIE = (rslt != null && Number(rslt[1]) >= 5.5 && Number(rslt[1]) < 7.0);
	
	for (var i = document.images.length - 1, img = null; (img = document.images[i]); i--)
	{
		if (isIE && img.src.match("\.png"))
		{
			var src = img.src;
			img.style.width = img.width + 'px';
			img.style.height = img.height + 'px';
			img.src = '/js/png_fix.png';
			img.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + src + '", sizing="scale")';
		}
	}
	
	return;
}