// JavaScript footer for main robinstewart.com pages.

function printVirtualFooter(footerExtras)
{
document.write("<!-- start footer -->");
document.write("<FONT COLOR=\"#87749F\" SIZE=\"-2\" FACE=\"Verdana, Arial, Helvetica, sans-serif\">");

var now = new Date(document.lastModified);
var year = now.getYear();
var yearExists = year;
// fixes year-handling difference in Netscape-based browsers:
if(year < 2000){ year = year + 1900; }
// fix .php problem:
if(year == 1969){ year = 2004; }
// if all else fails:
if(!year){ year = 2004; }

document.write("&copy; " + year + " by <A HREF=\"mailto:&#114;&#111;&#98;&#105;&#110;&#64;&#114;&#111;&#98;&#105;&#110;&#115;&#116;&#101;&#119;&#97;&#114;&#116;&#46;&#99;&#111;&#109;\">Robin Stewart</A>. All rights reserved.<BR>");

if ( footerExtras ) {
	document.write(footerExtras + "<BR>");
}

document.write("</FONT>");

var day = now.getDate();
var monthnum = now.getMonth();
var ar = new Array(12)
    ar[0] = "January";
    ar[1] = "February";
    ar[2] = "March";
    ar[3] = "April";
    ar[4] = "May";
    ar[5] = "June";
    ar[6] = "July";
    ar[7] = "August";
    ar[8] = "September";
    ar[9] = "October";
    ar[10] = "November";
    ar[11] = "December";
var month = ar[monthnum];

// Only print out the "last updated" line if the browser is 
// actually supplying values for the day, month, and year
if(yearExists){
	document.write("<FONT COLOR=\"#A199B7\" SIZE=\"-2\" FACE=\"Verdana, Arial, Helvetica, sans-serif\">");
	
	document.write("This page was last updated on "+month+" "+day+", "+year+".");
	
	document.write("</FONT>");
}

document.write("<!-- end footer -->");

} // end printVirtualFooter() function
