function header()
{
document.write("<P>");
document.write("<A HREF=http://www.mortice.org/home.htm target=_top>Home</A> | ");
document.write("<A HREF=http://www.mortice.org/new.htm target=_top>What's New</A> | ");
document.write("<A HREF=http://gallery.mortice.org/cgi-bin/sort.cgi target=mortigallery>Pictures</A> | ");
document.write("<A HREF=http://gallery.mortice.org/cgi-bin/movie_thumb.cgi target=mortigallery>Movies</A> | ");
document.write("<A HREF=http://gallery.mortice.org/cgi-bin/story.cgi target=mortigallery>Stories</A> | ");
document.write("<A HREF=http://gallery.mortice.org/cgi-bin/link.cgi target=mortigallery>Links</A> | ");
document.write("<A HREF=http://wiki.mortice.org target=mortiwiki>Wiki</A> | ");
document.write("<A HREF=http://www.mortice.org/morticam target=_top>MortiCam</A> | ");
document.write("<A HREF=http://www.mortice.org/chastity.htm target=_top>Chastity Belts</A> | ");
document.write("<A HREF=http://www.mortice.org/telly/index.htm target=_top>Telly</A> | ");
document.write("<A HREF=http://www.mortice.org/toys.htm target=_top>Toylist</A> | ");
document.write("<A HREF=http://www.mortice.org/lottery.htm target=_top>Lottery Orders</A> | ");
document.write("<A HREF=http://www.mortice.org/sitemap.htm target=_top>Site Map</A> | ");
document.write("<A HREF=http://www.mortice.org/tftd.htm target=_top>Thought for the Day</A> | ");
document.write("<A HREF=http://www.mortice.org/me.htm target=_top>Who's He</A>");
document.write("<P>");
}

function backhome()
{
document.write("<P><A HREF=http://www.mortice.org/home.htm target=_top>Back to homepage</A>");
}

function backstories()
{
document.write("<P><A HREF=http://www.mortice.org/stories/index.htm target=_top>Back to the stories page</A>");
}

function backpics()
{
document.write("<P><A HREF=http://www.mortice.org/pic_base.htm target=_top>Back to pictures page</A>");
}

function language(code,name)
{
document.write("<A href=http://babel.altavista.com/translate.dyn?lp="+code);
document.write("&doit=done&url="+document.location.href+">"+name+"</A>");
}

function mailto(name)
{
document.write("<P><HR><P>");

document.write("See this page in ");
language("en_fr","French");
document.write(", ");
language("en_de","German");
document.write(", ");
language("en_it","Italian");
document.write(", ");
language("en_pt","Portuguese");
document.write(", ");
language("en_es","Spanish");
document.write(", ");
language("en_ja","Japanese");
document.write(", ");
language("en_ko","Korean");
document.write(" or ");
language("en_zh","Chinese");
document.write(" courtesy of <A href=http://babel.altavista.com>babel.altavista.com<A><P>");

document.write("<I>Mortice Deadlock <A ");
document.write("HREF=mailto:mortice@mortice.org?");
document.write("subject=From_mortice_website_page_\'"+name+"\'>");
document.write("&lt;mortice@mortice.org&gt;</A></I><P>");
}

function footer(name)
{
mailto(name);
}

function counter(id)
{
var now=new Date()
var then=new Date(2001,1,24)

document.write("<P><HR><P>There have been ");
counter_pic(id)
document.write(" visitors since 24th Feb 2001 (");
document.write(Math.floor((now.getTime()-then.getTime())/1000/60/60/24))
document.write(" days ago). ")

document.write("Counter supplied by ");
document.write("<A HREF=\"http://www.TheCounter.com\" TARGET=\"_top\">");
document.write("www.TheCounter.com</A>. ");
}

function counter_pic(id)
{
document.write("<!-- Start of TheCounter.com Code -->");
document.write("<SCRIPT TYPE=\"text/javascript\" LANGUAGE=\"javascript\">");
document.write("s=\"na\";c=\"na\";j=\"na\";f=\"\"+escape(document.referrer)");
document.write("</SCRIPT>");
document.write("<SCRIPT TYPE=\"text/javascript\" LANGUAGE=\"javascript1.2\">");
document.write("s=screen.width;v=navigator.appName;");
document.write("if (v != \"Netscape\") {c=screen.colorDepth}");
document.write("else {c=screen.pixelDepth}");
document.write("j=navigator.javaEnabled();");
document.write("</SCRIPT>");
document.write("<SCRIPT TYPE=\"text/javascript\" LANGUAGE=\"javascript\">");
document.write("function pr(n) {document.write(n,\"\\n\");};");
document.write("NS2Ch=0;");
document.write("if (navigator.appName == \"Netscape\" &&");
document.write("navigator.appVersion.charAt(0) == \"2\") {NS2Ch=1}");
document.write("if (NS2Ch == 0) {");
document.write("r=\"&size=\"+s+\"&colors=\"+c+\"&referer=\"+f+\"&java=\"+j+\"\";pr(\"");
document.write("<A href=http://s3.TheCounter.com/counter/"+id+".vmain target=counter>");
document.write("<IMG BORDER=0 SRC=http://c3.thecounter.com/id="+id+"\"+r+\" ");
document.write("align=absbottom xxheight=15 xxwidth=54></A>\")}");
document.write("</SCRIPT>");
document.write("<!-- End of TheCounter.com Code -->");
}