diff --git a/xdocs/stylesheets/project.xml b/xdocs/stylesheets/project.xml
index 316611c70..77873f13c 100644
--- a/xdocs/stylesheets/project.xml
+++ b/xdocs/stylesheets/project.xml
@@ -3,47 +3,59 @@
Apache Ant
Apache Ant
-
+
-
+
+
-
+
-
+
-
+
-
+
+
diff --git a/xdocs/stylesheets/site.vsl b/xdocs/stylesheets/site.vsl
index 17cc57301..5127b62d6 100644
--- a/xdocs/stylesheets/site.vsl
+++ b/xdocs/stylesheets/site.vsl
@@ -55,6 +55,7 @@
#set ($lightfg = "#ffffff")
#set ($darkfg = "#000000")
#set ($active = "#ffcc00")
+ #set ($blue4 = "#B2C4E0")
#set ($blue3 = "#294563")
#set ($blue2 = "#4C6C8F")
#set ($blue1 = "#CFDCED")
diff --git a/xdocs/stylesheets/templates.vm b/xdocs/stylesheets/templates.vm
index 52b3baa71..15c034420 100644
--- a/xdocs/stylesheets/templates.vm
+++ b/xdocs/stylesheets/templates.vm
@@ -150,8 +150,71 @@
$escape.getText($value.getText())
#end
-#macro ( makeProject )
- #set ($menus = $project.getChild("body").getChildren("menu"))
+#macro ( makeTabs )
+
+#end
+
+
+#macro ( makeMainNavigation )
+ #set ( $tabs = $project.getChild("body").getChildren("menusection"))
+ #if ( $project.getChild("body").getChild("menusection") )
+ #set ( $currentIndex = $root.getChild("properties").getChild("index").getAttributeValue("value") )
+ #if ( $currentIndex )
+ #foreach ( $tab in $tabs )
+ #set ($index = $tab.getAttributeValue("index"))
+ #if ( $currentIndex.trim().equals( $index ) )
+ #set ($menus = $tab.getChildren("menu"))
+ #end
+ #end
+ #else
+ #set ($menus = $project.getChild("body").getChild("menusection").getChildren("menu"))
+ #end
+ #else
+ #set ($menus = $project.getChild("body").getChildren("menu"))
+ #end
+ #makeProject ( $menus )
+#end
+
+#macro ( makeProject $menus)