{include file="header.tpl" top2=true}
<h3 class="package-title">{$info.0.package}</h3>
<div class="tree">
<script language="Javascript">
if (document.getElementById) {ldelim}
{section name=p loop=$info}
	{if $info[p].subpackage == ""}
		var tree = new WebFXTree('<span class="package">{$info.0.package}</span>');
		tree.setBehavior('classic');
	
		{if $hastodos}
			var todos = new WebFXTreeItem('To-do List', '{$todolink}');
			tree.add(todos);
		{/if}

		var class_trees = new WebFXTreeItem('Class trees', '{$classtreepage}.html');
		tree.add(class_trees);

		var elements = new WebFXTreeItem('Index of elements', '{$elementindex}.html');		
		tree.add(elements);

		var parent_node;

		{if $info[p].tutorials}
			var tree_tutorial = new WebFXTreeItem('Tutorial(s)/Manual(s)', '');
			tree.add(tree_tutorial);
			
			{if $info[p].tutorials.pkg}
				var tree_inner_tutorial = new WebFXTreeItem('Package-level', '');
				tree_tutorial.add(tree_inner_tutorial);
				
				parent_node = tree_inner_tutorial;
				{section name=ext loop=$info[p].tutorials.pkg}
					{$info[p].tutorials.pkg[ext]}
				{/section}
			{/if}
			
			{if $info[p].tutorials.cls}
				var tree_inner_tutorial = new WebFXTreeItem('Class-level', '');
				tree_tutorial.add(tree_inner_tutorial);
				
				parent_node = tree_inner_tutorial;
				{section name=ext loop=$info[p].tutorials.cls}
					{$info[p].tutorials.cls[ext]}
				{/section}
			{/if}
			
			{if $info[p].tutorials.proc}
				var tree_inner_tutorial = new WebFXTreeItem('Function-level', '');
				tree_tutorial.add(tree_inner_tutorial);
				
				parent_node = tree_inner_tutorial;
				{section name=ext loop=$info[p].tutorials.proc}
					{$info[p].tutorials.proc[ext]}
				{/section}
			{/if}		
		{/if}
	
		{if $info[p].hasinterfaces}
    		{if $info[p].classes}
    			var tree_classe = new WebFXTreeItem('Interface(s)', '{$packagedoc}');
    			
    			{section name=class loop=$info[p].classes}
    			    {if $info[p].classes[class].is_interface}
        				var classe = new WebFXTreeItem('{$info[p].classes[class].title|escape:"quotes"}', '{$info[p].classes[class].link|escape:"quotes"}');
        				tree_classe.add(classe);
        			{/if}
    			{/section}

    			tree.add(tree_classe);
    		{/if}
		{/if}
		{if $info[p].hasclasses}
    		{if $info[p].classes}
    			var tree_classe = new WebFXTreeItem('Class(es)', '{$packagedoc}');
    			
    			{section name=class loop=$info[p].classes}
    			    {if $info[p].classes[class].is_class}
        				var classe = new WebFXTreeItem('{$info[p].classes[class].title|escape:"quotes"}', '{$info[p].classes[class].link|escape:"quotes"}');
        				tree_classe.add(classe);
        			{/if}
    			{/section}
    	
    			tree.add(tree_classe);
    		{/if}
		{/if}

		{if $info[p].functions}
			var tree_function = new WebFXTreeItem('Function(s)', '{$packagedoc|escape:"quotes"}');
			
			{section name=nonclass loop=$info[p].functions}
				var fic = new WebFXTreeItem('{$info[p].functions[nonclass].title|escape:"quotes"}', '{$info[p].functions[nonclass].link|escape:"quotes"}');
				tree_function.add(fic);
			{/section}
		
			tree.add(tree_function);
		{/if}
	
		{if $info[p].files}
			var tree_file = new WebFXTreeItem('File(s)', '{$packagedoc|escape:"quotes"}');
	
			{section name=nonclass loop=$info[p].files}
				var file = new WebFXTreeItem('{$info[p].files[nonclass].title|escape:"quotes"}', '{$info[p].files[nonclass].link|escape:"quotes"}');
				tree_file.add(file);
			{/section}
	
			tree.add(tree_file);
		{/if}

	{else}
		{if $info[p].subpackagetutorial}
			var subpackagetree = new WebFXTreeItem('<span class="sub-package">{$info[p].subpackagetutorialtitle|strip_tags}</span>', '{$info[p].subpackagetutorialnoa}');
		{else}
			var subpackagetree = new WebFXTreeItem('<span class="sub-package">{$info[p].subpackage}</span>', '{$packagedoc|escape:"quotes"}');
		{/if}

		{if $info[p].tutorials}
			var tree_tutorial = new WebFXTreeItem('Tutorial(s)/Manual(s)', '');
			tree.add(tree_tutorial);
			
			{if $info[p].tutorials.pkg}
				var tree_inner_tutorial = new WebFXTreeItem('Package-level', '');
				tree_tutorial.add(tree_inner_tutorial);
				
				parent_node = tree_inner_tutorial;
				{section name=ext loop=$info[p].tutorials.pkg}
					{$info[p].tutorials.pkg[ext]}
				{/section}
			{/if}
			
			{if $info[p].tutorials.cls}
				var tree_inner_tutorial = new WebFXTreeItem('Class-level', '');
				tree_tutorial.add(tree_inner_tutorial);
				
				parent_node = tree_inner_tutorial;
				{section name=ext loop=$info[p].tutorials.cls}
					{$info[p].tutorials.cls[ext]}
				{/section}
			{/if}
			
			{if $info[p].tutorials.proc}
				var tree_inner_tutorial = new WebFXTreeItem('Function-level', '');
				tree_tutorial.add(tree_inner_tutorial);
				
				parent_node = tree_inner_tutorial;
				{section name=ext loop=$info[p].tutorials.proc}
					{$info[p].tutorials.proc[ext]}
				{/section}
			{/if}		
		{/if}
	
		{if $info[p].hasinterfaces}
    		{if $info[p].classes}
    			var subpackagetree_classe = new WebFXTreeItem('Interface(s)', '{$packagedoc}');
    			
    			{section name=class loop=$info[p].classes}
    			    {if $info[p].classes[class].is_interface}
        				var classe = new WebFXTreeItem('{$info[p].classes[class].title|escape:"quotes"}', '{$info[p].classes[class].link|escape:"quotes"}');
        				subpackagetree_classe.add(classe);
        			{/if}
    			{/section}

    			subpackagetree.add(subpackagetree_classe);
    		{/if}
		{/if}
		{if $info[p].hasclasses}
    		{if $info[p].classes}
    			var subpackagetree_classe = new WebFXTreeItem('Class(es)', '{$packagedoc|escape:"quotes"}');
    			
    			{section name=class loop=$info[p].classes}
    			    {if $info[p].classes[class].is_class}
        				var classe = new WebFXTreeItem('{$info[p].classes[class].title|escape:"quotes"}', '{$info[p].classes[class].link|escape:"quotes"}');
        				subpackagetree_classe.add(classe);
        			{/if}
    			{/section}
    	
    			subpackagetree.add(subpackagetree_classe);
    		{/if}
		{/if}

		{if $info[p].functions}
			var subpackagetree_function = new WebFXTreeItem('Function(s)', '{$packagedoc|escape:"quotes"}');
			
			{section name=nonclass loop=$info[p].functions}
				var fic = new WebFXTreeItem('{$info[p].functions[nonclass].title|escape:"quotes"}', '{$info[p].functions[nonclass].link|escape:"quotes"}');
				subpackagetree_function.add(fic);
			{/section}
			
			subpackagetree.add(subpackagetree_function);
		{/if}
		
		{if $info[p].files}
			var subpackagetree_file = new WebFXTreeItem('File(s)', '{$packagedoc|escape:"quotes"}');
			
			{section name=nonclass loop=$info[p].files}
				var file = new WebFXTreeItem('{$info[p].files[nonclass].title|escape:"quotes"}', '{$info[p].files[nonclass].link|escape:"quotes"}');
				subpackagetree_file.add(file);
			{/section}
		
			subpackagetree.add(subpackagetree_file);
		{/if}
	
	  tree.add(subpackagetree);
	{/if}
{/section}

document.write(tree);
{rdelim}
</script>
</div>
<p class="notes">
	Generated by 
	<a href="{$phpdocwebsite}" target="_blank">phpDocumentor <span class="field">{$phpdocversion}</span></a>
</p>
</body>
</html>
