/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function setEntryID(entryID){
    if($("entryID")) $("entryID").value = entryID;
}

function setEditID(entryID){
    if($("editID")) $("editID").value = entryID;
}

Event.observe(window, 'load', function() {
    $('glossarContent').observe('click', function respondToClick(event) {
        var list =  $('glossarContent').getElementsBySelector( 'a.down');
        for(var i = 0;i < list.length;i++){
            list[i].removeClassName('down');
        }
        var element = event.element();
        element.addClassName('down');
    });
});
