


olark.extend('Translator');
olark.extend('CalloutBubble');
olark.extend('VisitorEmail', {source: 'http://www.olark.com/javascripts/olark-visitor-email.js'});
olark.configure(function(conf){

    // // comment this out to stop the test
    hblRpcTrick = 1;
    hbl_max_event = 4;
    hbl_hostname = "rpc-dev.olark.com/rpc";
    hbl_hostname_delimiter = "-";
    // end the comments here

    conf.system.before_chat_text = "Olark Demo: Need Help?";
    conf.system.not_available_text = "Olark Demo: Try Me!";

    conf.system.welcome_msg = "This is an Olark window, it is what your visitors will see on your site.  We're around, so let us know if there is any way we can help.";
    conf.system.offline_message = "This is a Olark window, it is what your visitors will see on your site.  No operators are currently available, so if you need help try our <a href=\"/forum\" target=\"_top\">Forum</a>.";
    // conf.Translator.show_language_changes = true;
    
    var custom_username = window.hbl_to_set_username;
    if(custom_username) {
        conf.system.before_chat_text = "Questions about Olark?";
        conf.system.not_available_text = "No Operators Available"

        conf.system.force_nickname = custom_username;
        conf.system.welcome_msg = "Hi " + custom_username + "! Have any questions, comments, or feature requests?  Let us know.";

        conf.system.offline_message = "Need help " + custom_username + "? We aren't here right now, but please post your question on our <a href=\"/forum\" target=\"_top\">Forum</a>.";
    }
});
