/* Forum size */

tablew = document.getElementsByTagName('TABLE');
for(t=0;t<tablew.length;t++) {
if(tablew[t].width=="92%"){
tablew[t].width='738';
}
}

document.write('<style type="text/css"> textarea { color: 235471; background-color: E7F3F9; border: 1px solid #3580AC; } .catbg { text-align: center; } </style>');

document.write('<center><a href="http://www.CharmedSkins.co.nr" target="_Blank"><img src=http://img.photobucket.com/albums/v498/mozambique/cblues/copy_off.gif border="0"></a></center></br>');

if (location.href.match(/board=/i))
{

/* Change Announcements Divider Class & Height */
var td=document.getElementsByTagName("td");
for(i=0;i<td.length;i++){
if(td[i].colSpan=="7" && td[i].className=="windowbg2" && td[i].height=="5"){
td[i].height="24";
td[i].className="anndiv";
}
}

/* Sticky Threads Divider
Created by Marty.
Do not repost without my permission. */

var sImage="sticky.gif"
var sLImage="stickylocked.gif"

var table=document.getElementsByTagName('table');

if(location.href.match(/board=/i) && !location.href.match(/action=display/i)){
for(t=0;t<table.length;t++){
for(r=0;r<table[t].rows.length;r++){
with(table[t]){
if(rows[r].cells[0].width=="5%"){
if(!rows[r].cells[0].getElementsByTagName('img')[0]){
var num=1;
} else {
var num=0;
}
if(!rows[r].cells[num].innerHTML.match(new RegExp("("+sImage+"|"+sLImage+")","i")) && rows[r-1].getElementsByTagName('td')[num].innerHTML.match(new RegExp("("+sImage+"|"+sLImage+")","i"))) {
var cell=insertRow(r).insertCell(0);
cell.colSpan="8";
cell.className="catbg";
cell.style.height="24";
cell.innerHTML=" ";
break;
}}}}}}

/* head & base images on sub-boards by elindir
http://101support.proboards43.com
do not redistribute */

var SubHead = "http://img.photobucket.com/albums/v498/mozambique/cblues/head.gif";
var headHeight="6";
var SubFoot = "http://img.photobucket.com/albums/v498/mozambique/cblues/base.gif";
var footHeight="6";

//Do not edit below
var Table = document.getElementsByTagName("table");
for(m=0;m<Table.length;m++)
if(Table[m].width.match(/100%/) && Table[m].cellSpacing.match(/0/) && Table[m].innerHTML.match(/Sub-Boards/)){
Table[m].bgColor = ''; Table[m].className = ''; Table[m+1].className="bordercolor";
var iHead = Table[m].insertRow(0).insertCell(0);
iHead.height=headHeight;
iHead.style.backgroundImage="url("+SubHead+")";

var iBase = Table[m].insertRow(2).insertCell(0);
iBase.height=footHeight;
iBase.style.backgroundImage="url("+SubFoot+")";
}

}

/* Add image to the bottom */

function addToBottom(){
var addedHTML="<img src='http://img.photobucket.com/albums/v498/mozambique/cblues/foot.gif' \/>";

var divAlignment="center";

var newDiv=document.createElement("DIV");
newDiv.align=divAlignment;
newDiv.innerHTML=addedHTML;
document.getElementsByTagName("BODY")[0].appendChild(newDiv);
}
window.onload=addToBottom;

/* basic image rollover */

var img = document.getElementsByTagName("img");
for(i=0; i<img.length; i++){
    if(img[i].src.match(/_o(n|ff)/)){
        img[i].onmouseover = function(){this.src = this.src.replace("_off", "_on");};
        img[i].onmouseout=function(){this.src = this.src.replace("_on", "_off");};
    }
}