The section you refer to (the one highlighted in red in your screenshot) is what we call the "breadcrumb navigation". To add static content to it, edit themes/yourtheme/theme.php, find // HTML template for the breadcrumb
$template_breadcrumb = <<<EOT
and edit as suggested below. If you don't have this section in themes/yourtheme/theme.php, copy// HTML template for the breadcrumb
$template_breadcrumb = <<<EOT
<!-- BEGIN breadcrumb -->
<tr>
<td colspan="3" align="left" class="tableh1"><span class="statlink"><b>{BREADCRUMB}</b></span></td>
</tr>
<!-- END breadcrumb -->
<!-- BEGIN breadcrumb_user_gal -->
<tr>
<td colspan="3" class="tableh1">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left"><span class="statlink"><b>{BREADCRUMB}</b></span></td>
<td align="right"><span class="statlink">{STATISTICS}</span></td>
</tr>
</table>
</td>
</tr>
<!-- END breadcrumb_user_gal -->
EOT;
from themes/sample/theme.php into a new line before?>
of the file themes/yourtheme/theme.php and then apply the edit below:
To edit the section I refered to above and add some HTML, replace the section mentioned above with// HTML template for the breadcrumb
$template_breadcrumb = <<<EOT
<!-- BEGIN breadcrumb -->
<tr>
<td colspan="3" align="left" class="tableh1"><span class="statlink"><b>{BREADCRUMB}</b></span></td>
</tr>
<tr>
<td colspan="3" align="left" class="tableb">
Your custom HTML goes here
</td>
</tr>
<!-- END breadcrumb -->
<!-- BEGIN breadcrumb_user_gal -->
<tr>
<td colspan="3" class="tableh1">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left"><span class="statlink"><b>{BREADCRUMB}</b></span></td>
<td align="right"><span class="statlink">{STATISTICS}</span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="3" align="left" class="tableb">
Your custom HTML goes here
</td>
</tr>
<!-- END breadcrumb_user_gal -->
EOT;
and edit as you see fit.
Joachim
P.S. I guess you want to add some JavaScript, not Java. Those are two entirely different animals.
P.P.S You're running cpg1.4.10, while the most recent stable release currently is cpg1.4.12. It's mandatory to upgrade for security reasons.