<%[@ IncludeFile "Code/Util.vbs" ]%> <%[@ IncludeFile "Code/Lang.vbs" ]%> <%[If Session("Book") Then Report.AbortTemplate]%> <%[ If Session("cTocExpand") = -1 Or Session("cTocExpand") >= SourcesAndCitations.Count Then fTreeOpen = true strToggle="collapse" Else fTreeOpen = false strToggle = "expand" End If ]%> @[ Report.WriteFormatted Dic("FmtTitleTocSources"), Session("Title") ]@ <%[If Session("fUseTreeIndexes") Then]%> <%[If Session("fUseCurvyBoxes") Then CurvyBoxOpen() Else Report.WriteLn "
" End if ]%> @[WriteHtmlButtonToggle("Entries")]@ <%[Else]%> <%[If Session("fUseCurvyBoxes") Then CurvyBoxOpen() Else Report.WriteLn "
" End if End If]%>

@[ Report.WriteTextDic "TocIndexSources" ]@

<%[Report.Write Util.IfElse(Session("fUseCurvyBoxes"), "
", "
") SourcesAndCitations.SortBy("Title") ' Sort the sources alphabetically If Session("fUseTreeIndexes") Then Report.WriteLn "
    " WriteHtmlTocSources fTreeOpen, false If Session("fUseTreeIndexes") Then Report.WriteLn "
" ]%>
<%[ WriteHtmlFramesetSafeguard(SourcesAndCitations.Count) ]%> <%[If Session("fUseCurvyBoxes") Then CurvyBoxClose()]%>