//header.js

function init() {
	var width = 150;
	var height = 58; //vertical height of menu items
	var root = new List(true, width, height);

function redo(){	
  document.location.reload();
}

//INFO
	root.addItem(getLinkString("index.html","<img src='graphics/info.gif' border=0>"));
//JOIN
	root.addItem(getLinkString("join.html","<img src='graphics/join.gif' border=0>"));
//FURRY5K
	root.addItem(getLinkString("http://www.furry5k.com","<img src='graphics/furry5k.gif' border=0>"));
//PHOTOS
	root.addItem(getLinkString("photos.html","<img src='graphics/photos.gif' border=0>"));
//TIGERMTN
	root.addItem(getLinkString("tigermtn.html","<img src='graphics/tigermtn.gif' border=0>"));
//RACETEAM
	root.addItem(getLinkString("raceteam.html","<img src='graphics/raceteam.gif' border=0>"));
//LINKS
	root.addItem(getLinkString("links.html","<img src='graphics/links.gif' border=0>"));

	root.build(10,150); //position (x,y) of table
}

function selected(name){
	return location.href.indexOf(name) > 0;
}

//returns a formatted string for links in menus

function getLinkString(refName,text){
	value = new String("<font size=-2><b><A href='"+refName+"'>"+text+"</a></b></font>");
	return value;
}

function getLinkString_none (refName,text){
	value = new String(text);
	return value;
}

bgC="#2F378C";
sbC="yellow";

with(document){
	write('<head>');
	write('<title>Get Fit with Fido</title>\n');
	write('</head>');
	write('<link href="fido_stylesheet.css" type="text/css" rel="stylesheet">');
	write('<body bgcolor='+bgC+' text="black" ONLOAD="init()" onresize="redo()"');
	write('topmargin="0" leftmargin="10" marginheight="0" marginwidth="10">');
 
//start main table for the page:
	write('<table width="100%" height="100%" vspace=0 hspace=0 BORDER=0 CELLSPACING=0 CELLPADDING=0>');
//logo:
	write('<tr><td nowrap width = 150 height = 140 rowspan = 3>');
	write('<a href="http://www.getfitwithfido.org"><img src="graphics/GFWF_logo.gif" border=0 height=140 width=150></a></td>');
//blank space above banner:
	write('<td nowrap align=left colspan=2 bgcolor='+bgC+'><img src="graphics/null.gif" width = 820 height = 10 border=0></td></tr>');
//banner graphic:
	write('<tr><td nowrap bgcolor="white" colspan=2 height=100><img src="graphics/banner.jpg" width = 820 height = 100 border=0></td></tr>');
//blank space above banner:
	write('<tr><td nowrap align=left colspan=2 height=1 bgcolor='+bgC+'><img src="graphics/null.gif" width = 820 height = 30 border=0></td></tr>');
//yellow sidebar:
	write('<tr><td nowrap bgcolor='+sbC+' rowspan=3><img src="graphics/null.gif" width = 150 height=2000 border=0></td>');
//vert. gap:
	write('<td nowrap bgcolor='+bgC+' width="1%" rowspan=3>&nbsp;</td>');
//main page:
	write('<td nowrap bgcolor='+bgC+' valign=top>');
}
