pbXSLLibReady=true;var pbXSLLibHeader="[AjaMyAjax XSL Lib]";
this.processXSL=function(f,d,e,a){function i(j,l){var h=false,k=0;try{for(;!h&&k<5;){h=l.load(j);k++}}catch(m){h=false}if(h)return true;else{aja_empty(b);pbshowAlertMsgs&&aja_alertMsg(pbXSLLibHeader,"XSLT transformation not complete: "+j);return false}}f=f?f:null;d=d?d:null;var b=e?e:null;e=a?a:null;a=null;if(navigator.userAgent.indexOf("Chrome")!=-1||navigator.userAgent.indexOf("Safari")!=-1)alert("Not compatible with this browser");else if(!f||!b||!d){aja_empty(b);pbshowAlertMsgs&&aja_alertMsg(pbXSLLibHeader,
"XSLT error, check parameters")}else{d=e?e.indexOf(".XSL")==-1?e+".XSL":e:d.replace(".xml",".xsl");if(window.XMLHttpRequest&&document.implementation&&document.implementation.createDocument){if(a=document.implementation.createDocument("","",null)){a.async=false;if(!i(d,a)){a=null;return}try{var c=new XSLTProcessor;c.importStylesheet(a);var g=c.transformToFragment(f,document)}catch(n){aja_empty(b);pbshowAlertMsgs&&aja_alertMsg(pbXSLLibHeader,"XSLT processing error: "+d);return}aja_empty(b);if(g)if(navigator.userAgent.indexOf("Firefox")!=
-1){aja_cloak(b);document.getElementById(b).appendChild(g);c=document.getElementById(b).innerHTML;if(c.indexOf("XML Parsing Error:")==-1){c=c.replace(/&amp;/gi,"&");c=c.replace(/&lt;/gi,"<");c=c.replace(/&gt;/gi,">");aja_fill(b,c)}else if(pbshowAlertMsgs)throw new aja_alertMsg(pbXSLLibHeader,"Error parsing document");aja_reveal(b);c=null}else document.getElementById(b).appendChild(g);g=a=c=null}try{if(d)d=null;if(b)b=null;if(e)e=null}finally{f=null}}else if(a=new ActiveXObject("Microsoft.XMLDOM")){a.async=
false;if(i(d,a))try{if(g=f.transformNode(a)){aja_fill(b,g);g=null}else{aja_empty(b);pbshowAlertMsgs&&aja_alertMsg(pbXSLLibHeader,"XSLT processing error: "+d)}}finally{a=null}else a=null}}};
