
<!--
/*
Dividing Categories - Created by Peter

This code cannot be reposted anywhere other than SSDesigns or ProBoards Support.

This header must stay intact.
*/

// Size of the gap between categories
var gapSize = 25;

var tabHTML = '<td id="rr" colspan="5"></table></td></tr></table><div style="height:' + gapSize + '"></div><table width="100%" cellspacing="0" cellpadding="0" class="bordercolor"><tr><td><table cellpadding="4" cellspacing="1" width="100%"><tr>';

if(location.href.match(/\.com(\/|.+cgi(\?|#.+|\?\w+=home)?)?$/i)){
    var tBod = document.getElementsByTagName("tbody");
    for(tb = 0; tb < tBod.length; tb ++){
       for(r = 2; r < tBod.item(tb).rows.length; r ++){
          var tBodObj = tBod.item(tb).rows.item(r).cells.item(0);
          if(tBodObj.className == "catbg" && tBodObj.colSpan == "5" && tBodObj.align != "right"){
             var c = tabHTML + tBod.item(tb).firstChild.innerHTML + "</tr>";
             var p = tBodObj.parentNode.innerHTML;
             var tBodPar = tBod.item(tb).parentNode.parentNode.parentNode.parentNode.parentNode;
             tBodPar.parentNode.innerHTML = tBodPar.parentNode.innerHTML.replace(p, c + p);
          }
          if(tBod.item(tb).rows.item(r).firstChild.id == "rr"){
             tBod.item(tb).rows.item(r).style.display = "none";
          }
       }
    }
}

//-->

// Remove "Forum Name" Row by CD
var aTD = document.getElementsByTagName("TD");

if(location.href.match(/action=(change|home)/i) || !location.href.match(/action=/i)){
    for(a=4;a<aTD.length;a++){
        if(aTD[a].firstChild && aTD[a].firstChild.firstChild && aTD[a].firstChild.firstChild.innerHTML == "Forum Name"){
            aTD[a].parentNode.style.display = "none";
            
        }
    }
}

//Remove "Topics and Posts" column from main page
//wooper
var TD = document.getElementsByTagName("TD")
for(i=0;i<TD.length;i++){
if(TD[i].width == "1%" && TD[i+1].width == "1%")
{
TD[i].style.display ="none";
TD[i+1].style.display ="none";
TD[i-1].colSpan = '3';
}
}

/* Remove "Mark as Read" Bar by Scorpian */
var riTd = document.getElementsByTagName('td');
if(location.href.match(/action=home/i) || !location.href.match(/(action|board)=/i)){
    for(x=0; x<riTd.length; x++){
        if(riTd[x].className == 'catbg' && riTd[x].colSpan == '5' && riTd[x].innerHTML.match(/Mark All Boards Read/i)){
            riTd[x].parentNode.style.display = 'none';
        }
    }
}

//Remove info center titlebar
if( this.location.href.match(/\.com(\/(index\.cgi(\?|#\w+)?)?)?$/))
{
var T = document.body.getElementsByTagName("td");
for(t=0;t<T.length;t++){
if(T[t].className == "titlebg" && T[t].innerHTML.match(/Info\sCenter/))
T[t].parentNode.style.display = "none";
}}

<!--
/*Removes On/Off*/
var TD = document.getElementsByTagName('td');
for(t=0; t<TD.length; t++)
{
if(TD[t].colSpan == '2' && TD[t].innerHTML.match('Forum Name'))
{
TD[t].colSpan = '1';
}
if(TD[t].width == '8%' && TD[t].className == 'windowbg')
{
TD[t].style.display = "none";
}
}
// -->

//remove info center icons
var InfoIcon=document.getElementsByTagName("TD")
for(t=0;t<InfoIcon.length;t++){
if(InfoIcon[t].className.match("windowbg") && InfoIcon[t].width=="20" && InfoIcon[t].vAlign=="middle"){
InfoIcon[t].style.display="none"
}}
