var IE	= false;
var IE6	= false;

function correctPNG() {

	for(var i=0; i<document.images.length; i++) {

		var img = document.images[i];
		var imgName = img.src.toUpperCase();

		if(imgName.substring(imgName.length-6, imgName.length) == "32.PNG") {

			var imgID = (img.id) ? "id='" + img.id + "' " : "";
			var imgClass = (img.className) ? "class='" + img.className + "' " : "";
			var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
			var imgStyle = "display:inline-block;" + img.style.cssText;

			if (img.align == "left") imgStyle = "float:left;" + imgStyle;
			if (img.align == "right") imgStyle = "float:right;" + imgStyle;
			if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle;

			var strNewHTML = "<span " + imgID + imgClass + imgTitle
				+ " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
				+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
				+ "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>";
			img.outerHTML = strNewHTML;
			i = i-1;
		}
	}
	window.status = "Too cool for Internet Explorer";
}

if(navigator.appVersion.indexOf("MSIE") > -1 &&
	navigator.appVersion.indexOf("Windows") > -1 &&
	navigator.appVersion.indexOf("Opera") == -1) {
		IE = true;
		temp=navigator.appVersion.split("MSIE");
		if(parseFloat(temp[1]) < 5.5) {
			if(confirm("Su navegador es demasiado antiguo para ver correctamente la página\n" + document.title + "\n\nHaga click en \"Aceptar\" para ir a una página de donde\ndescargar un navegador de última generación gratuito y libre.")){
				document.location = "http://www.getfirefox.com";
			}
		} else if(parseFloat(temp[1]) < 7.0){
			IE6 = true;
		}
}

// Solo utilizar el script si es Internet Explorer 6- para Windows
if(IE6) window.attachEvent("onload", correctPNG);