var PrintAction;(function(n){function i(n){var t=f(n),r,u,i,e,o;if(t){if(r=!1,Lib.CssClass.add(_d.body,"printContainer"),Lib.CssClass.add(t,"printee"),u=_d.querySelector(".hiddenPrintLogo img"),u&&(i=u.cloneNode(!0),Lib.CssClass.add(i,"printLogo"),_d.body.appendChild(i)),e=t.querySelector("iframe"),e)try{o=e.contentWindow;o.focus();o.print();r=!0}catch(s){}r||_w.self.print();_d.body.removeChild(i);Lib.CssClass.remove(t,"printee");Lib.CssClass.remove(_d.body,"printContainer");typeof Log!="undefined"&&Log.Log("DHTMLClick",null,"AnswerPrint",!1)}}function f(n){var t=SelectorHelper.findFirstAncestorWithSelector(n,".b_ans");return t||(t=SelectorHelper.findFirstAncestorWithSelector(n,".b_poleContent")),t}function r(){for(var t=_d.querySelectorAll(u),i=[],n=0;n<t.length;n++)i.push(t[n]);return i}function t(){for(var n,u=r(),f="data-initialized",t=0;t<u.length;t++)(n=u[t],n.getAttribute(f)!=="1")&&(n.setAttribute(f,"1"),sj_be(n,"click",function(){return i(n)}),AccessibilityHelpers.activateButtonByKey(n,[13,32],function(){return i(n)}))}var u=".printAction";n.getPrintActions=r;n.initPrintActions=t;sj_be(_w,"load",function(){return t()});sj_evt.bind("ajax.load",function(){return t()})})(PrintAction||(PrintAction={}))