function fpbhelp(blkname)
% FPBHELP Points Web browser to the HTML help file
%          corresponding to Fixed-Point Designer.

% Copyright 1994-2012 The MathWorks, Inc.
d = docroot;
           
if isempty(d)
    % Help system not present:
    MSLDiagnostic('SimulinkFixedPoint:datatyperules:NoDocRootFound').reportAsWarning; 
    helpview(fullfile(docroot, 'toolbox', 'fixedpoint', 'fixedpoint.map'), 'fp_product_page');
else
    if isempty(blkname) || isequal(blkname,'fxptdlg')
        if ~isempty(which('autofixexp')) % Locates if Fixed-Point Designer is installed
            helpview(fullfile(docroot, 'mapfiles', 'simulink.map'), 'f11-xptdlg');
        else
            helpview(fullfile(docroot, 'mapfiles', 'simulink.map'), 'f14-p_settings_dialog');
        end
    else
        helpview(fullfile(docroot, 'toolbox', 'fixedpoint', 'fixedpoint.map'), 'fp_product_page');        
    end
end

