'#Reference {A3B5C45B-F842-44fc-A5E5-50CED69BA86E}#2.0#0#C:\Program Files\Mindjet\MindManager 6\Mm5WebExport.dll#Mm5webexport 2.0 Type Library
'#Uses "ParameterNames.mmbas"
'#Uses "GlobalUtilities.mmbas"

Option Explicit

Sub Main

Dim addin As Mm5WebExportAddIn
Dim webex As WebExport
Dim aPage As Mm5WebExportLib.Page

Set addin = WebExportHelper.WebExportAddIn
Set webex = addin.ActiveWebExport

Dim s_Template As String

    On Error GoTo ReportError
    webex.Trace("Entering PageHdOverview.mmbas",2)
    s_Template = ""
    If webex.GetParameter("Strings.Show.OverviewMap") Then
        ' Read our template
        s_Template = webex.ReadFile("SnipPageHdOverview.htm")
        ' Process all commands and parameters
        ProcessString webex, s_Template
    End If

    ' Write out the result
    webex.PushString(s_Template)

    webex.Trace("Exiting PageHdOverview.mmbas",2)
    Exit Sub

ReportError:
    ProcessError(webex)
    Exit Sub

End Sub
