var imgArr = new Array();
imgArr.push(['thread.gif', 'normal.gif']);
imgArr.push(['locked.gif', 'locked.gif']);
imgArr.push(['hotthread.gif', 'warm.gif']);
imgArr.push(['veryhotthread.gif', 'hot.gif']);
imgArr.push(['sticky.gif', 'sticky.gif']);
imgArr.push(['stickylock.gif', 'stickylock.gif']);
for(i=0; i<riImg.length; i++)
	for(im=0; im<imgArr.length; im++)
		if(riImg[i].src.match(new RegExp('proboards.com/' + imgArr[im][0], 'i')))
			riImg[i].src = imgBase + 'folders/' + imgArr[im][1];

for(i=0; i<riImg.length; i++){
	if(riImg[i].alt == 'Inbox') riImg[i].alt = '[Inbox]';
	if(riImg[i].parentNode.nodeName == 'A' && riImg[i].src.match(/proboards.com/i) && riImg[i].alt.match(/\[(.+)\]/i) && !riImg[i].src.match(/_sm/i)){
		riImg[i].parentNode.className = 'button';
		riImg[i].parentNode.replaceChild(document.createTextNode(RegExp.$1), riImg[i]);
		i = i - 1;
	}
}

if(location.href.match(/action=display/i)){
	for(a=0; a<riTd.length; a++){
		if(riTd[a].width == '20%' && riTd[a].className == 'catbg' && riTd[a].innerHTML.match(/Author/i)){
			riTd[a].firstChild.firstChild.style.display = 'none';
			break;
		}
	}
}

var bgImg = imgBase + 'copybg.gif'; // Image the buttons will be overlayed onto
var bgHeight = '50'; // The height of the above image
var copyImg = imgBase + 'copyleft.gif'; // Image on the left: button that links to site
var copyLink = 'http://roddyinnovations.com/'; // The website the above button links to
var topImg = imgBase + 'copyright.gif'; // Image on the right: button that goes back to top
var allAlign = 'bottom'; // How will the images align? bottom, middle, or top
var padding = '0'; // Amount (in pixels) of space between buttons and background

var copytab = document.createElement('table');
with(copytab){
	id = 'copyright';
	border = 0;
	cellSpacing = 0;
	cellPadding = 0;
	align ='center';
	width = '784';
	insertRow(0).insertCell(0);
	rows[0].insertCell(1);
	style.background = 'url(' + bgImg + ') center bottom repeat-x';
}
with(copytab.rows[0].cells[0]){
	align = 'left';
	height = bgHeight;
	vAlign = allAlign;
	style.paddingLeft = padding + 'px';
}
with(copytab.rows[0].cells[1]){
	align = 'right';
	vAlign = allAlign;
	style.paddingRight = padding + 'px';
}
var link1 = document.createElement('a');
link1.href = copyLink;
link1.target = '_blank';
link1.appendChild(new Image());
link1.firstChild.border = 0;
link1.firstChild.src = copyImg;
copytab.rows[0].cells[0].appendChild(link1);
var link2 = document.createElement('a');
link2.href = '#';
link2.appendChild(new Image());
link2.firstChild.border = 0;
link2.firstChild.src = topImg;
copytab.rows[0].cells[1].appendChild(link2);
window.onload = function(){
document.body.appendChild(copytab);
}