/**********************************************************************
Cambridge Menu/Header and Footers
***********************************************************************/ 

//alert ('cammenu')
    

// ******************************************
// * constructor creates a new cammenu object
// ******************************************
function cammenu () {
    this.header = cammenu_header;  
    this.footer = cammenu_footer;  
    this.title = cammenu_title;	
    this.smalltitle = cammenu_smalltitle;
	this.pagetop = cammenu_pagetop;
}

// *******************************************
// * menu_header1: Display the Header/Navigation
// *******************************************
function cammenu_header() {

	document.write( '<TABLE WIDTH="630" BORDER="0" CELLPADDING="0" CELLSPACING="0">');
	document.write( '  <tr>');
	document.write( '    <td>');
	document.write( '      <table cellpadding="0" cellspacing="0" border="0">');
	document.write( '        <tr>');
	document.write( '          <TD width=100><IMG SRC="../cambridge/images/camsitelogo.gif" WIDTH="85" HEIGHT="85" ALT="The Pentacle Club"></TD>');
	document.write( '          <td><IMG SRC="../cambridge/images/camsitetitle90.jpg" WIDTH="498" HEIGHT="85" ALT=""></td>');
	document.write( '        </tr>');
	document.write( '       </table>');
	document.write( '    </td>');
	document.write( '  </tr>');

	document.write( '  <tr>');
	document.write( '    <td>');
	document.write( '      <table width=630 cellpadding="0" cellspacing="2" border="0" >');
	document.write( '        <tr><td><IMG SRC="../images/white.gif" WIDTH="100%" height=5></td></tr>');
	document.write( '        <tr class=header height=5>');
	document.write( '           <td width=50 height=20 bgcolor=white><IMG SRC="../cambridge/images/leftmargin1.jpg" WIDTH="50" height=20></TD>');
	document.write( '			<td align="center" width="100" bgcolor=steelblue><a href="camwelcome.htm">About us</a></td>');
	document.write( '			<td align="center" width="100" bgcolor=steelblue><a href="camevents.htm">Events</a></td>');
	document.write( '			<td align="center" width="100" bgcolor=steelblue><a href="pentacle90.htm">90th Year</a></td>');
	document.write( '			<td align="center" width="100" bgcolor=steelblue><a href="camcommittee.htm">Committee</a></td>');
	document.write( '			<td align="center" width="100" bgcolor=steelblue><a href="camhistory.htm">History</a></td>');
	document.write( '			<td align="center" width="100" bgcolor=steelblue><a href="camcontact.htm">Contact</a></td>');
	document.write( '           <TD height=20 bgcolor=white align=right><IMG SRC="../cambridge/images/rightmargin1.jpg" align="right" border=0 WIDTH="50" height=20></TD>');
	//document.write( '           <TD height=20 bgcolor=white>&nbsp;</TD>');
	document.write( '		</tr>');
	document.write( '		</table>');
	document.write( '	</TD>');
	document.write( ' </tr>');
	
	
	document.write( '</table>');

}

// *********************************************
// * menu_title
// *********************************************
function cammenu_title (theTitleText) {

//alert ('title');
	document.write('<TR><TD><IMG SRC="../images/spacer.gif" HEIGHT="10"></TD></TR>' );
	document.write('<TR align=left><TD><div class="titletext">' + theTitleText + '</div></TD></TR>' );
	document.write('<tr><td><img src="../cambridge/images/bluedot.gif" height=2 width="100%"></td></tr>' );
	document.write('<TR><TD><IMG SRC="../images/spacer.gif" HEIGHT="10"></TD></TR>' );

}
	
// *******************************************
// * menu_header: Display the Header/Navigation
// *******************************************
function cammenu_footer() {

	// ************************* -->
	// * Footer Spacing			 -->
	// ************************* -->
	document.write ('<TABLE WIDTH="630" BORDER="0" CELLPADDING="0" CELLSPACING="0">' );
	document.write ('  <TR>' );
	document.write ('    <TD width="100" height="10"></TD>' );
	document.write ('    <TD><IMG SRC="../images/spacer.gif" HEIGHT="1"></TD>' );
	document.write ('  </TR>' );
	document.write ('  <TR>' );
	document.write ('    <TD width="100" height="1"></TD>' );
	document.write ('    <TD><IMG SRC="../cambridge/images/bluedot.gif" WIDTH="100%" HEIGHT="2"></TD>' );
	document.write ('  </TR>' );
	document.write ('</Table>' );

	// ************************* -->
	// * Footer			 -->
	// ************************* -->
	document.write ('<TABLE WIDTH="630" BORDER="0" CELLPADDING="0" CELLSPACING="0">' );
	document.write ('  <TR>' );
	document.write ('    <TD bgcolor="white" height=30 width=100>' );
	
	// ************************* -->
	// * Easyspace Logo			 -->
	// ************************* -->
	document.write ('<A href="http://www.easyspace.com/cgi-bin/redirect.cgi?type=BNR-100_easyspace_1.gif&amp;url=http://www.easynic.com"' );
	document.write (' target=_blank>' );
	document.write (' <IMG height=30 alt="Easynic - your perfect web partner" ');
	document.write (' src="../images/100_easyspace_1.gif" width=100 border=0></A>');
	// Note this should be a comment, but I dont think that will work as java script
	//document.write ('<!--#easybanner4-->');
	document.write ('</TD>' );

	
	// ************************* -->
	// * Legalities				 -->
	// ************************* -->
    document.write ('<TD>' );
   	document.write ('<div class="footer"><a href="camcontact.htm" target=_self>Contact Us</a> ' );
   	document.write ('| <a href="../abolegal.htm" target=_self>Legal</a><br>' );
   	document.write ('Copyright © 2004 Ipswich Magical Society | Designed by Bananafish' );
	document.write ('</div>' );
	document.write ('</TD>' );
	document.write ('</TR>' );

	document.write ('</TABLE>' );
	

}

// ******************************************
// * Jump to Page Top
// ******************************************
function cammenu_pagetop() {
	document.write( '<TR>' ); 
	document.write( '<TD class="navigation" align=left>' ); 
	document.write ( '<A href="#pagetop">' );
	//document.write ( '<A href="' + thePage + '.htm#pagetop">' );
	document.write ( '<img src="../cambridge/images/camnavtop.gif" border="0" alt="Return to Top of Page">' );
	document.write( '			 <br>Top');
	document.write( '</a>' );
	document.write( '</TD>' ); 
	document.write( '</TR>' ); 

}


// *********************************************
// * menu_smalltitle
// *********************************************
function cammenu_smalltitle (theTitleText) {

	document.write('<TR><TD><IMG SRC="../images/spacer.gif" HEIGHT="10"></TD></TR>' );
	document.write('<TR><TD><div class="smalltitletext">' + theTitleText + '</div></TD></TR>' );
	document.write('<TR><TD><img src="../cambridge/images/bluedot.gif" height=1 width="100%"></td></tr>' );
	document.write('<TR><TD><IMG SRC="../images/spacer.gif" HEIGHT="10"></TD></TR>' );

}



/*

*/

// *****************************************
// * Create an instance of the Cammenu object
// *****************************************
var Cammenu = new cammenu();
