/*Write out the sidebar for my Diplomacy pages. August 6, 2009.*/
function SideBar(NoHRef)
{
  document.write("<H3>Quick Links</H3>");
  document.write('<P><a href="../../index.html">Home Page</a>');
  document.write('<P><a href="../../BadPets/index.html">Bad Pets Lists</a>');
  document.write('<P><a href="../../CatHumor/CatLinks.html">Cat Humour</a>');
  document.write('<P><a href="../../DogHumor/DogLinks.html">Dog Humour</a>');
  document.write('<P><a href="../../MiscPetHumor/MiscLinks.html">Other Pet Humour</a>');
  document.write('<P><a href="../../Humor/index.html">Misc Humour Page</a>');
  document.write('<P><a href="../../Diplomacy/index.html">Diplomacy</a>');
    WriteOut("index.html","A to Z index",(NoHRef == 1));
    WriteOut("Intro.html","Introduction",(NoHRef == 2));
    WriteOut("0-9.html","0-9 Entries",(NoHRef == 3));
    WriteOut("A.html","A Entries",(NoHRef == 4));
    WriteOut("B.html","B Entries",(NoHRef == 5));
    WriteOut("C.html","C Entries",(NoHRef == 6));
    WriteOut("D.html","D Entries",(NoHRef == 7));
    WriteOut("EF.html","E & F Entries",(NoHRef == 8));
    WriteOut("G.html","G Entries",(NoHRef == 9));
    WriteOut("H.html","H Entries",(NoHRef == 10));
    WriteOut("IJ.html","I & J Entries",(NoHRef == 11));
    WriteOut("KL.html","K & L Entries",(NoHRef == 12));
    WriteOut("M.html","M Entries",(NoHRef == 13));
    WriteOut("NO.html","N & O Entries",(NoHRef == 14));
    WriteOut("P.html","P Entries",(NoHRef == 15));
    WriteOut("QR.html","Q & R Entries",(NoHRef == 16));
    WriteOut("S.html","S Entries",(NoHRef == 17));
    WriteOut("TU.html","T & U Entries",(NoHRef == 18));
    WriteOut("VZ.html","V-Z Entries",(NoHRef == 19));
  document.write('<P><a href="../../Documents/index.html">Misc Documents</a>');
}

function WriteOut(FileName,Caption,UseHRef)
/*Write out either the Caption with no HREF or caption and URL.*/
{
  if(UseHRef)
    document.write('<P Class="indent">' + Caption);
  else
    document.write('<P Class="indent"><A href="' + FileName + '">' + Caption + '</A>');
}

/*Write the date nicely. Looted from Microsoft jScript page
  http://msdn2.microsoft.com/en-us/library/4zx5dkc9.aspx*/
var Months = new Array("January","February","March","April","May","June","July","August",
  "September","October","November","December");
var CurDate = new Date(document.lastModified);
var TODAY = Months[CurDate.getMonth()] + " " + CurDate.getDate() + ", " + CurDate.getFullYear();
