/* author: Unregistered user */
/* Generated by AceHTML Freeware http://freeware.acehtml.com */
/* Creation date: 12/17/2001 */
/* codea.js */

var titles = new Array(6);
titles[0] = "Information";
titles[1] = "Download";
titles[2] = "Getting Involved";
titles[3] = "Acknowledgements";
titles[4] = "Tutorial";
titles[5] = "Documentation";

var tabwidths = new Array(6);
tabwidths[0] = 90;
tabwidths[1] = 70;
tabwidths[2] = 120;
tabwidths[3] = 140;
tabwidths[4] = 60;
tabwidths[5] = 110;

var urls = new Array(6);
urls[0] = "info.html";
urls[1] = "download.html";
urls[2] = "helping.html";
urls[3] = "acknowledgements.html";
urls[4] = "tutorial.html";
urls[5] = "documentation.html";

var targets = new Array(6);
targets[0] = "main";
targets[1] = "main";
targets[2] = "main";
targets[3] = "main";
targets[4] = "main";
targets[5] = "_new_document_window";

function generateBgTab( title, width, url, target )
{
	document.writeln( '<table border="0" cellpadding="0" cellspacing="0">' );
	document.writeln( '<tr valign="bottom"><td><img src="images/lt_to_med_tl.jpg" border="0" width="5" height="5"></td><td width="*"><img src="images/lt_to_med_vert.jpg" border="0" width="' + width + '" height="5"></td><td><img src="images/lt_to_med_tr.jpg" border="0" width="5" height="5"></td></tr>' );
	document.writeln( '<tr><td><img src="images/lt_to_med_horiz.jpg" width="5" height="18"></td><td align="center" width="*" bgcolor="#bcb089"><a href="' + url + '" target="' + target + '"><font color="#000044">' + title + '</font></a></td><td><img src="images/med_to_dk_horiz.jpg" width="5" height="18"></td></tr>' );
	document.writeln( '<tr height="5"><td><img src="images/lt_to_med_horiz.jpg" width="5" height="5"></td><td bgcolor="#bcb089"></td><td><img src="images/med_to_dk_horiz.jpg" width="5" height="5"></td></tr>' );
	document.writeln( '</table>' );
}

function generateFgTab( title, width )
{
	document.writeln( '<table border="0" cellpadding="0" cellspacing="0">' );
	document.writeln( '<tr valign="bottom"><td><img src="images/wt_to_lt_tl.jpg" border="0" width="5" height="5"></td><td width="*"><img src="images/wt_to_lt_vert.jpg" border="0" width="' + width + '" height="5"></td><td><img src="images/wt_to_lt_tr.jpg" border="0" width="5" height="5"></td></tr>' );
	document.writeln( '<tr><td><img src="images/wt_to_lt_horiz.jpg" width="5" height="18"></td><td align="center" width="*" bgcolor="#e3dbbd"><font color="#000044">' + title + '</font></td><td><img src="images/lt_to_dk_horiz.jpg" width="5" height="18"></td></tr>' );
	document.writeln( '<tr height="5"><td><img src="images/wt_to_lt_horiz.jpg" width="5" height="5"></td><td bgcolor="#e3dbbd"></td><td><img src="images/lt_to_dk_horiz.jpg" width="5" height="5"></td></tr>' );
	document.writeln( '</table>' );
}

function generateTabs( page_title )
{
	var super_width=0;
	document.writeln( '<td width="10">&nbsp;</td>' );
	for ( i=0; i<6; ++i )
	{
		super_width = tabwidths[i] + 12;
		document.writeln( '<td align="center" width="' + super_width + '">' );
		if ( page_title.match( '^' + titles[i] + '$' ) )
		{
			generateFgTab( titles[i], tabwidths[i] );
		}
		else
		{
			generateBgTab( titles[i], tabwidths[i], urls[i], targets[i] );
		}
		document.writeln( '</td>' );
	}
	document.writeln( '<td width="*"></td>' );
}

function generateTitle()
{
	document.writeln( '<td width="15">&nbsp;</td><td colspan="6"><i><font size="6">Codea</font>&nbsp;&nbsp;&nbsp;&nbsp;<strong><font size="3">The C++ Object-Oriented Development Environment for Apache</font></strong></i></td><td align="right"><font size="1">Hosted by:</font><br><A href="http://sourceforge.net" target="_top" alt="SourceForge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=38609" width="88" height="31" border="0" alt="SourceForge Logo"></A></td><td width="15">&nbsp;</td>' );
}

function generateHeader( page_title )
{
	document.writeln( '<table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#000044"><tr height="15"><td colspan="9" width="*">&nbsp;</td></tr><tr>' );
	generateTitle();
	document.writeln( '</tr><tr>' );
	generateTabs( page_title );
	document.writeln( '</tr><tr height="10"><td colspan="9" bgcolor="#e3dbbd">&nbsp;</td></tr><tr height="10"><td colspan="9" bgcolor="#ffffff">&nbsp;</td></tr></table>' );
}
