Index: D:/eclipse/apache-workspace/xdoc/src/plugin-resources/css/maven-theme.css
===================================================================
--- D:/eclipse/apache-workspace/xdoc/src/plugin-resources/css/maven-theme.css	(revision 266304)
+++ D:/eclipse/apache-workspace/xdoc/src/plugin-resources/css/maven-theme.css	(working copy)
@@ -99,3 +99,44 @@
   font-weight: normal;
   font-size: large;
 }
+
+#myTabs {
+	width:50px;
+	overflow:visible;	
+}
+
+a.selectedTabLink, a.selectedTabLink:link, a.selectedTabLink:visited, a.selectedTabLink:active, a.selectedTabLink:hover {
+	color: white;
+	font-weight:bold;
+}
+
+a.selectedTabLink, a.selectedTabLink:link, a.selectedTabLink:visited, a.selectedTabLink:active, a.selectedTabLink:hover {
+}
+
+.selectedTab {
+ background-color: #aaa;
+ border: 0px;
+ height: 1.8em;
+}
+
+.notselectedTab {
+ background-color: #ccc;
+ border: 0px;
+ height: 1.6em;
+}
+
+.selectedMainTab {
+ background-color: #aaa;
+ border-bottom: 0px;
+ height: 1.8em;
+}
+
+.notselectedMainTab {
+ background-color: #ccc;
+ border: 0px;
+ height: 1.6em;
+}
+
+
+
+
Index: D:/eclipse/apache-workspace/xdoc/src/plugin-resources/site.jsl
===================================================================
--- D:/eclipse/apache-workspace/xdoc/src/plugin-resources/site.jsl	(revision 266304)
+++ D:/eclipse/apache-workspace/xdoc/src/plugin-resources/site.jsl	(working copy)
@@ -226,6 +226,92 @@
           <div class="clear"><hr /></div>
         </div>
 
+<!-- TABS if mpmultiprojects != null 
+	This var should only be set if we are coming from the multiproject plugin 
+	and have selected tabs navigation
+	-->
+<j:if test="${mpmultiprojects != null}">
+<div id="myTabs">
+	<table summary="tab bar" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td width="6"><img alt="" height="8" width="6" src="${mpmultiprojectProjectRel}/images/spacer.gif"/></td>	
+		<!-- Top level project TAB. Calculate relative links here -->
+		<td width="6"><img alt="" height="8" width="6" src="${mpmultiprojectProjectRel}/images/spacer.gif"/></td>
+		<td valign="bottom" align="center">
+		<j:if test="${mpaggregateDir != ''}">
+			<!-- we are building pages for a subproject 
+				calculate relative links and put them together 
+				we use pom.artifactId at the end of mpmultiprojectRootRel
+				just because we need another token -->
+			<maven:rootRelativePath rootdir="${mpdocsDest}" path="${mpdocsDest}/${mpaggregateDir}/${pom.artifactId}" var="mpmultiprojectRootRel"/>
+			<maven:rootRelativePath rootdir="${maven.docs.dest}" path="${outDir}" var="mpmultiprojectProjectRel"/>
+			<table class="notselectedMainTab" summary="non selected tab" border="0" cellpadding="0" cellspacing="0" align="center">
+				<tr>
+					<td valign="top" width="5"><img height="5" width="5" alt="" src="${mpmultiprojectProjectRel}/images/spacer.gif"/></td>
+					<td align="center" valign="middle" nowrap="true"><a class="notselectedTabLink" href="${mpmultiprojectRootRel}/${mpmultiprojectProjectRel}/index.html">${mpprojectName}</a></td>
+					<td valign="top" width="5"><img height="5" width="5" alt="" src="${mpmultiprojectProjectRel}/images/spacer.gif"/></td>
+				</tr>
+			</table>
+		</j:if>
+		
+		<j:if test="${mpaggregateDir == ''}">
+			<!-- we are building pages for the top level project 
+				calculate relative links -->
+				<maven:rootRelativePath rootdir="${maven.docs.dest}" path="${outDir}" var="mpmultiprojectProjectRel"/>
+			<table class="selectedMainTab" summary="selected tab" border="0" cellpadding="0" cellspacing="0" align="center">
+				<tr>
+					<td valign="top" width="5"><img height="5" width="5" alt="" src="${mpmultiprojectProjectRel}/images/spacer.gif"/></td>
+					<td align="center" valign="middle" nowrap="true"><a class="selectedTabLink" href="${mpmultiprojectProjectRel}/index.html">${mpprojectName}</a></td>
+					<td valign="top" width="5"><img height="5" width="5" alt="" src="${mpmultiprojectProjectRel}/images/spacer.gif"/></td>
+				</tr>
+			</table>
+		</j:if>
+		</td>
+		<td width="6"><img alt="" height="8" width="6" src="${mpmultiprojectProjectRel}/images/spacer.gif"/></td>	
+		<!-- END Top level project TAB -->
+		
+	<j:forEach items="${mpmultiprojects}" var="mpreactorProject">		
+		<j:if test="${mpaggregateDir != ''}">
+			<!-- we are building pages for a subproject -->
+			<j:set var="mprelAggregateDir" value="${mpmultiprojectRootRel}/${mpmultiprojectProjectRel}/${mpaggregateDir}${mpreactorProject.artifactId}/index.html"/>
+		</j:if>
+		
+		<j:if test="${mpaggregateDir == ''}">
+			<!-- we are building pages for the top level project -->
+			<j:set var="mprelAggregateDir" value="${mpmultiprojectProjectRel}/${maven.multiproject.aggregateDir}${mpreactorProject.artifactId}/index.html"/>
+		</j:if>
+		
+		<td width="6"><img alt="" height="8" width="6" src="${mpmultiprojectProjectRel}/images/spacer.gif"/></td>
+		<td valign="bottom" align="center">
+			<j:if test="${mpreactorProject.artifactId == pom.artifactId}">		        
+			<table class="selectedTab" summary="selected tab" border="0" cellpadding="0" cellspacing="0" align="center">
+				<tr>
+					<td valign="top" width="5"><img height="5" width="5" alt="" src="${mpmultiprojectProjectRel}/images/spacer.gif"/></td>
+					<td align="center" valign="middle" nowrap="true"><a class="selectedTabLink" href="${mprelAggregateDir}">${mpreactorProject.name}</a></td>
+					<td valign="top" width="5"><img height="5" width="5" alt="" src="${mpmultiprojectProjectRel}/images/spacer.gif"/></td>
+				</tr>
+			</table>
+			</j:if>
+			<j:if test="${mpreactorProject.artifactId != pom.artifactId}">		        
+			<table class="notselectedTab" summary="non selected tab" border="0" cellpadding="0" cellspacing="0" align="center">
+				<tr>
+					<td valign="top" width="5"><img height="5" width="5" alt="" src="${mpmultiprojectProjectRel}/images/spacer.gif"/></td>
+					<td align="center" valign="middle" nowrap="true"><a class="notselectedTabLink" href="${mprelAggregateDir}">${mpreactorProject.name}</a></td>
+					<td valign="top" width="5"><img height="5" width="5" alt="" src="${mpmultiprojectProjectRel}/images/spacer.gif"/></td>
+				</tr>
+			</table>
+			</j:if>
+		</td>
+		<td width="6"><img alt="" height="8" width="6" src="${mpmultiprojectProjectRel}/images/spacer.gif"/></td>
+	</j:forEach>
+	</tr>
+	</table>
+</div>
+</j:if>
+<!-- END TABS -->
+
+
+
         <div id="breadcrumbs">
           <maven:property var="version" name="maven.xdoc.version" defaultValue="${pom.currentVersion}"/>
                 

