var competitions;
var states = new Array ();

function initBoxes (boxes) {
    competitions = boxes;
    for (var i = 0; i < boxes.length; ++i) {
        if ("#" + boxes[i] != window.location.hash) {
            $(boxes[i] + "-box").hide ();
        }
    }
}

function toggleBox (box) {
    for(var i = 0; i < competitions.length; ++i) {
        if($(competitions[i] + '-box').visible() || (competitions[i] == box && !($(competitions[i] + '-box').visible())))
            Effect.toggle ($(competitions[i] + "-box"), 'blind', { duration: 0.7 });
    }
}
