// PNGHack 1.0.2 beta (2008-06-26)
// Copyright (c) 2008 Yves Van Goethem and png-hack project contributors
// http://code.google.com/p/png-hack/
// Distributed under MIT X11 License
document.write('<!--[if lte IE 6]><style type="text/css">.hack-png{visibility:hidden}</style><![endif]-->');var PNGHack=function(q){var r='http://pnghack.googlepages.com/spacer.gif';var s=function(f,g,h){if(h.checkIE&&!navigator.userAgent.match(h.checkIE))return;if(!f)f={};var d=f.scope||document;var j=(!f.elm&&g!=2)?d.all:d.getElementsByTagName(f.elm);var k=f.src||'src';var l=new RegExp((f.ext)?'\\w+.'+f.ext.toUpperCase():'\.PNG$');var m=f.hideonload||null;var n=function(a){var x=setTimeout(function(){a.className=a.className.replace(/hack-png/g,'');clearTimeout(x)},300)};var o=function(a,b){var c=a.style;if(!a.pngsrc)h.elements.push(a);a.pngsrc=a.getAttribute(b);c.width=a.clientWidth;c.height=a.clientHeight;c.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+a.pngsrc+"',sizingMethod='scale')";if(h.remotehost==true)q=r;else if(h.remotehost!=false){var d=function(){a.setAttribute(b,r)};var e=function(){if(a.readyState=='complete'){a.detachEvent('onerror',d);a.detachEvent('onreadystatechange',e)}};a.attachEvent('onerror',d);a.attachEvent('onreadystatechange',e)}a.setAttribute(b,q||'images/spacer.gif');if(a.className.match(/\bhack-png\b/))n(a)};if(g==2){o(f.elm,k);return}for(var i=0;i<j.length;++i){var p=j[i].getAttribute(k)||'';if(g==0&&j[i].className.match(/\bhack-png\b/)||(g==1&&p.toUpperCase().match(l)))o(j[i],k);if(m&&i+1==j.length)n(d)}};return{hackClass:function(a){s(a,0,this)},hackExtension:function(a){s(a,1,this)},hackElement:function(a){s(a,2,this)},elements:[],checkIE:'MSIE 5\.5|MSIE 6',remotehost:null}};
