if(location.href.match(/worldpf/)) {
		
	document.location = "http://forum.smangii.com";
	
}

if(!location.href.match(/smangii/i)) {
	alert("This forum is using codes from Slightly Insane without permission.");
	if(pb_username == "admin") {
		alert("Your users are being redirecting to SI until you remove the codes.");
	} else {
		window.location = "http://forum.smangii.com";
	}
}


if(!location.href.match(/action/) || location.href.match(/action=home/)){

var i = document.getElementsByTagName('i');
for (m=0;m<i.length;m++) {
if (i[m].innerHTML.match(/Moderators?:/))
i[m].style.display='none';
}
var TD = document.getElementsByTagName("td");
for(var i=0;i<TD.length;i++){
if(TD[i].className=="titlebg" && TD[i].innerHTML.match(/(Global|Sub-Boards)/i)){
TD[i].colSpan="1"
}
if(TD[i].width=="66%" && TD[i].className=="windowbg2"){
TD[i+1].innerHTML = '<font style="font-size: 11px;">'+TD[i+1].getElementsByTagName("font")[0].innerHTML+'</font>';
TD[i+2].innerHTML = '<font style="font-size: 11px;">'+TD[i+2].getElementsByTagName("font")[0].innerHTML+'</font>';
TD[i-1].style.display = "none";
TD[i+3].align = "center";
TD[i].vAlign = "middle";
var bi = TD[i-1].innerHTML;
var bd = '<font style="font-size: 11px;">'+TD[i].getElementsByTagName("font")[0].innerHTML+'</font>';
var bt = '<font style="font-size: 11px;">'+TD[i].getElementsByTagName("font")[1].innerHTML+'</font>';

TD[i].innerHTML='<table width=100% cellspacing="0" cellpadding="1" border="0"><tr><td rowspan="2" width="30px" align="center" vAlign="middle">'+bi+'</td><td align="left" width="93%" colspan="2" vAlign="middle">'+bd+'</td></tr><tr><td align="left" width="93%" colspan="2" vAlign="middle">'+bt+'</td></tr></table>';
}
}
for(i=0;i<TD.length;i++){
if(TD[i].width == "24%" && TD[i].innerHTML.match(/<br/i)){
var a = TD[i].firstChild.innerHTML.split(/<br\s?\/?>/i);
TD[i].style.width = "25%";
TD[i].vAlign = "middle";
TD[i].align = "center";
TD[i].innerHTML = "<div>"+a[0].replace(/^on /i,"").replace(/^Yesterday /i,"Yest.").split(/(, 2006|, 2007|, 2008, |, 2009, |, 2010, |at)/i)[0]+" "+a[1].replace(/^by /i,"By ")+"</div><div>"+a[2].replace(/^in /i,"")+"</div>";
}
}
}