(function(){ var file; var head = document.documentElement.firstChild; while(head && head.tagName != "HEAD"){ head = head.nextSibling; } var script = head.lastChild; while(script){ if(script.tagName == "SCRIPT"){ if((script.getAttribute('src')||'').search('_loadTest') >= 0 && (!script.readyState || script.readyState == "interactive")){ file = script.getAttribute('file'); break; } } script = script.previousSibling; } if(!file && window.location.href.search(/[?&]file[=]/i) > 0){ file = window.location.href.replace(/.*[?&]file=(([^&?]*)).*/i, "$2"); } var readFile = function(file){ var xhr = null; try{ xhr = new XMLHttpRequest() }catch(e0){ try{ xhr = new ActiveXObject('Msxml2.XMLHTTP') }catch(e1){ try{ xhr = new ActiveXObject('Microsoft.XMLHTTP') }catch(e2){ try{ xhr = new ActiveXObject('Msxml2.XMLHTTP.4.0') }catch(e3){}}}} try{ xhr.open("GET", file, false); xhr.send(null); }catch(e){ return null } // file not found return xhr.responseText; } var text = readFile(file) || (file + " not found"); var baseHref = file.replace(/^(.*\/)?[^\/]+$/, "$1"); if(baseHref){ baseHref = window.location.href.replace(/[?].*/, "").replace(/[^\/]*$/, "")+baseHref; text = text.replace(/(
]|\s)*>)/i, "$1" + "