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

