/* <![CDATA[ */

///////////////////////// Status bar functions /////////////////////////

// Define ID for status bar
var statusBarID = 'ui_panel_content_status';

// Define text to display for idle status bar
var idleStatusBarText = 'Ready';

// Define function to reset status bar
function resetStatusBar() {
    
    // If status bar exists
    if (typeof(document.getElementById(statusBarID)) !== "undefined" && document.getElementById(statusBarID) !== null) {
        
        // Place status bar ID resource in to variable
        var sb = document.getElementById(statusBarID);
        
        // Set the inner text of the status bar
        sb.innerHTML = idleStatusBarText;
        
    }
    
}

// Define function to set status bar text
function setStatusBar(status) {
    
    // If status bar exists
    if (typeof(document.getElementById(statusBarID)) !== "undefined" && document.getElementById(statusBarID) !== null) {
        
        // Place status bar ID resource in to variable
        var sb = document.getElementById(statusBarID);
        
        // If text string contains a value
        if (status.length > 0) {
            
            // Set the inner text of the status bar
            sb.innerHTML = status;
            
        }
        
    }
    
}

/////////////////////////// JQuery functions ///////////////////////////

// Upon the DOM being ready
$(document).ready(function() {
    
    // Reset status bar
    resetStatusBar();
    
});

/* ]]> */