//Page Header & Navigation Bar

//Current Page
var page = document.URL
var pos2 = page.lastIndexOf("/");
var pos1 = page.lastIndexOf("/",pos2-1);
page = page.slice(pos1+1,pos2);

function drawHeader()
		{
				var w = window;

				//Page Header
				w.document.writeln('<HTML><HEAD></HEAD>');
				w.document.writeln('<BODY BGCOLOR="#187A3C" LINK="#FF9900" VLINK="#FF9900" ALINK="#770000"');
				w.document.writeln(' background="../../images/style/backdrop.jpg" BGPROPERTIES=fixed>');
				w.document.writeln('<STYLE>A:hover { color:#770000; } </STYLE>');

				//Header Picture & Table
				w.document.writeln('<CENTER><TABLE WIDTH="709"><TR><TD><CENTER>');
				w.document.writeln('<IMG BORDER="0" SRC="../../images/style/header.gif"');
				w.document.writeln(' ALT="Packington Morris Men" WIDTH="492" HEIGHT="82">');
				w.document.writeln('<BR><BR><NOBR>');

				//Navigation Bar
				w.document.writeln('<FONT SIZE="0" COLOR="#FF9900">');
				w.document.write('<IMG BORDER="0" SRC="../../images/navigation/blankEnd.gif" ALIGN="MIDDLE" WIDTH="5" HEIGHT="29">');
				w.document.write('<IMG BORDER="0" SRC="../../images/navigation/bullEnd.gif" ALIGN="MIDDLE" WIDTH="20" HEIGHT="29">');

				w.document.write('<A HREF="../about/">');
				w.document.write('<IMG BORDER="0" SRC="../../images/navigation/about');
				if (page == 'about') w.document.write('1'); else w.document.write('0');
				w.document.write('.gif" ALT="About" ALIGN="MIDDLE" HEIGHT="29" NAME="aboutUs"');
				if (page != 'about') w.document.write(' onmouseover="over(\'aboutUs\');" onmouseout="out(\'aboutUs\');"');
				w.document.write('></A><IMG BORDER="0" SRC="../../images/navigation/sepearator.gif" ');
				w.document.write('ALIGN="MIDDLE" WIDTH="39" HEIGHT="29">');

				w.document.write('<A HREF="../repetoire/">');
				w.document.write('<IMG BORDER="0" SRC="../../images/navigation/repetoire');
				if (page == 'repetoire') w.document.write('1'); else w.document.write('0');
				w.document.write('.gif" ALT="Repetoire" ALIGN="MIDDLE" HEIGHT="29" NAME="repetoire"');
				if (page != 'repetoire') w.document.write(' onmouseover="over(\'repetoire\');" onmouseout="out(\'repetoire\');"');
				w.document.write('></A><IMG BORDER="0" SRC="../../images/navigation/sepearator.gif" ');
				w.document.write('ALIGN="MIDDLE" WIDTH="39" HEIGHT="29">');

				w.document.write('<A HREF="../archive/">');
				w.document.write('<IMG BORDER="0" SRC="../../images/navigation/archive');
				if (page == 'archive') w.document.write('1'); else w.document.write('0');
				w.document.write('.gif" ALT="Archive" ALIGN="MIDDLE" HEIGHT="29" NAME="archive"');
				if (page != 'archive') w.document.write(' onmouseover="over(\'archive\');" onmouseout="out(\'archive\');"');
				w.document.write('></A><IMG BORDER="0" SRC="../../images/navigation/sepearator.gif" ');
				w.document.write('ALIGN="MIDDLE" WIDTH="39" HEIGHT="29">');

				w.document.write('<A HREF="http://www.whosthere.co.uk/packington">');
				w.document.write('<IMG BORDER="0" SRC="../../images/navigation/see');
				if (page == 'see') w.document.write('1'); else w.document.write('0');
				w.document.write('.gif" ALT="See Us" ALIGN="MIDDLE" HEIGHT="29" NAME="see"');
				if (page != 'see') w.document.write(' onmouseover="over(\'see\');" onmouseout="out(\'see\');"');
				w.document.write('></A><IMG BORDER="0" SRC="../../images/navigation/sepearator.gif" ');
				w.document.write('ALIGN="MIDDLE" WIDTH="39" HEIGHT="29">');

				w.document.write('<A HREF="../join/">');
				w.document.write('<IMG BORDER="0" SRC="../../images/navigation/join');
				if (page == 'join') w.document.write('1'); else w.document.write('0');
				w.document.write('.gif" ALT="Join" ALIGN="MIDDLE" HEIGHT="29" NAME="join"');
				if (page != 'join') w.document.write(' onmouseover="over(\'join\');" onmouseout="out(\'join\');"');
				w.document.write('></A><IMG BORDER="0" SRC="../../images/navigation/sepearator.gif" ');
				w.document.write('ALIGN="MIDDLE" WIDTH="39" HEIGHT="29">');

				w.document.write('<A HREF="../book/">');
				w.document.write('<IMG BORDER="0" SRC="../../images/navigation/book');
				if (page == 'book') w.document.write('1'); else w.document.write('0');
				w.document.write('.gif" ALT="Book Us" ALIGN="MIDDLE" HEIGHT="29" NAME="book"');
				if (page != 'book') w.document.write(' onmouseover="over(\'book\');" onmouseout="out(\'book\');"');
				w.document.write('></A><IMG BORDER="0" SRC="../../images/navigation/sepearator.gif" ');
				w.document.write('ALIGN="MIDDLE" WIDTH="39" HEIGHT="29">');

				w.document.write('<A HREF="../contact/">');
				w.document.write('<IMG BORDER="0" SRC="../../images/navigation/contact');
				if (page == 'contact') w.document.write('1'); else w.document.write('0');
				w.document.write('.gif" ALT="Contact" ALIGN="MIDDLE" HEIGHT="29" NAME="contact"');
				if (page != 'contact') w.document.write(' onmouseover="over(\'contact\');" onmouseout="out(\'contact\');"');
				w.document.write('></A><IMG BORDER="0" SRC="../../images/navigation/sepearator.gif" ');
				w.document.write('ALIGN="MIDDLE" WIDTH="39" HEIGHT="29">');

				w.document.write('<A HREF="../links/">');
				w.document.write('<IMG BORDER="0" SRC="../../images/navigation/links');
				if (page == 'links') w.document.write('1'); else w.document.write('0');
				w.document.write('.gif" ALT="Links" ALIGN="MIDDLE" HEIGHT="29" NAME="otherLinks"');
				if (page != 'links') w.document.write(' onmouseover="over(\'otherLinks\');" onmouseout="out(\'otherLinks\');"');
				w.document.write('></A>');

				w.document.write('<IMG BORDER="0" SRC="../../images/navigation/lionEnd.gif" ALIGN="MIDDLE" WIDTH="23" HEIGHT="29 ">');
				w.document.write('<IMG BORDER="0" SRC="../../images/navigation/blankEnd.gif" ALIGN="MIDDLE" WIDTH="5" HEIGHT="29">');
				w.document.writeln('</FONT></CENTER></NOBR><BR>');
				
		}