
var now = new Date();
var todaysday = now.getDay();
var todaysdate = now.getDate();
var presentmonth = now.getMonth();
var presentyear = now.getFullYear();
var currentyear = presentyear.toString();

/* And as a function for call within HTML: yields Copyright Year */
function perAnnum() {
 document.write(currentyear);
 }

subnav = "<TABLE BORDER=0 CELLPADDING=2 CELLSPACING=0 cols=3 ALIGN=RIGHT WIDTH=180><TR>";
subnav += "<TD ALIGN=CENTER VALIGN=TOP WIDTH=30% NOWRAP><A HREF=\"javascript:void(0)\" onClick=\"pwin(\'windsmith_design_b_residence.html\', \'640\', \'560\')\" class=\"text_brown\" onMouseOver=\"window.status = \'B Garden - Windsmith Design\'; return true;\">b garden</A></TD>";
subnav += "<TD ALIGN=CENTER VALIGN=TOP WIDTH=40% NOWRAP><A HREF=\"javascript:void(0)\" onClick=\"pwin(\'windsmith_design_all_saints_church.html\', \'640\', \'560\')\" class=\"text_brown\" onMouseOver=\"window.status = \'C Garden - Windsmith Design\'; return true;\">c garden</A></TD>";
subnav += "<TD ALIGN=CENTER VALIGN=TOP NOWRAP><A HREF=\"javascript:void(0)\" onClick=\"pwin(\'windsmith_design_k_residence.html\', \'640\', \'560\')\" class=\"text_brown\" onMouseOver=\"window.status = \'K Garden - Windsmith Design\'; return true;\">k garden</A></TD>";
subnav += "</TR></TABLE>";


// Two primary Nav categories home/about=1 portfolio=2

function jNav(id, cellIDon) {
	if (document.getElementById) // Nav6+ and IE 5+ DOM
		  {
			textelement = document.getElementById(id);
			textelement.innerHTML = '';
			textelement.innerHTML = subnav;
			document.getElementById(cellIDon).style.borderColor="#333300";
		}
		else if (document.all) // IE4 DOM
		 {
			//textelement = document.all[id];
			textelement.innerHTML = subnav;
			document.all(cellIDon).style.borderColor="#333300";
		 }
}
// End jNav


/*  Open up a Pop Up Window for each Portfolio link */

function pwin(winurl, wd, ht) {
var featureset = "width="+wd+",height="+ht+",scrollbars=no,resizable=no,menubar=no";
var uri = "portfoliopopup";
var popupwindow = window.open(winurl, uri, featureset);
popupwindow.focus();
}
