window.onload = function() {
    if (typeof(interfaceLoad)=='function') { 
        interfaceLoad();
    }
}

function showPicture(src) {
        var x = 50;
        var y = 50;
        var w = 10; var h = 10;
        var win = window.open('/picture/?src='+src, 'IMAGE_WINDOW', 'dependent=yes, disrectories=no, innerWidth='+w+', innerHeight='+h+', width='+w+', height='+h+', location=no, menubar=no, resizable=no, screenX='+x+', screenY='+y+', scrollbars=no, titlebar=no, toolbar=no');
        win.focus();
}

function toggleBoxes(el) {
    var className = 'srv';
    if (el.checked) { className = 'srv_on'; }
    var cont = el.parentNode;
    cont.className = className;
    if (!el.checked) {
        var inputs = cont.getElementsByTagName('input');
        for (var i=0; i<inputs.length; i++) {
            inputs[i].checked = 0;
        }
    }
}

function showVotingResult(a) {
        var x = 50;
        var y = 50;
        var w = 600; var h = 10;
        var vwin = window.open(a.href, 'VOTING_WINDOW', 'dependent=yes, disrectories=no, innerWidth='+w+', innerHeight='+h+', width='+w+', height='+h+', location=no, menubar=no, resizable=no, screenX='+x+', screenY='+y+', scrollbars=no, titlebar=no, toolbar=no');
        vwin.focus();
        return false;
}
