Fix PNG transparency in IE 6

Author: Peter Cooper
Link : http://codesnippets.joyent.com/user/therad/tag/javascript#post681

function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.
{
var arVersion = navigator.appVersion.split(“MSIE”)
var version = parseFloat(arVersion[1])
if ((version >= 5.5) && (document.body.filters))
{
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”)
{
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 = “
img.outerHTML = strNewHTML
i = i-1
}
}
}
}
window.attachEvent(“onload”, correctPNG);

Third Eye Blind – Burning Man

The rise and fall of my sloppy love
The smatterings, and splatterings
They’ll get you
I’m not the one you were thinking of
Maybe you thought I’d call
Instead of crashing down your hall
Hold me down, I wanna find out
You know you will never get what you need
Blue Diamond strike ’em anywhere
First we caffeinate then incinerate
We’ll get you
And sparks will fly in the summer air
Did you pull out of your stall
Maybe I’ll see you after all
Hold me down, I wanna find out
We say no, cause I live my life like a burning man
Like a burning man, a burning man
Like a burning man
And I won’t get enough until my legs are broken
The stars they shine in an empty void
Life is not to fear, life is to enjoy
He’ll get you
Oh, Mr. Death catches all someday
Baby I thought you’d call
Or leave a light on in the hall

Hold me down but I’ll find out
We say no, cause I live my life like a burning man
Like a burning man, a burning man
Like a burning man
Hold me down, I wanna find out
We say no, cause I live my life like a burning man
Like a burning man, a burning man
Like a burning man
And I won’t get enough, until my legs are broken