2 var arVersion
= navigator
.appVersion
.split("MSIE")
3 var version
= parseFloat(arVersion
[1])
5 if ((version
>= 5.5) && (document
.body
.filters
))
7 for(var i
=0; i
<document
.images
.length
; i
++)
9 var img
= document
.images
[i
]
10 var imgName
= img
.src
.toUpperCase()
11 if (imgName
.indexOf('.PNG') > -1)
13 var imgID
= (img
.id
) ? "id='" + img
.id
+ "' " : ""
14 var imgClass
= (img
.className
) ? "class='" + img
.className
+ "' " : ""
15 var imgTitle
= (img
.title
) ? "title='" + img
.title
+ "' " : "title='" + img
.alt
+ "' "
16 var imgStyle
= "display:inline-block;" + img
.style
.cssText
17 if (img
.align
== "left") imgStyle
= "float:left;" + imgStyle
18 if (img
.align
== "right") imgStyle
= "float:right;" + imgStyle
19 if (img
.parentElement
.href
) imgStyle
= "cursor:hand;" + imgStyle
20 var strNewHTML
= "<span " + imgID
+ imgClass
+ imgTitle
21 + " style=\"" + "width:" + img
.width
+ "px; height:" + img
.height
+ "px;" + imgStyle
+ ";"
22 + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
23 + "(src=\'" + img
.src
+ "\', sizingMethod='scale');\"></span>"
24 img
.outerHTML
= strNewHTML