/* Kedavra ~ Original Concept by Ovi */
/* Converted to ProBoards by Scorpian */

if(location.href.match(/board=/i) && !location.href.match(/action=/i)){
	for(c=0; c<riTable.length; c++){
		if(riTable[c].rows[0].cells[0].className == 'titlebg' && riTable[c].rows[1] && riTable[c].rows[1].cells[0].className == 'catbg'){
			riTable[c-1].style.backgroundColor = 'transparent';
			riTable[c].className = 'cenTab';
			riTable[c].parentNode.insertBefore(headDiv.cloneNode(true), riTable[c])
			riTable[c].parentNode.insertBefore(baseDiv.cloneNode(true), riTable[c].nextSibling)
		}
	}
}

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;
	}
}

for(s=riSelect.length-1; s>=0; s--)
	if(riSelect[s].innerHTML.match(/Forum\sJump/i)) 
		riSelect[s].parentNode.removeChild(riSelect[s]);

window.onload = function(){
	var bDiv = document.createElement('div');
	bDiv.className = 'copyright';
	bDiv.align = 'center';
	bDiv.appendChild(document.createElement('font'));
	bDiv.firstChild.appendChild(document.createTextNode('Designed by '));
	bDiv.firstChild.appendChild(document.createElement('a'));
	bDiv.firstChild.lastChild.href = 'http://exclusivestyles.proboards82.com/';
	bDiv.firstChild.lastChild.target = '_blank';
	bDiv.firstChild.lastChild.appendChild(document.createTextNode('Ovi'));
	bDiv.firstChild.appendChild(document.createTextNode(' and Coded by '));
	bDiv.firstChild.appendChild(document.createElement('a'));
	bDiv.firstChild.lastChild.href = 'http://roddyinnovations.com/';
	bDiv.firstChild.lastChild.target = '_blank';
	bDiv.firstChild.lastChild.appendChild(document.createTextNode('Scorpian'));
	bDiv.firstChild.appendChild(document.createTextNode('.'));
	document.getElementById('boardbg').appendChild(bDiv);
}