<!--

/* Color Board Links Red */

//by Naruto with a lot of help from Fla5hba5H
//modified by california to color all boards

//edit hex color here
var color='CC0000';

if (window.location.href != "http://l4ewakamolking.proboards39.com/index.cgi?action=chat") {

for (cb=0;cb<document.links.length;cb++)
if (document.links[cb].href.match( new RegExp('board=') )) 
document.links[cb].style.color=color;

for (cb=0;cb<document.links.length;cb++)
if (document.links[cb].href.match( new RegExp('action=chat') )) 
document.links[cb].style.color=color;
}





/* Change Board Links */

var link=document.getElementsByTagName("a");
if(location.href.match(/com\/?((index\.cgi)?\??(action=(ma.+ad|logout|home))?(#.+)?)?$/)){
    for(i=0;i<link.length;i++){

/* Dinky Bomb Deluxe -> Index of Levels */
        if(link[i].href.match(/board=molotov$/)){
            link[i].href="http://l4ewakamolking.proboards39.com/index.cgi?board=molotov&action=display&thread=1110492474";

/* Games -> Games Index */
        }else if(link[i].href.match(/board=L4Egames$/)){
            link[i].href="http://l4ewakamolking.proboards39.com/index.cgi?board=L4Egames&action=display&thread=1115265393";

/* Public Roster -> Roster */
        }else if(link[i].href.match(/board=publicroster$/)){
            link[i].href="http://l4ewakamolking.proboards39.com/index.cgi?board=publicroster&action=display&thread=1119684302";

/* Chat Room -> Website Chat Room */
        }else if(link[i].href.match(/board=chatroom$/)){
            link[i].href="http://www.l4eclan.com/chat/";

        }
    }
}





/* Remove Cell for WoE Category */

var catName = "l4ewoe";

var iCell = document.getElementsByTagName("td");
if(location.href.match(/com\/?((index\.cgi)?\??(action=(logout|home))?(#.+)?)?$/)){
    for(m=iCell.length-1; m>0; m--){
        if(iCell[m].className == "catbg" && iCell[m].height == "18" && iCell[m].innerHTML.indexOf(catName) != -1){
            iCell[m].parentNode.style.display = "none";
        }
    }
}





/* Remove Moderators: X */

var it=document.getElementsByTagName("i");
if(!location.href.match(/action=/) || location.href.match(/action=(logout|home)/)){
    for(i=0;i<it.length;i++){
        if(it[i].innerHTML.match(/Moderators?:/i)){
            it[i].style.display="none";
        }
    }
}





/* Replace Blog Category Cell with Blog */

// Replace Category Row with HTML Sets by Chris
// Do not redistribute without permission of the creator

var catID = "l4eblog"; // ID of the category bar to be replaced.

// No need to edit
var aTD = document.getElementsByTagName("TD");
if(location.href.match(/action=home$/i) || !location.href.match(/action=/i)){
    for(a=0;a<aTD.length;a++){
        if(aTD[a].colSpan == 5 && aTD[a].getElementsByTagName("A")[0].name == catID){
            var exR = document.getElementById("forCat").rows;
            while(exR[0]){
                if(aTD[a].parentNode.nextSibling)
                    aTD[a].parentNode.parentNode.insertBefore(exR[exR.length-1],aTD[a].parentNode.nextSibling);
                else
                    aTD[a].parentNode.parentNode.appendChild(exR[exR.length-1]);
            }
            aTD[a].parentNode.parentNode.deleteRow(aTD[a].parentNode.rowIndex);
            break;
        }
    }
}

// -->