var section = [
{
	item: 'Corporate Profile',
	href: '',
	subsection: [
		{item: 'About Contango', href: 'profile/about.htm'},
		{item: 'Strategy', href: 'profile/strategy.htm'},
		{item: 'Officers &amp; Directors', href: 'profile/cast.htm'},
		{item: 'Corporate Relationships', href: 'profile/partners.htm'}
	]},
{
	item: 'Corporate Governance',
	href: '',
	subsection: [
		{item: 'Summary', href: 'govern/summary.htm'},
		{item: 'Guidelines', href: 'govern/guide.htm'},
		{item: 'Code of Ethics', href: 'govern/code.htm'},
		{item: 'Audit Committee Charter', href: 'govern/audit.htm'}
	]},
{
	item: 'Business Segments',
	href: '',
	subsection: [
		{item: 'Exploration Alliances', href: 'operation/alliance.htm'},
		{item: 'Offshore', href: 'operation/offshore.htm'}
	]},
{
	item: 'Investor Relations',
	href: '',
	subsection: [
		{item: 'Stock Information', href: 'investor/stock.htm'},
		{item: 'FAQ', href: 'investor/faq.htm'},
		{item: 'Presentations &amp; Webcasts', href: 'investor/events.htm'},
		{item: 'Press Releases', href: 'investor/news.htm'},
		{item: 'Annual Meetings', href: 'investor/meetings.htm'},
		{item: 'Gallery', href: 'investor/gallery/index.html'}
	]},
{
	item: 'SEC Filings',
	href: 'investor/sec.htm',
	subsection: []},
{
	item: 'Contacts',
	href: 'investor/contacts.htm',
	subsection: []}
];

function submenu(menuid)
{
	var section = document.getElementById(menuid);
	(section.style.display == 'none') ? section.style.display = '' : section.style.display = 'none';
}

function header(rootpath)
{
	if (rootpath == undefined)
		rootpath = '';
	with(document)
	{
		body.style.backgroundImage = 'url(' + rootpath + 'img/bg.gif)';
		body.style.backgroundRepeat = 'repeat-y';
		body.style.backgroundColor = '#999';
		write('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
		write('<tr>');
		write('<td class=desktop width="10"><img src="' + rootpath + 'img/pixel.gif" width=10 height=10></td>');
		write('<td class=desktop width="10"><img src="' + rootpath + 'img/pixel.gif" width=10 height=10></td>');
		write('<td class=bannerext width="4"><img src="' + rootpath + 'img/pixel.gif" width=4 height=10></td>');
		write('<td class=menustrip width="119"><img width=1 height=1></td>');
		write('<td class=bannerext width="4"><img src="' + rootpath + 'img/pixel.gif" width=4 height=10></td>');
		write('<td class=desktop width="10"><img src="' + rootpath + 'img/pixel.gif" width=10 height=10></td>');
		write('<td class=desktop width="*" colspan=2><img src="' + rootpath + 'img/pixel.gif" border=0 width=10 height=10></td>');
		write('<td class=desktop width="10"><img src="' + rootpath + 'img/pixel.gif" width=10 height=10></td>');
		write('</tr>');
		write('<tr>');
		write('<td class=desktop><img width=1 height=1></td>');
		write('<td class=content valign=bottom><img src="' + rootpath + 'img/tl.gif" width=10 height=10></td>');
		write('<td class=bannerext><img width=1 height=1></td>');
		write('<td class=menustrip><img width=1 height=1></td>');
		write('<td class=bannerext><img width=1 height=1></td>');
		write('<td class=content valign=bottom><img src="' + rootpath + 'img/tr.gif" width=10 height=10></td>');
		write('<td class=content align=right colspan=2><span id=shortcut>|&nbsp;<a href="' + rootpath + 'index.html">home</a>&nbsp;|&nbsp;<a href="' + rootpath + 'updates.htm">updates</a>&nbsp;|&nbsp;<a href="' + rootpath + 'sitemap.htm">site&nbsp;map</a>&nbsp;</span></td>');
		write('<td class=desktop><img width=1 height=1></td>');
		write('</tr>');
		write('<tr>');
		write('<td class=bannerstrip><img width=1 height=1></td>');
		write('<td class=bannerstrip><img width=1 height=1></td>');
		write('<td class=bannerstrip><img width=1 height=1></td>');
		write('<td class=menustrip><a href="' + rootpath + 'index.html"><img SRC="' + rootpath + 'img/logoanim.gif" border=0 alt="Contango Oil and Gas..." width=119 height=87></td>');
		write('<td class=bannerstrip><img width=1 height=1></td>');
		write('<td class=bannerstrip><img width=1 height=1></td>');
		write('<td class=bannerstrip valign=baseline><img SRC="' + rootpath + 'img/banner1.gif" border=0 alt="Contango Oil and Gas..." width=302 height=87></td>');
		write('<td class=bannerstrip align=right valign=center><img src="' + rootpath + 'img/mcf_is.jpg" width=138 height=81></td>');
		write('<td class=bannerstrip><img width=1 height=1></td>');
		write('</tr>');
		write('<tr>');
		write('<td class=desktop><img width=1 height=1></td>');
		write('<td class=content><img src="' + rootpath + 'img/bl.gif" width=10 height=10></td>');
		write('<td class=bannerext><img width=1 height=1></td>');
		write('<td class=menustrip><img width=1 height=1></td>');
		write('<td class=bannerext><img width=1 height=1></td>');
		write('<td class=content valign=top><img src="' + rootpath + 'img/br.gif" width=10 height=10></td>');
		write('<td class=content colspan=2><img width=1 height=1></td>');
		write('<td class=desktop><img width=1 height=1></td>');
		write('</tr>');
		write('<tr>');
		write('<td class=desktop><img width=1 height=1></td>');
		write('<td class=content><img width=1 height=1></td>');
		write('<td class=bannerext><img width=1 height=1></td>');
		write('<td class=menustrip valign=top>');
		write('<div style="width:111px;margin-left:4px;background-color:#ccc">');
		for(var i = 0; i < section.length; i++)
			with(section[i])
			{
				write('<div class="menusect">');
				if('' != href)
					write('<a href="' + rootpath + href + '">' + item + '</a>');
				else
					write(item);
				write('</div>');
				if(subsection.length > 0)
				{
					write('<div class="menuitem" id="sect' + i + '"><ul>');
					for(var j = 0; j < subsection.length; j++)
						with(subsection[j])
							write('<li><a href="' + rootpath + href + '">' + item + '</a></li>');
					write('</ul></div>');
				}
			}
		write('</div>');
		write('<div class="subscribe" style="width:105px;margin-left:4px;margin-right:4px;background-color:#ccc">');
		write('<form action="http://contango.com/cgi-bin/subscribe.cgi" method="POST" onsubmit="return false;">');
		write('Name:<br><input type="text" name="name" style="width:105px;"><br>');
		write('E-mail:<br><input type="text" name="email" style="width:100px;"><br>');
		write('<input type="submit" value="Subscribe" style="width:100px; cursor: hand; font-size: xx-small; font-weight: bold;" onClick="doSubmit(this.form);">');
		write('</form>');
		write('</div>');
		write('</td>');
		write('<td class=bannerext><img width=1 height=1></td>');
		write('<td class=content><img width=1 height=1></td>');
		write('<td class=content id=contentcell colspan=2 valign=top>');
	}
}

function footer(rootpath)
{
	if (rootpath == undefined)
	  rootpath = '';
	with(document)
	{
		write('</td>');
		write('<td class=desktop><img src="' + rootpath + 'img/pixel.gif" border=0 width=10 height=10></td>');
		write('</tr>');
		write('<tr>');
		write('<td class=desktop><img src="' + rootpath + 'img/pixel.gif" width=10 height=10></td>');
		write('<td class=content><img width=1 height=1></td>');
		write('<td class=bannerext><img width=1 height=1></td>');
		write('<td class=menustrip><img width=1 height=1></td>');
		write('<td class=bannerext><img width=1 height=1></td>');
		write('<td class=content><img width=1 height=1></td>');
		write('<td class=content colspan=2><center><span style="font-family:Verdana,Arial;font-size:xx-small"><br>&copy; 2006-2009 Contango Oil &amp; Gas Company<br><br></span></center></td>');
		write('<td class=desktop><img width=1 height=1></td>');
		write('</td>');
		write('</tr>');
		write('<tr>');
		write('<td class=desktop><img src="' + rootpath + 'img/pixel.gif" width=10 height=10></td>');
		write('<td class=desktop><img width=1 height=1></td>');
		write('<td class=bannerext><img width=1 height=1></td>');
		write('<td class=menustrip><img width=1 height=1></td>');
		write('<td class=bannerext><img width=1 height=1></td>');
		write('<td class=desktop><img width=1 height=1></td>');
		write('<td class=desktop colspan=2><img width=1 height=1></td>');
		write('<td class=desktop><img width=1 height=1></td>');
		write('</td>');
		write('</tr>');
		write('</table>');
	}
}

function doSubmit(f)
{
	if('' != document.all.name.value)
	{
		if('' != document.all.email.value)
		{
			f.submit();
		}
		else
		{
			alert('Enter your e-mail address');
			f.email.focus();
		}
	}
	else
	{
		alert('You should introduce yourself');
		f.name.focus();
	}
}
