var IEPNGFix=window.IEPNGFix||{};IEPNGFix.tileBG=function(F,P,M){var b=this.data[F.uniqueID],B=Math.max(F.clientWidth,F.scrollWidth),G=Math.max(F.clientHeight,F.scrollHeight),I=F.currentStyle.backgroundPositionX,H=F.currentStyle.backgroundPositionY,N=F.currentStyle.backgroundRepeat;if(!b.tiles){b.tiles={elm:F,src:"",cache:[],img:new Image(),old:{}}}var X=b.tiles,S=X.img.width,C=X.img.height;if(P){if(!M&&P!=X.src){X.img.onload=function(){this.onload=null;IEPNGFix.tileBG(F,P,1)};return X.img.src=P}}else{if(X.src){M=1}S=C=0}X.src=P;if(!M&&B==X.old.w&&G==X.old.h&&I==X.old.x&&H==X.old.y&&N==X.old.r){return }var D={top:"0%",left:"0%",center:"50%",bottom:"100%",right:"100%"},K,J,A;K=D[I]||I;J=D[H]||H;if(A=K.match(/(\d+)%/)){K=Math.round((B-S)*(parseInt(A[1])/100))}if(A=J.match(/(\d+)%/)){J=Math.round((G-C)*(parseInt(A[1])/100))}K=parseInt(K);J=parseInt(J);var Z={repeat:1,"repeat-x":1}[N],W={repeat:1,"repeat-y":1}[N];if(Z){K%=S;if(K>0){K-=S}}if(W){J%=C;if(J>0){J-=C}}this.hook.enabled=0;if(!({relative:1,absolute:1}[F.currentStyle.position])){F.style.position="relative"}var E=0,L,V=Z?B:K+0.1,Q,T=W?G:J+0.1,U,O,Y;if(S&&C){for(L=K;L<V;L+=S){for(Q=J;Q<T;Q+=C){Y=0;if(!X.cache[E]){X.cache[E]=document.createElement("div");Y=1}var R=(L+S>B?B-L:S),a=(Q+C>G?G-Q:C);U=X.cache[E];O=U.style;O.behavior="none";O.left=L+"px";O.top=Q+"px";O.width=R+"px";O.height=a+"px";O.clip="rect("+(Q<0?0-Q:0)+"px,"+R+"px,"+a+"px,"+(L<0?0-L:0)+"px)";O.display="block";if(Y){O.position="absolute";O.zIndex=-999;if(F.firstChild){F.insertBefore(U,F.firstChild)}else{F.appendChild(U)}}this.fix(U,P,0);E++}}}while(E<X.cache.length){this.fix(X.cache[E],"",0);X.cache[E++].style.display="none"}this.hook.enabled=1;X.old={w:B,h:G,x:I,y:H,r:N}};IEPNGFix.update=function(){for(var B in IEPNGFix.data){var A=IEPNGFix.data[B].tiles;if(A&&A.elm&&A.src){IEPNGFix.tileBG(A.elm,A.src)}}};IEPNGFix.update.timer=0;if(window.attachEvent&&!window.opera){window.attachEvent("onresize",function(){clearTimeout(IEPNGFix.update.timer);IEPNGFix.update.timer=setTimeout(IEPNGFix.update,100)})};