if(location.href.match(/showtopic=[0-9]/i)){
a=document.getElementsByTagName("span")
for(i=0;i<a.length;i++){
if(a[i].className=='postdetails' && a[i].innerHTML.match(/Posts:/i)){
a[i].innerHTML=a[i].innerHTML.replace("Joined:","Status: Loading...<br>Joined:")
}}
function aftFrame(){
a=window.frames['muhahaha'].document.getElementsByTagName("div")
activeList=[]
for(i=0;i<a.length;i++){
if(a[i].className=='thin' && a[i].parentNode && a[i].parentNode.innerHTML.match(/Show detailed list by:/i)){
aa=a[i].getElementsByTagName("a")
for(ii=0;ii<aa.length;ii++){
activeList[parseInt(aa[ii].href.split("showuser=")[1])]=parseInt(aa[ii].href.split("showuser=")[1])
}}}
a=document.getElementsByTagName("span")
for(i=0;i<a.length;i++){
if(a[i].className=='postdetails' && a[i].innerHTML.match(/Posts:/i)){
ID=a[i].parentNode.parentNode.parentNode.getElementsByTagName("a")[0].href.split("showuser=")[1]
stats='<img src="'+OfflineImg+'"><span style="color:'+OfflineColor+'">Offline</span>'
for(blah in activeList){
if(blah==parseInt(ID)){
stats='<img src="'+OnlineImg+'"><span style="color:'+OnlineColor+'">Online</span>'
}}
a[i].innerHTML=a[i].innerHTML.replace("Status: Loading...","Status: "+stats)
}}}
document.write('<iframe style="display:none" src="'+document.getElementById("navstrip").getElementsByTagName("a")[0].href+'" name="muhahaha" id="muhahaha" onload="aftFrame()"></iframe>')
}

if(location.href.match(/showuser=[0-9]/i)){
ID=parseInt(location.href.split("showuser=")[1])
function aftFrame2(){
a=window.frames['muhahaha'].document.getElementsByTagName("div")
activeList=[]
for(i=0;i<a.length;i++){
if(a[i].className=='thin' && a[i].parentNode && a[i].parentNode.innerHTML.match(/Show detailed list by:/i)){
aa=a[i].getElementsByTagName("a")
for(ii=0;ii<aa.length;ii++){
activeList[parseInt(aa[ii].href.split("showuser=")[1])]=parseInt(aa[ii].href.split("showuser=")[1])
}}}
stats='<img src="'+OfflineImg+'"><span style="color:'+OfflineColor+'">Offline</span>'
for(blah in activeList){
if(blah==ID){
stats='<img src="'+OnlineImg+'"><span style="color:'+OnlineColor+'">Online</span>'
}}
document.getElementById("STATS").innerHTML=stats
}
a=document.getElementsByTagName("TD");
for (i=0;i<a.length;i++){
if (a[i].innerHTML=="Active Stats"){
b=a[i].parentNode.parentNode.parentNode;
b.insertRow(-1);
b.rows[5].insertCell(-1);
b.rows[5].insertCell(-1);
b.rows[5].cells[0].className="row3";
b.rows[5].cells[1].className="row1";
b.rows[5].cells[0].innerHTML="<b>Status</b>";
b.rows[5].cells[1].innerHTML="Loading..."
b.rows[5].cells[1].id='STATS'
}}
document.write('<iframe style="display:none" src="'+document.getElementById("navstrip").getElementsByTagName("a")[0].href+'" name="muhahaha" id="muhahaha" onload="aftFrame2()"></iframe>')
}
