//
// Correctly handle PNG transparency in Win IE 5.5 or higher.
// http://homepage.ntlworld.com/bobosola. Updated 02-March-2004

function correctPNG() {
if( navigator.appName == 'Microsoft Internet Explorer' ) {
	for(var i=0; i<document.images.length; i++)
	{
		var img = document.images[i];
		var imgName = img.src.toUpperCase();
		if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
		{
			w = img.width;
			h = img.height;
			if(w != 0) {
				img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + img.src + "\', sizingMethod='scale')";
				img.src = "/templates/smartbox/pics/1x1.gif";
				img.style.width = w + "px";
				img.style.height = h + " px";
			}
		}
	}
}
}

//
//
//
window.onload = function () {
	correctPNG();
	//generate_wait_link();
}
