
dir = "/";

nav = ie?'nav':'moz';

function writeHead(heading,hwidth) {
	document.write('<table border="0" cellspacing="0" cellpadding="0" width="780" align="center">\t<tr>');
	document.write('\t\t<td><img src="'+dir+'images/spacer.gif" width="'+hwidth+'" height="1" border="0"></td>');
	document.write('\t\t<td><img src="'+dir+'images/spacer.gif" width="113" height="1" border="0"></td>');
	document.write('\t\t<td><img src="'+dir+'images/spacer.gif" width="'+(666-hwidth)+'" height="1" border="0"></td>\t</tr>\t<tr>');
	
	document.write('\t\t<td valign="top" height="62"><div style="position:relative; left:0px; top:0px;"><div id="dummy" style="position:absolute; left:0px; top:0px; height:1px; width:1px; visibility:hidden;"><img src="/images/backgrounds/skies/sky_2.gif" width="1" height="1"></div><div id="bg" style="position:absolute; left:0px; top:14px; height:57px; width:57px; background-image:url(\''+dir+'images/backgrounds/skies/sky_2.gif\');"><img src="'+dir+'images/menu/mask.gif" width="57" height="57"></div><div style="position:absolute; left:13px; top:19px; font-size:38px; color:#DD443A;">'+heading+'</div></div></td>');

	document.write('\t\t<td valign="bottom"><table border="0" cellspacing="0" cellpadding="0" width="102" height="62">\t<tr>');
	document.write('\t\t<td bgcolor="#FFCC66"><a class="'+nav+'" href="/home/" onclick="if(!n4)this.blur()">Home</a></td>');
	document.write('\t\t<td width="1" bgcolor="#FFCC66" rowspan="5"><img src="'+dir+'images/spacer.gif"></td>\t</tr>');
	document.write('\t<tr>\t\t<td><a class="'+nav+'" href="/" onclick="if(!n4)this.blur()">About</b></td>\t</tr>');
	document.write('\t\t<td><a class="'+nav+'" href="mailto:richard@richardgoode.com" onclick="if(!n4)this.blur()">Contact</a></td>\t</tr>');
	document.write('\t<tr>\t\t<td><b class="'+nav+'">What\'s New</b></td>\t</tr>');
	document.write('\t<tr>\t\t<td><b class="'+nav+'">Feedback</b></td>\t</tr>');
	document.write('</table>');
	document.write('\t\t</td>');
	document.write('\t\t<td align=middle height=62><a href="http://www.zillions-of-games.com/"><img src="'+dir+'images/ads/zog-468x60-07b.gif" width="426" height="60" border="0"></a></td>\t</tr>\t<tr>');

	document.write('\t\t<td valign="center" align="middle" colspan="3" height="10"><table border="0" cellspacing="0" cellpadding="0" width="780">\t<tr align=middle>');
	document.write('\t\t<td xwidth="10"><img src="'+dir+'images/spacer.gif" width="9" height="24"></td>');
	document.write('\t\t<td background="'+dir+'images/backgrounds/stripe2.gif"><a class="cosm" href="'+dir+'3dchess/" onclick="if(!n4)this.blur()">Play 3D Chess</a></td>');
	document.write('\t\t<td class="bar" background="'+dir+'images/backgrounds/stripe2.gif">|</td>');
	document.write('\t\t<td background="'+dir+'images/backgrounds/stripe2.gif"><a class="cosm" href="'+dir+'3dchess/history.html" onclick="if(!n4)this.blur()">History</a></td>');
	document.write('\t\t<td class="bar" background="'+dir+'images/backgrounds/stripe2.gif">|</td>');
	document.write('\t\t<td background="'+dir+'images/backgrounds/stripe2.gif"><a class="cosm" href="'+dir+'3dchess/board.html" onclick="if(!n4)this.blur()">The Board</a></td>');
	document.write('\t\t<td class="bar" background="'+dir+'images/backgrounds/stripe2.gif">|</td>');
	document.write('\t\t<td background="'+dir+'images/backgrounds/stripe2.gif"><a class="cosm" href="'+dir+'3dchess/pieces.html" onclick="if(!n4)this.blur()">The Pieces</a></td>');
	document.write('\t\t<td class="bar" background="'+dir+'images/backgrounds/stripe2.gif">|</td>');
	document.write('\t\t<td background="'+dir+'images/backgrounds/stripe2.gif"><a class="cosm" href="'+dir+'3dchess/notation.html" onclick="if(!n4)this.blur()">Notation</a></td>');
	document.write('\t\t<td class="bar" background="'+dir+'images/backgrounds/stripe2.gif">|</td>');
	document.write('\t\t<td background="'+dir+'images/backgrounds/stripe2.gif"><a class="cosm" href="'+dir+'3dchess/moves.html" onclick="if(!n4)this.blur()">The Moves</a></td>');
	document.write('\t\t<td class="bar" background="'+dir+'images/backgrounds/stripe2.gif">|</td>');
	document.write('\t\t<td background="'+dir+'images/backgrounds/stripe2.gif"><a class="cosm" href="'+dir+'3dchess/setup.html" onclick="if(!n4)this.blur()">Initial Set-up</a></td>');
	document.write('\t\t<td class="bar" background="'+dir+'images/backgrounds/stripe2.gif">|</td>');
	document.write('\t\t<td background="'+dir+'images/backgrounds/stripe2.gif"><a class="cosm" href="'+dir+'3dchess/buildme.html" onclick="if(!n4)this.blur()">Build Me</a></td>');
	document.write('\t\t<td class="bar" background="'+dir+'images/backgrounds/stripe2.gif">|</td>');
	document.write('\t\t<td background="'+dir+'images/backgrounds/stripe2.gif"><a class="cosm" href="'+dir+'3dchess/downloads.html" onclick="if(!n4)this.blur()">Downloads</a></td>');

	document.write('\t\t<td width=10>&nbsp;</td>\t</tr></table>\t\t</td>\t</tr></table></div>');
}

function writeFoot() {
	document.write('<table border="0" cellspacing="0" cellpadding="0" align="center" class="footer">\t<tr>\t\t<td align="center">');
	document.write('<table border="0" cellspacing="5" cellpadding="0">\t<tr>');
	document.write('\t\t<td><a class="mailto" href="/" onclick="if(!n4)this.blur()">About</a></td>');
	document.write('\t\t<td class="mailto">|</td>');
	document.write('\t\t<td><a class="mailto" href="mailto:richard@richardgoode.com" onclick="if(!n4)this.blur()">Contact</a></td>');
	document.write('\t\t<td class="mailto">|</td>');
	document.write('\t\t<td><span class="mailto">&copy; Copyright 1993-2003</span></td>');
	document.write('\t</tr></table>');
	document.write('\t\t</td>\t</tr></table>');
}
