'Help Menu'

@classmethod
def menu_help(cls, **attr):

    menu_help = MM('Help', c='default', f='help', **attr)(MM('Contact    us', f='contact'), MM('About', f='about'))
    if current.deployment_settings.get_base_guided_tour():
        table = current.s3db.tour_config
        logged_in = current.auth.is_logged_in()
        if logged_in:
            query = ((table.deleted == False) & (table.role != ''))
        else:
            query = ((table.deleted == False) & (table.role == ''))
        tours = current.db(query).select(table.id, table.name, table.controller, table.function, table.role)
        if (len(tours) > 0):
            menu_help.append(SEP())
        for row in tours:
            menu_help.append(MM(row.name, c=row.controller, f=row.function, vars={'tour': row.id}, restrict=row.role))
    return menu_help
