<% 
    use obfui::cmn;
    my ($args) = @_;
%>
<html>
<head><title><%= $args->{title} %></title>
<link rel=stylesheet type=text/css href=/res/res.css>
<link rel=stylesheet type=text/css href=/res/res-obfui.css>
<script  language="JavaScript">
<!--
if (navigator.appName.indexOf('Netscape')!=-1 || 
    navigator.appName.indexOf('Konqueror')!=-1 )
{
    document.write('<link rel=stylesheet type=text/css href=/res/mozres.css>');
}
function ge_by_id(nm)
{
    return document.getElementById(nm);
}
function setFooterBottom(resetpos)
{
    obj=document.getElementById('footer');
    if (!obj)
	return;
    if (navigator.appName.indexOf('Explorer')!=-1)
	resetpos=0;
    if (resetpos && obj.style['position'] && obj.style.position == 'absolute')
    {
        obj.style.position = 'auto';
        obj.style.top = 0 + 'px';	
    }
    var H;
    {
	var test1 = document.body.scrollHeight;
	var test2 = document.body.offsetHeight
	if (test1 > test2) // all but Explorer Mac
	{
    	    H = document.body.scrollHeight;
	}
	else // Explorer Mac;
    	    //would also work in Explorer 6 Strict, Mozilla and Safari
	{
    	    H = document.body.offsetHeight;
	}
    }
    divoffset = 30;//should be same in CSS too!
    if (obj.offsetTop < H - divoffset){
	pos = H - divoffset;
        obj.style.position = 'absolute';
        obj.style.top = pos + 'px';
    }
}
function openwnd(url,name,opts)
{
    if (!window.open(url,name,opts))
    {
	alert("Action not completed since your browser has blocked window " +
		"popup. Please disable popup blocking for this site.");
    };
}
-->
</script>
</head>
<body marginwidth=0 marginheight=0 topmargin=0 leftmargin=0
onload='setFooterBottom(0);$args->{onloadcode}'
onresize='setFooterBottom(1);'>
<% if (!$args->{'metapage-is-dedicated-window'}) { %>
<table class=topnav> 
<tr><td colspan=1 class=logorow>
<span class=logo>
<span class=pagetitle><%= length($args->{title}) ? "$args->{title} - " : '' %></span>
<span class=stunnix>Stunnix</span>
<span class=prodname><%= $args->{product} %></span>
<span class=resttitle>Project Manager</span> 
</span>
</td>
<td class=windowops align=right><%  $forge->include('wgt-wndopts') %></td>
<!-- <td align=right valign=top> -->
<!-- counted icon was here -->
<!-- </td> -->
<tr ><td align=center id=menucell  colspan=2>
    <table class=navtable>
    <tr>
	<%  $forge->include('block-menu') %><p>
    </tr>
    </table>
</td>
</table>
<% } %>
<div class=body>
<div class=colored-fields>
<% if (!$args->{'metapage-is-dedicated-window'}) { %>
	<%  $forge->include($args->{content},@{$args->{args}}); %>
<% } else { %>
<div class=dedicated-body>
<h2><%= (!$args->{'no-h1-title'} ? $args->{title} : '') %></h2>
	<%  $forge->include($args->{content},@{$args->{args}}); %>
</div>
<% } %>
<p>


</div>
</div>

<div align=center id=footer>
<table class=botnav> 
<tr><td class=page-footer><center>&copy; 2002-2005 Stunnix. All rights reserved.</center></td>
</table
></div></body>
<script language=javascript>
<!--
    setFooterBottom(0);
-->
</script>
</html>
