var header = '' +
'<!-- HEADER BEGIN -->' +
'<DIV ID="header">' +
'<TABLE WIDTH="650" HEIGHT="100" background="top.jpg" CELLSPACING="0" CELLPADDING="0" BORDER="0">' +
'<TR>' +
'<TD>' +
'</TD>' +
'</TR>' +
'</TABLE>' +
'</DIV>' +
'<!-- HEADER END -->'

var nav = '' +
'<!-- NAVIGATION & REVISED DATE BEGIN -->' +
'<DIV ID="nav">' +
'<TABLE WIDTH="650" HEIGHT="20" CELLSPACING="0" CELLPADDING="0" BORDER="0" BGCOLOR="#FFFFFF">' +
'<TR VALIGN="middle">' +
'<TD>' +
'<FONT SIZE="1" FACE="verdana,arial" COLOR="#9999FF"><B>' +
'&nbsp; &nbsp; .../ ' +
'<A HREF="index.html" target="_top">i n d e x</A>' +
' / ' +
'<A HREF="me.html" target="_top">m e</A>' +
' / ' +
'<A HREF="pix.html" target="_top">p i x</A>' +
' / ' +
'<A HREF="interests.html" target="_top">i n t e r e s t s</A>' +
' / ' +
'<A HREF="logs.html" target="_top">l o g s</A>' +
' /...' +
'</B></FONT>' +
'</TD>' +
'<TD ALIGN="right">' +
'<FONT SIZE="1" FACE="verdana,arial" COLOR="#9999FF"><B>' +
'&nbsp; &nbsp; .../ revised: 2005.01.31 01.24.00 EST /... &nbsp; &nbsp;' +
'</B></FONT>' +
'</TD>' +
'</TR>' +
'</TABLE>' +
'</DIV>' +
'<!-- NAVIGATION & REVISED DATE END -->'

var divider = '' +
'<TABLE WIDTH="650" HEIGHT="1" CELLSPACING="0" CELLPADDING="0" BORDER="0" BGCOLOR="#9999FF"><TR><TD> </TD></TR></TABLE>'

var footer1 = '' +
'<!-- FOOTER BEGIN -->' +
'<TABLE WIDTH="650" HEIGHT="20" CELLSPACING="0" CELLPADDING="0" BORDER="0" BGCOLOR="#FFFFFF">' +
'<TR VALIGN="middle">' +
'<TD ALIGN="left">'

var counter = '' +
'<!-- Begin Nedstat Basic code -->' +
'<!-- Title: munkit.com -->' +
'<!-- URL: http://www.munkit.com/index.html -->' +
'&nbsp; ' +
'<a target="_blank" ' +
'href="http://v1.nedstatbasic.net/stats?ACA4hApjZtS+FZUzI3WYdeUV9VmQ"><img ' +
'src="http://m1.nedstatbasic.net/n?id=ACA4hApjZtS+FZUzI3WYdeUV9VmQ" ' +
'border="0" nosave width="18" height="18"></a>' +
'<!-- End Nedstat Basic code -->'

var footer2 = '' +
'</TD>' +
'<TD ALIGN="RIGHT">' +
'<FONT FACE="verdana,arial" SIZE="1" COLOR="#9999FF"><B>.../ &copy; Michael Wong 1998-2005 /... &nbsp; &nbsp;</B></FONT>' +
'</TD>' +
'</TR>' +
'</TABLE>' +
'<!-- FOOTER END -->'

function writeHeader() {
  document.write(header);
}

function writeHeaderRemote() {
  newheader = header.replace(/background="/gi, 'background="http://www.munkit.com/');
  document.write(newheader);
}

function writeNav() {
  document.write(nav);
}

function writeNavRemote() {
  newnav = nav.replace(/href="/gi, 'HREF="http://www.munkit.com/');
  document.write(newnav);
}

function writeDivider() {
  document.write(divider);
}

function writeFooter(hasCounter) {
  if (hasCounter) {
    document.write(footer1+counter+footer2);
  } else {
    document.write(footer1+' '+footer2);
  }
}