/*
 
Correctly handle PNG transparency in Win IE 5.5 & 6.
http://homepage.ntlworld.com/bobosola. Updated 18-Jan-2006.

Use in <HEAD> with DEFER keyword wrapped in conditional comments:
<!--[if lt IE 7]>
<script defer type="text/javascript" src="pngfix.js"></script>
<![endif]-->

*/


var l = document.images;
for(i=0;i<l.length;i++){
lw = l[i].width; lh = l[i].height;
p = 'images/clearpngfix.gif';
n = l[i].getAttribute('src');
g = n.toLowerCase();
if(g.substring(g.length-3)=="png"){
l[i].setAttribute('src',p);
l[i].width = lw;
l[i].height = lh;
l[i].style.cssText="filter: progid:DXImageTransform.Microsoft.AlphaImageLoader (src='"+n+"')";
if(l[i].getAttribute('roll')) {
l[i].onmouseover = swap;
l[i].onmouseout = swap;
}
}
}



