(function(e,b){function j(a){for(var c=-1;++c<k;)a.createElement(i[c])}if(window.attachEvent&&b.createStyleSheet&&function(){var a=document.createElement("div");a.innerHTML="<elem></elem>";return a.childNodes.length!==1}()){e.iepp=e.iepp||{};var a=e.iepp,f=a.html5elements||"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",i=f.split("|"),k=i.length,n=RegExp("(^|\\s)("+f+")","gi"),o=RegExp("<(/*)("+f+")",
"gi"),p=/^\s*[\{\}]\s*$/,q=RegExp("(^|[^\\n]*?\\s)("+f+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),l=b.createDocumentFragment(),r=b.documentElement,f=b.getElementsByTagName("script")[0].parentNode,g=b.createElement("body"),h=b.createElement("style"),s=/print|all/,d;a.getCSS=function(b,c){if(b+""===void 0)return"";for(var m=-1,f=b.length,d,e=[];++m<f;)d=b[m],d.disabled||(c=d.media||c,s.test(c)&&e.push(a.getCSS(d.imports,c),d.cssText),c="all");return e.join("")};a.parseCSS=function(a){for(var c=[],b;(b=q.exec(a))!=
null;)c.push(((p.exec(b[1])?"\n":b[1])+b[2]+b[3]).replace(n,"$1.iepp-$2")+b[4]);return c.join("\n")};a.writeHTML=function(){var a=-1;for(d=d||b.body;++a<k;)for(var c=b.getElementsByTagName(i[a]),f=c.length,e=-1;++e<f;)c[e].className.indexOf("iepp-")<0&&(c[e].className+=" iepp-"+i[a]);l.appendChild(d);r.appendChild(g);g.className=d.className;g.id=d.id;g.innerHTML=d.innerHTML.replace(o,"<$1font")};a._beforePrint=function(){if(!a.disablePP)h.styleSheet.cssText=a.parseCSS(a.getCSS(b.styleSheets,"all")),
a.writeHTML()};a.restoreHTML=function(){a.disablePP||g.swapNode(d)};a._afterPrint=function(){a.restoreHTML();h.styleSheet.cssText=""};j(b);j(l);if(!a.disablePP)f.insertBefore(h,f.firstChild),h.media="print",h.className="iepp-printshim",e.attachEvent("onbeforeprint",a._beforePrint),e.attachEvent("onafterprint",a._afterPrint)}})(this,document);
