
<!-- this the is the www.jameshoskin.co.uk universal header
var ie4 = document.all?1:0
var ns4 = document.layers?1:0
var ns6 = document.getElementById&&!document.all?1:0
var browser = ns4?"ns4":(ns6?"ns6":"ie");
var tree=root?"/":"../";
var username = "webmaster";
var hostname = "jameshoskin.co.uk";
var monthsList = ["January","February","March","April","May","June","July","August","September","October","November","December"];
var timeNow = new Date();
var theYear = timeNow.getYear();
if (theYear<1900) {theYear+=1900;}

document.write("<link rel=\"stylesheet\" href=\""+tree+"jmhstyle_"+browser+".css\" type=\"text/css\">");

function hideSection(section, showhide)
{
  if(ns6)
  {
    if(showhide == 'show')
      document.getElementById(section).style.display = 'block';
    if(showhide == 'hide')
      document.getElementById(section).style.display = 'none';
  }
  else
  {
    if(ie4)
    {
      if(showhide == 'show')
        document.all[section].style.display = 'block';
      if(showhide == 'hide')
        document.all[section].style.display = 'none';
    }
    else
    {
      if(ns4)
      {
        if(showhide == 'show')
          document.layers[section].visibility = "show";
        if(showhide == 'hide')
          document.layers[section].visibility = "hide";
      }
    }
  }
}

function lastused(updated)
{
  var day=date=month=year=time="";
  var date2 = "th";

  if(ns4 || ns6)
  {
    tmparray = updated.split(",");
    tmparray2 = tmparray[1].split(" ");
    tmparray3 = tmparray[2].split(" ");

    day = tmparray[0];
    date = eval(tmparray2[2]);
    month = tmparray2[1];
    year = tmparray3[1];
    time = tmparray3[2];
  }
  else if (1e4)
  {
    tmparray = updated.split("/");
    tmparray2 = tmparray[2].split(" ");

    date = eval(tmparray[1]);
    month = monthsList[tmparray[0]-1];
    year = tmparray2[0];
    time = tmparray2[1];
  }

  switch(date)
  {
    case 1 : case 21 : case 31 : date2 = "st"; break;
    case 2 : case 22 : date2 = "nd"; break;
    case 3 : case 23 : date2 = "rd"; break;
  }

  if(ns4 || ns6 || ie4)
    tmp = "<p>Last updated on "+day+" the "+date+date2+" of "+month+" "+year+" at "+time+"</p>\n";
  else
    tmp = "<p>Last updated: "+updated+"</p>\n";

  return tmp;
}

function disclaimer()
{
  if (!confirm("By clicking OK you accept that\nI take no responsibility if you\nare offended by reading this."))
    {history.go(-1);}
  return;
}

function showindex(ignore)
{
  tmp = "<p class=\"navindex\"><font size=\"4pt\">I</font><font size=\"5pt\">N</font><font size=\"6pt\">D</font><font size=\"5pt\">E</font><font size=\"4pt\">X</font></p><p class=\"navcurrent\">";
  if (ignore == "About Me")
    tmp += "»About Me«<br><br>";
  else
    tmp += "<a href=\""+tree+"index.html\" class=\"nav\" onmouseout=\"window.status=''\" onmouseover=\"window.status='Read all about me'; return true\">About Me</a><br><br>";
  if (ignore == "Drinking Games")
    tmp += "»Drinking Games«<br><br>";
  else
    tmp += "<a href=\""+tree+"drinking/index.html\" class=\"nav\" onmouseout=\"window.status=''\" onmouseover=\"window.status='View my Drinking games'; return true\">Drinking Games</a><br><br>";
  if (ignore == "Office Emails")
    tmp += "»Office Emails«<br><br>";
  else
    tmp += "<a href=\""+tree+"office/index.html\" class=\"nav\" onmouseout=\"window.status=''\" onmouseover=\"window.status='Read my favourite office Emails'; return true\">Office Emails</a><br><br>";
  if (ignore == "Fun Stuff")
    tmp += "»Fun Stuff«<br><br>";
  else
    tmp += "<a href=\""+tree+"fun/index.html\" class=\"nav\" onmouseout=\"window.status=''\" onmouseover=\"window.status='View some fun stuff'; return true\">Fun Stuff</a><br><br>";
  if (ignore == "Games")
    tmp += "»Games«<br><br>";
  else
    tmp += "<a href=\""+tree+"games/index.html\" class=\"nav\" onmouseout=\"window.status=''\" onmouseover=\"window.status='Play some games'; return true\">Games</a><br><br>";
  if (ignore == "Lists")
    tmp += "»Lists«<br><br>";
  else
    tmp += "<a href=\""+tree+"lists/index.html\" class=\"nav\" onmouseout=\"window.status=''\" onmouseover=\"window.status='View some Lists'; return true\">Lists</a><br><br>";
  if (ignore == "Jokes")
    tmp += "»Jokes«<br><br>";
  else
    tmp += "<a href=\""+tree+"jokes/index.html\" class=\"nav\" onmouseout=\"window.status=''\" onmouseover=\"window.status='View some Jokes'; return true\">Jokes</a><br><br>";
  if (ignore == "Links")
    tmp += "»Links«<br><br>";
  else
    tmp += "<a href=\""+tree+"links.html\" class=\"nav\" onmouseout=\"window.status=''\" onmouseover=\"window.status='Links to other sites'; return true\">Links</a><br><br>";
  if (ignore == "Gaming")
    tmp += "»River Bar«<br>»Gaming«<br><br>";
  else
    tmp += "<a href=\""+tree+"gaming/index.html\" class=\"nav\" onmouseout=\"window.status=''\" onmouseover=\"window.status='River Bar Gaming'; return true\">River Bar<br>Gaming</a><br><br>";
  if (ignore == "What's New")
    tmp += "»What's New«</p>";
  else
    tmp += "<a href=\""+tree+"new.html\" class=\"nav\" onmouseout=\"window.status=''\" onmouseover=\"window.status='See whats new'; return true\">What's New</a></p>";
  if (ignore == "About Me")
    tmp += "<p><font face=\"verdana\" size=\"1\" color=\"white\"><img src=\"scripts/counter.php?name=homepage\"><br><b>Hits since 15th<br>August 1999</b></font></p>";
  tmp += "<p class=\"spacer\">&nbsp;<!-- spacer -->&nbsp;</p>";

  return tmp;
}

var copyright = "<p>Version 3.5<br><br>&copy;1998 - "+theYear+"<br>James Hoskin</p>\n";
var mailme = "<a href=\"mailto:"+username+"&#64;"+hostname+"\" onmouseover=\"window.status='Mail the webmaster'; return true\" class=\"mailme\" onmouseout=\"window.status=''\"><b>e-mail me</b></a>\n";

window.defaultStatus = " w w w . J a m e s H o s k i n . c o . u k";

// End -->
