/* Jquery */

$(document).ready(function(){
$("span.sboxcodex").hide();
$("span.sboxcode").click(function(){
$(this).parent().next('table').hide();
$(this).hide();
$("span.sboxcodex").show();
});
$("span.sboxcodex").click(function(){
$(this).parent().next('table').show();
$(this).hide();
$("span.sboxcode").show();
});
});

/* JFB Shoutbox Best Hits by Chakka */
var wham = document.getElementsByTagName("div");

var test = checkitout;
var nada = ""

if(test != nada){
var shy = checkitout;
var brash = ornotwtvr;
}
else {
var shy = "-";
var brash = "+";
}

for(i=0;i<wham.length;i++)
if(wham[i].className == "maintitle" && wham[i].innerHTML.match(/Shoutbox/i)){
if(noRules == true){
wham[i].getElementsByTagName('a')[1].innerHTML = "";
}
if(noView == true){
wham[i].getElementsByTagName('a')[0].innerHTML = "";
}
if(rename == true){
wham[i].innerHTML=""+yourtext+"";
}
wham[i].innerHTML.match(/(.+)/i);
var thecheek = RegExp.$1;
if(collapse == true){
wham[i].innerHTML="<span class='sboxcodex'>" + brash + "</span><span class='sboxcode'>" + shy + "</span>" + thecheek + "";
}
}