(function(C){C.fn.xslt=function(){return this};var D=/^\s*</;if(document.recalc){C.fn.xslt=function(F,G){var H=C(this);var J=function(){var K="complete";if(I.readyState==K&&E.readyState==K){window.setTimeout(function(){H.html(I.transformNode(E.XMLDocument))},50)}};var I=document.createElement("xml");I.onreadystatechange=J;I[D.test(F)?"innerHTML":"src"]=F;var E=document.createElement("xml");E.onreadystatechange=J;E[D.test(G)?"innerHTML":"src"]=G;C("body").append(I).append(E);return this}}else{if(window.DOMParser!=undefined&&window.XMLHttpRequest!=undefined&&window.XSLTProcessor!=undefined){var B=new XSLTProcessor();var A=false;if(C.isFunction(B.transformDocument)){A=window.XMLSerializer!=undefined}else{A=true}if(A){C.fn.xslt=function(G,H){var I=C(this);var F=false;var J={readyState:4};var E={readyState:4};var K=function(){if(J.readyState==4&&E.readyState==4&&!F){var L=new XSLTProcessor();if(C.isFunction(L.transformDocument)){resultDoc=document.implementation.createDocument("","",null);L.transformDocument(J.responseXML,E.responseXML,resultDoc,null);I.html(new XMLSerializer().serializeToString(resultDoc))}else{L.importStylesheet(E.responseXML);resultDoc=L.transformToFragment(J.responseXML,document);I.empty().append(resultDoc)}F=true}};if(D.test(G)){J.responseXML=new DOMParser().parseFromString(G,"text/xml")}else{J=C.ajax({dataType:"xml",url:G});J.onreadystatechange=K}if(D.test(H)){E.responseXML=new DOMParser().parseFromString(H,"text/xml");K()}else{E=C.ajax({dataType:"xml",url:H});E.onreadystatechange=K}return this}}}}})(jQuery);