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