var Wrk = Wrk || {};


/**
 * Function to control the info bar.
 * 
 * @param string message
 * @param string staus (success, error)
 * @return void
 */
Wrk.notify = function(message, status, scroll) {
    var scroll = (scroll == undefined)? true : scroll;
    
    var me = jQuery('#wrk-infoBar');
    
    me.attr('class', status);
    me.find('span.message').html(message);
    
    if(scroll)
        window.scrollTo(0,0);
    
    if(me.is(':visible')) {
        me.fadeOut(400).fadeIn(400);
    } else {
        me.fadeIn(800);
    }
    

    
}


