/**********************************************************************
Magical Mayhem Menu/Header and Footers
***********************************************************************/ 

//alert ('mmmenu')
    

// ******************************************
// * constructor creates a new cammenu object
// ******************************************
function mmmenu () {
    this.header = mmmenu_header;  
    this.footer = mmmenu_footer;  
    this.title = mmmenu_title;	
    this.smalltitle = mmmenu_smalltitle;
	this.pagetop = mmmenu_pagetop;
}

// *******************************************
// * menu_header1: Display the Header/Navigation
// *******************************************
function mmmenu_header() {

	document.write( '<TABLE WIDTH="630" BORDER="0" CELLPADDING="0" CELLSPACING="0">');
	document.write( '  <tr>');
	document.write( '    <td align="center">');
	document.write( '      <table cellpadding="0" cellspacing="0" border="0">');
	document.write( '        <tr>');
	document.write( '          <td width = 50>&nbsp;</td>');
	document.write( '          <TD align="center"><IMG SRC="../magicalmayhem/images/magicalmayhem.gif" ALT="Magical Mayhem"></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=100 height=20 bgcolor=chocolate><IMG SRC="../magicalmayhem/images/leftmargin.gif" WIDTH="100" height=20></TD>');
	document.write( '			<td align="center" width="150" bgcolor=chocolate><a href="mmwelcome.htm">About us</a></td>');
	document.write( '			<td align="center" width="150" bgcolor=chocolate><a href="mmmembers.htm">Members</a></td>');
	document.write( '			<td align="center" width="150" bgcolor=chocolate><a href="mmlinks.htm">Links</a></td>');
	document.write( '			<td align="center" width="150" bgcolor=chocolate><a href="mmcontact.htm">Contact Us</a></td>');
	document.write( '           <TD height=20 bgcolor=white align=right><IMG SRC="../magicalmayhem/images/rightmargin.gif" align="right" border=0 WIDTH="100" 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 mmmenu_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="../magicalmayhem/images/orangedot.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 mmmenu_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="../magicalmayhem/images/orangedot.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="mmcontact.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 mmmenu_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="../magicalmayhem/images/mmnavtop.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 mmmenu_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="../magicalmayhem/images/orangedot.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 MMmenu = new mmmenu();
