// PNGHack 1.0 beta 5 (2008-05-01)
// 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(p){var d=document;var q='http://pnghack.googlepages.com/spacer.gif';var r=function(f,g,h){if(!f)f={};var j=(!f.elm&&g!=2)?d.all:d.getElementsByTagName(f.elm);var k=f.src||'src';var l=f.ext||'\.PNG$';var m='('+h.checkIE+')';if(!navigator.userAgent.match('MSIE '+m)&&h.checkIE)return;var n=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)p=q;else if(h.remotehost!=false){var d=function(){a.setAttribute(b,q);};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,p||'images/spacer.gif');if(a.className.match(/\bhack-png\b/))var x=setTimeout(function(){c.visibility='visible';clearTimeout(x);},300);};if(g==2){n(f.elm,k);return;}var l=new RegExp('\\w+.'+l.toUpperCase());for(var i=0;i<j.length;++i){var o=j[i].getAttribute(k)||'';if(g==0&&j[i].className.match(/\bhack-png\b/)||(g==1&&o.toUpperCase().match(l)))n(j[i],k);}};return{go:function(a){r(a,0,this);},crush:function(a){r(a,1,this);},hack:function(a){r(a,2,this);},elements:[],checkIE:'5\.5|6',remotehost:null};};