document.write('<img src="http://img.photobucket.com/albums/v498/mozambique/cblues/menu/pmn_new_on.png" style="display: none;"><img src="http://img.photobucket.com/albums/v498/mozambique/cblues/menu/pmnew_on.png" style="display: none;"><img src="http://img.photobucket.com/albums/v498/mozambique/cblues/menu/pmlogin_on.png" style="display: none;"><img src="http://img.photobucket.com/albums/v498/mozambique/cblues/copy_on.gif" style="display: none;">');

// li siessesse

document.write('<style type="text/css"> body { background-image: url(http://img.photobucket.com/albums/v498/mozambique/cblues/bg/bg.gif); background-position: center top; background-repeat: repeat-y; } input, select { background-color: #E7F3F9; color: #235471; border: 1px solid #3580AC; } option { background-color: #E7F3F9; color: #235471;}a:hover{color: #235471;text-decoration: none;}.menubg{background-image: url(http://img.photobucket.com/albums/v498/mozambique/cblues/titlebg.gif); background-repeat: repeat-x;}.titlebg{background-image: url(http://img.photobucket.com/albums/v498/mozambique/cblues/titlebg.gif); background-repeat: repeat-x;}.catbg{background-image: url(http://img.photobucket.com/albums/v498/mozambique/cblues/catbg.gif); background-repeat: repeat-x;}.newstitlebg{background-image: url(http://img.photobucket.com/albums/v498/mozambique/cblues/titlebg.gif); background-repeat: repeat;}.anndiv{background-image: url(http://img.photobucket.com/albums/v498/mozambique/cblues/annbg.gif);}</style>');

document.getElementsByTagName('td')[2].style.display='none';
document.getElementsByTagName('font')[1].innerHTML='';

/*
Image before title banner by Xylish/Joe
For Studio Zero
Please do not post without my permission
http://studiozero.proboards44.com
*/

//Edit within the quotes for the URL of your image
imgURL = "http://img.photobucket.com/albums/v498/mozambique/cblues/head-1.gif"

removeSpacing = document.getElementsByTagName('br')[0];
removeSpacing.style.display = "none";
toptable = document.getElementsByTagName('table')[0];
center = document.createElement('center');
center.innerHTML ='<img src ="'+imgURL+'" border="0"/>'
toptable.parentNode.insertBefore(center,toptable)

/* PM Button in Menu Bar
© tu advanced - 2004-2005
http://ngmaster.proboards21.com */

var guestPM = "http://img.photobucket.com/albums/v498/mozambique/cblues/menu/pmlogin_off.png";
var noPM = "http://img.photobucket.com/albums/v498/mozambique/cblues/menu/pmnonew_off.png";
var newPM = "http://img.photobucket.com/albums/v498/mozambique/cblues/menu/pmnew_off.png";

var iTD = document.getElementsByTagName("TD");
var iMenu = iTD[5].innerHTML;
if(iTD[2].innerHTML.match(/Welcome/i)) {
iTD[5].innerHTML = "<table width='100%' cellpadding='0' cellspacing='0' border='0'><td align='left'><a href='?action=login'><img src=' " + guestPM + " ' border='0' title='Please Login or Register'></a></td><td align='right'>" + iMenu + "</td></tr></table>";
} else
if(iTD[2].innerHTML.match(/,\s0 /i)) {
iTD[5].innerHTML = "<table width='100%' cellpadding='0' cellspacing='0' border='0'><td align='left'><a href='?action=pm'><img src=' " + noPM + " ' border='0' title='You Have No New Messages'></a></td><td align='right'>" + iMenu + "</td></tr></table>";
} else {
iTD[5].innerHTML = "<table width='100%' cellpadding='0' cellspacing='0' border='0'><td align='left'><a href='?action=pm'><img src=' " + newPM + " ' border='0' title='You Have New Messages'></a></td><td align='right'>" + iMenu + "</td></tr></table>";
}

/* Remove ALL Menu Spacing v2
© 2004-2005 G101 Design. All rights reserved.
Usage of this code means you adhere to the copyright message intact. */

var tagOne = new RegExp('>&nb'+'sp;<','gim');
var tagTwo = new RegExp('>&nb'+'sp;','i');
var getTag = document.getElementsByTagName('td')[5];
var menuClone = getTag.cloneNode(true).innerHTML;
getTag.innerHTML = menuClone.replace(tagOne,'><');
getTag.innerHTML = getTag.innerHTML.replace(tagTwo,'');
document.getElementsByTagName('table')[3].cellPadding = '0';
document.write('<style type=\"text\/css\" media\=\"all\" \/>\nimg \{ \nvertical-align: middle\;\n\}\n<\/style>');

/* another menu code */

var MenuBar=document.getElementsByTagName("TD")[5];
var A=MenuBar.getElementsByTagName("A");
for(a=0;a<A.length;a++){
MenuBar.innerHTML=MenuBar.innerHTML.replace(/\/A>(\s|&nb{1}sp;)/i,"\/A>")}
document.write('<style type="text\/css">.menubg{padding: 0px;}<\/style>');

//stop guests viewing members profiles

var iTD = document.getElementsByTagName("TD")[2];
if(iTD.innerHTML.match(/Welcome Guest./i) && iTD.innerHTML.match(/Please/i)){
    if(location.href.indexOf("=viewprofile&username=")!=-1){
       alert("Sorry, Guests are not allowed to view member's profiles.\nRedirecting to main page.")
       window.location="/index.cgi"
    }
}