<!doctype>
<%      set Obj = folders.ExtObject %>

<html>
<head>
    <script src="functions.js" type="text/javascript"> </script>
    <title><%=Obj.AppName%> <%=Obj.AppEdition%></title>
    <link rel="stylesheet" type="text/css" href="<%=Obj.UIColor%>.css" />
    <script type="text/javascript">
        tips = <%=Obj.TipsCount %>;
    </script>
</head>
<body>
    <%
      header = "header"
        if Obj.AppCompany <> "MetaProducts" then header="header-no-logo"
    %>

    <div class="<%=header%>">
        <div class="wrapper">
			<div class="product-logo">
	            <%=Obj.AppName%><span><%=Obj.AppEdition%></span></div>
			<a href="https://www.metaproducts.com" class="mp-logo"></a>
        </div>
    </div>
    <div class="menu">
        <table class="wrapper" cellpadding="0" cellspacing="0" border="0">
			<tr>
	            <td><a href="./">Home</a></td>
            	<td class="space"></td>
            	<td><a href="tutorials.htm" class="active">Tutorials</a></td>
            	<td><a href="/report.csv">Report</a></td>
            	<td><a href="projects.htm">Projects</a></td>
            	<td><a href="wizard.htm">Wizard</a></td>
			</tr>
        </table>
	</div>
    <div class="content">
        <div class="wrapper">
            <div class="tips">
                <table class="nav" cellpadding="0" cellspacing="0" border="0">
					<tr>
                    	<td><a class="prev" onclick="nextTip(0)">&lt;</a></td>
                    	<td class="space">Did you know...</td>
                    	<td><a class="next" onclick="nextTip(1)">&gt;</a></td>
					</tr>
                </table>
                <div id="tip"></div>
            </div>
            <div id="text">
                <!--Projects heading-->
                <%
      Set doc = folders.CreateObject("Microsoft.XMLDOM")
        doc.async = false
        doc.load (folders.TemplatesPath & "start\tutorial.xml" )
        set root = doc.documentElement
        cnt = 1
        for i = 0 to root.childNodes.length - 1
                set node = root.childNodes(i)
                name = node.attributes(0).text
                tp = node.attributes(1).text
                if tp="0" then
                        response.write("<h2>" & name & "</h2>" & chr(13) & chr(10))
                        response.write("<ul>" & chr(13) & chr(10))
                        for j = 0 to node.childNodes.length - 1
                                set t = node.childNodes(j)
                                response.write("<li><a href='tutorial.htm?tp=0&num=" & cnt & "'>" & t.attributes(0).text & "</a><br/>" & chr(13) & chr(10))
                                response.write("<small>" & t.attributes(1).text & "</small>" & chr(13) & chr(10))
                                response.write("<div id='tutorial" & cnt &"'></div>" & chr(13) & chr(10))
                                response.write("</li>")
                                cnt = cnt + 1
                        next
                        response.write("</ul>")
                end if
        next
                %>
                <!-- End of the Projects placeholder -->
                <div id="footer">
                </div>
            </div>
            <div style="clear: both"></div>
        </div>
        <script type="text/javascript">nextTip(0)</script>
    </div>
</body>
</html>
