var DD_belatedPNG={ns:"DD_belatedPNG",imgSize:{},delay:10,nodesFixed:0,createVmlNameSpace:function(){document.namespaces&&!document.namespaces[this.ns]&&document.namespaces.add(this.ns,"urn:schemas-microsoft-com:vml")},createVmlStyleSheet:function(){var e="{display: none !important;}",d="_sizeFinder",c=this,a,b;a=document.createElement("style");a.setAttribute("media","screen");document.documentElement.firstChild.insertBefore(a,document.documentElement.firstChild.firstChild);if(a.styleSheet){a=a.styleSheet;a.addRule(c.ns+"\\:*","{behavior:url(#default#VML)}");a.addRule(c.ns+"\\:shape","position:absolute;");a.addRule("img."+c.ns+d,"behavior:none; border:none; position:absolute; z-index:-1; top:-10000px; visibility:hidden;");c.screenStyleSheet=a;b=document.createElement("style");b.setAttribute("media","print");document.documentElement.firstChild.insertBefore(b,document.documentElement.firstChild.firstChild);b=b.styleSheet;b.addRule(c.ns+"\\:*",e);b.addRule("img."+c.ns+d,e)}},readPropertyChange:function(){var a,c,b;a=event.srcElement;if(!a.vmlInitiated)return;(event.propertyName.search("background")!=-1||event.propertyName.search("border")!=-1)&&DD_belatedPNG.applyVML(a);if(event.propertyName=="style.display"){c=a.currentStyle.display=="none"?"none":"block";for(b in a.vml)if(a.vml.hasOwnProperty(b))a.vml[b].shape.style.display=c}event.propertyName.search("filter")!=-1&&DD_belatedPNG.vmlOpacity(a)},vmlOpacity:function(b){if(b.currentStyle.filter.search("lpha")!=-1){var a=b.currentStyle.filter;a=parseInt(a.substring(a.lastIndexOf("=")+1,a.lastIndexOf(")")),10)/100;b.vml.color.shape.style.filter=b.currentStyle.filter;b.vml.image.fill.opacity=a}},handlePseudoHover:function(a){setTimeout(function(){DD_belatedPNG.applyVML(a)},1)},fix:function(c){if(this.screenStyleSheet){var b,a;b=c.split(",");for(a=0;a<b.length;a++)this.screenStyleSheet.addRule(b[a],"behavior:expression(DD_belatedPNG.fixPng(this))")}},applyVML:function(a){var b=this;a.runtimeStyle.cssText="";b.vmlFill(a);b.vmlOffsets(a);b.vmlOpacity(a);a.isImg&&b.copyImageBorders(a)},attachHandlers:function(f){var b="handlePseudoHover",g="vmlOffsets",h,a,i,d,c,e;h=this;a={resize:g,move:g};if(f.nodeName=="A"){d={mouseleave:b,mouseenter:b,focus:b,blur:b};for(c in d)if(d.hasOwnProperty(c))a[c]=d[c]}for(e in a)if(a.hasOwnProperty(e)){i=function(){h[a[e]](f)};f.attachEvent("on"+e,i)}f.attachEvent("onpropertychange",this.readPropertyChange)},giveLayout:function(a){a.style.zoom=1;if(a.currentStyle.position=="static")a.style.position="relative"},copyImageBorders:function(c){var b,a;b={borderStyle:true,borderWidth:true,borderColor:true};for(a in b)if(b.hasOwnProperty(a))c.vml.color.shape.style[a]=c.currentStyle[a]},vmlFill:function(a){var e="none";if(!a.currentStyle)return;else{var c,g,d,f,b,h;c=a.currentStyle}for(f in a.vml)if(a.vml.hasOwnProperty(f))a.vml[f].shape.style.zIndex=c.zIndex;a.runtimeStyle.backgroundColor="";a.runtimeStyle.backgroundImage="";g=true;if(c.backgroundImage!=e||a.isImg){if(!a.isImg){a.vmlBg=c.backgroundImage;a.vmlBg=a.vmlBg.substr(5,a.vmlBg.lastIndexOf('")')-5)}else a.vmlBg=a.src;d=this;if(!d.imgSize[a.vmlBg]){b=document.createElement("img");d.imgSize[a.vmlBg]=b;b.className=d.ns+"_sizeFinder";b.runtimeStyle.cssText="behavior:none; position:absolute; left:-10000px; top:-10000px; border:none; margin:0; padding:0;";h=function(){var b=this;b.width=b.offsetWidth;b.height=b.offsetHeight;d.vmlOffsets(a)};b.attachEvent("onload",h);b.src=a.vmlBg;b.removeAttribute("width");b.removeAttribute("height");document.body.insertBefore(b,document.body.firstChild)}a.vml.image.fill.src=a.vmlBg;g=false}a.vml.image.fill.on=!g;a.vml.image.fill.color=e;a.vml.color.shape.style.backgroundColor=c.backgroundColor;a.runtimeStyle.backgroundImage=e;a.runtimeStyle.backgroundColor="transparent"},vmlOffsets:function(b){var e="px ",h,a,f,m,c,l,g,k,i,d,j;h=b.currentStyle;a={W:b.clientWidth+1,H:b.clientHeight+1,w:this.imgSize[b.vmlBg].width,h:this.imgSize[b.vmlBg].height,L:b.offsetLeft,T:b.offsetTop,bLW:b.clientLeft,bTW:b.clientTop};f=a.L+a.bLW==1?1:0;m=function(b,f,g,c,d,e){var a="px";b.coordsize=c+","+d;b.coordorigin=e+","+e;b.path="m0,0l"+c+",0l"+c+","+d+"l0,"+d+" xe";b.style.width=c+a;b.style.height=d+a;b.style.left=f+a;b.style.top=g+a};m(b.vml.color.shape,a.L+(b.isImg?0:a.bLW),a.T+(b.isImg?0:a.bTW),a.W-1,a.H-1,0);m(b.vml.image.shape,a.L+a.bLW,a.T+a.bTW,a.W,a.H,1);c={X:0,Y:0};if(b.isImg){c.X=parseInt(h.paddingLeft,10)+1;c.Y=parseInt(h.paddingTop,10)+1}else for(i in c)c.hasOwnProperty(i)&&this.figurePercentage(c,a,i,h["backgroundPosition"+i]);b.vml.image.fill.position=c.X/a.W+","+c.Y/a.H;l=h.backgroundRepeat;g={T:1,R:a.W+f,B:a.H,L:1+f};k={X:{b1:"L",b2:"R",d:"W"},Y:{b1:"T",b2:"B",d:"H"}};if(l!="repeat"||b.isImg){d={T:c.Y,R:c.X+a.w,B:c.Y+a.h,L:c.X};if(l.search("repeat-")!=-1){j=l.split("repeat-")[1].toUpperCase();d[k[j].b1]=1;d[k[j].b2]=a[k[j].d]}if(d.B>a.H)d.B=a.H;b.vml.image.shape.style.clip="rect("+d.T+e+(d.R+f)+e+d.B+e+(d.L+f)+"px)"}else b.vml.image.shape.style.clip="rect("+g.T+e+g.R+e+g.B+e+g.L+"px)"},figurePercentage:function(b,f,a,c){var d,e;e=true;d=a=="X";switch(c){case"left":case"top":b[a]=0;break;case"center":b[a]=.5;break;case"right":case"bottom":b[a]=1;break;default:if(c.search("%")!=-1)b[a]=parseInt(c,10)/100;else e=false}b[a]=Math.ceil(e?f[d?"W":"H"]*b[a]-f[d?"w":"h"]*b[a]:parseInt(c,10));if(b[a]%2===0)b[a]++;return b[a]},fixPng:function(a){a.style.behavior="none";var c,e,f,b,d;if(a.nodeName=="BODY"||a.nodeName=="TD"||a.nodeName=="TR")return;a.isImg=false;if(a.nodeName=="IMG")if(a.src.toLowerCase().search(/\.png$/)!=-1){a.isImg=true;a.style.visibility="hidden"}else return;else if(a.currentStyle.backgroundImage.toLowerCase().search(".png")==-1)return;c=DD_belatedPNG;a.vml={color:{},image:{}};e={shape:{},fill:{}};for(b in a.vml)if(a.vml.hasOwnProperty(b)){for(d in e)if(e.hasOwnProperty(d)){f=c.ns+":"+d;a.vml[b][d]=document.createElement(f)}a.vml[b].shape.stroked=false;a.vml[b].shape.appendChild(a.vml[b].fill);a.parentNode.insertBefore(a.vml[b].shape,a)}a.vml.image.shape.fillcolor="none";a.vml.image.fill.type="tile";a.vml.color.fill.on=false;c.attachHandlers(a);c.giveLayout(a);c.giveLayout(a.offsetParent);a.vmlInitiated=true;c.applyVML(a)}};try{document.execCommand("BackgroundImageCache",false,true)}catch(r){}DD_belatedPNG.createVmlNameSpace();DD_belatedPNG.createVmlStyleSheet()
