nEffect = new Object();
nEffect["nb_1"] = {o:new Spry.Effect.Slide('nb_1', {duration: 500, from: '0px', to: '200px', toggle: true}), h:120};
nEffect["nb_2"] = {o:new Spry.Effect.Slide('nb_2', {duration: 500, from: '0px', to: '80px', toggle: true}), h:80};   
fState = new Object();
fState["nb_1"] = false;
fState["nb_2"] = false;
fState.oNode = "t1";
fState.moi = new Array();
fState.lm = 0;
lState = new Object();
lState["nb_1"] = false;
lState["nb_2"] = false;
mState = new Object();
mState["nb_1"] = false;
mState["nb_2"] = false;
hRef = new Object();
hRef["t1"] = 40;
hRef["t2"] = 40;
hRef["t3"] = 40;
hRef["t4"] = 15;
hRef["t5"] = 15;
hRef["t6"] = 15;
hRef["t7"] = 15;
function showMenu(id)
{
if(fState.o != null && fState.o != id){
hideMenu(fState.o);
}
if(id == 'nb_1'){
gu();
}
fState.o = id;
mState[id] = true;
nEffect[id].o.start();
}
function hideMenu(id){
if(fState.o == id){
fState.o = null;
}
mState[id] = false;
nEffect[id].o.start();
}
function showGNode(id){
if(fState.oNode != null){
hideGNode(fState.oNode);
}
document.getElementById('t'+id).style.width = "130px";
document.getElementById("gImg").src = "/static/img/p_"+id+".jpg";
document.getElementById(id).style.position = "relative";
document.getElementById(id).style.visibility = "visible";
document.getElementById(id).style.height = hRef[id];
fState.oNode = id;
}
function hideGNode(id){
document.getElementById('t'+id).style.width = "0px";
document.getElementById(id).style.position = "absolute";
document.getElementById(id).style.visibility = "hidden";
document.getElementById(id).style.height = 0;
}
function menuItemOver(id){
clearMoi();
mState[id] = true;
}
function menuItemOut(id){
mState[id] = false;
fState.moi.push(setInterval(new handleOut(id).res, 500));
}
function menuOver(id){
clearMoi();
if(fState.lm != 1 || fState.o != id)
{
fState.lm = 1;
lState[id] = true;
showMenu(id);
}
}
function menuOut(id){
fState.moi.push(setInterval(new handleOut(id).res, 500));
}
function handleOut(id){
this.res = function(){
if(fState.lm != 2){
fState.lm = 2;
lState[id] = false;
clearMoi();
hideMenu(id);
}
}
}
function clearMoi(){
for(var i=0; i < fState.moi.length; i++) { clearInterval(fState.moi[i]); }
fState.moi.splice(0, fState.moi.length);
}
function gu(){
DWREngine._execute("/cfc/sync.cfm", null, "ga", ongu);
}
function ongu(parts)
{
var p = parts.split(",");
for(var i=0; i < p.length; i++)
{
var nmsg = "(";
nmsg += p[i];
if(Number(p[i]) == 1)
{
nmsg += " player)";
}else{
nmsg += " players)";
}
if(document.getElementById('rc' + i)){
document.getElementById('rc' + i).innerHTML = nmsg;
}
}
if(mState["nb_1"] == true)
{
setTimeout("gu();", 10000);
}
}