var print = 1;

//alert(location.href);
urlquery = location.href.split("?");
if (urlquery[1]) {
	urlitems = urlquery[1].split("=");
//alert(urlitems[0]);
	if (urlitems[0] = "print") {
//alert("do not print header");
		print = 0;
	}
}

if (print == 1) {
	document.writeln('<table border="0" cellpadding="0" cellspacing="0" width="100%">');
	document.writeln('	<tr><td><img src="images/LLEGS_Logo.gif" alt="" width="370" height="53" border="0"></td></tr>');
	document.writeln('</table>');
	document.writeln('<br>');
	document.writeln('<table style="border : 1px solid Silver;" width="100%" cellpadding="0" cellspacing="0">');
	document.writeln('	<tr>');
	document.writeln('		<td valign="top">');
	document.writeln('		');
	document.writeln('			<table border="0" cellpadding="5" cellspacing="0">');
	document.writeln('			  <tr>');
	document.writeln('');				
			if ( page == 1 ) 
				document.writeln('<td class="Menu">HOME</td>');
			else
				document.writeln('<td><a class="Menu" href="index.html" title="Return to main page.">HOME</a></td>');

			document.writeln('<td>|</td>')

			if ( page == 2 ) 
				document.writeln('<td class="Menu">PAIRINGS</td>');
			else
				document.writeln('<td><a class="Menu" href="pairings.html" title="Pairings for this week">PAIRINGS</a></td>');

			document.writeln('<td>|</td>')

			if ( page == 3 ) 
				document.writeln('<td class="Menu">RESULTS</td>');
			else
				document.writeln('<td><a class="Menu" href="results.html" title="View results from prior weeks">RESULTS</a></td>');

			document.writeln('<td>|</td>')

			if ( page == 4 ) 
				document.writeln('<td class="Menu">EVENTS</td>');
			else
				document.writeln('<td><a class="Menu" href="events.html" title="Schedule of Events">EVENTS</a></td>');

			document.writeln('<td>|</td>')

			if ( page == 5 ) 
				document.writeln('<td class="Menu">CONTACT</td>');
			else
				document.writeln('<td><a class="Menu" href="contact.html" title="Organization Contact and Membership Information">CONTACT</a></td>');
			
	document.writeln('			  </tr>');
	document.writeln('			</table>');
	document.writeln('');
	document.writeln('		</td>');
	document.writeln('	</tr>');
	document.writeln('</table>');
			if ( page == 2 ) 
				document.writeln('<DIV class="footer"><A HREF="pairings.html?print">Printable Version</A></DIV>');
}
