/* global.js
 *
 * Version: 1.080818
 *
 * Functions for ECO-wide features
 *
 * */

var global   = new Object();

$(document).ready(function(){

    // Show all of the script-only elements that are hidden by default.
    $('.uiShow').each(function() {
        this.style.visibility = 'visible';
    });

    // Hide all of the script-only elements that are shown by default.
    $('.uiDelete').each(function() {
        this.style.display = 'none';
    });

    global.state = new Object();
    global.ui    = new Object();
    global.state.searchBoxCleared = false;

    // Clear the search box the first time the user tabs/clicks on it.
    global.ui.search = document.getElementById('guiSearch');
    global.ui.search.onfocus = function() {
        if (! global.state.searchBoxCleared) {
            global.ui.search.value = '';
            global.state.searchBoxCleared = true;
        }
    }


});
