function toolbar( language ) {
    try{
        /* +++ User customisable parameters start here. +++ */
        // eba_speechCacheFlag = true;
        eba_client_version = "148";
        eba_server_version = "165";
        eba_icons = fullbrowsealoud_icons;
        eba_title = title_th;
        eba_server = "speechus.texthelp.com";
        eba_speech_server = "speechus.texthelp.com";
//        eba_server = "udleditions.cast.org";
//        eba_folder = toolbar_foldername();
        eba_client_folder = toolbar_foldername() + "/";
        eba_voice = "ScanSoft Jill_Full_22kHz";

        eba_language = ENGLISH_US;
        eba_speedValue = SLOW_SPEED;
        eba_loginName = "cast";
        eba_custId = "300";
        if( language != null && language != '' ) {
            eba_language = SPANISH;
            eba_voice = "ScanSoft Paulina_Full_22kHz";
            eba_icons = eba_icons - dictionary_icon - translation_icon - factfinder_icon;
        }
        /* +++ End of user customisable parameters section. +++ */
        $rw_barInit();
    } catch( err ) {
        alert( "toolbar could not be loaded: " + err );
    }
}

function toolbar_foldername() {
    var path = window.location.pathname;
    return path.substr(0, path.lastIndexOf('/')) + "/texthelp";
}
