<!--

/*
  This JavaScript code, and all associated software and file structures, calling or called 
  by this code, are copyrighted material, and may not be copied or duplicated in any manner 
  whatsoever without prior written authorization.  All applicable trademarks, registrations, 
  & copyrights are property of Phil Astrella, Registry Enterprises.
*/


archiveList = new Array(

	// format:  SeasonYear (e.g. "summer2004")  ::  Title

	//"winter2011:: ",
	//"fall2011:: ",
	//"summer2011:: ",
	//"spring2011:: ",

	//"winter2010:: ",
	//"fall2010:: ",
	//"summer2010::Cooking Shared with Cildren",
	"spring2010::10 Instant De-Stressors",

	"winter2009::Optimism - Your Vision for 2010",
	"fall2009::Healthy-Tasking vs. Multi-Tasking",
	"summer2009::Walking Meditation &#150; Mindfulness in Action",
	"spring2009::Beauty Sleep for Life!",

	"winter2008::Fearless Living",
	"fall2008::Encouraging Environmental Healing",
	"summer2008::Words Working For Us",
	"spring2008::Botanical Drawing &#150; Our Connection With Plants",

	"winter2007::Family Lore and History",
	"fall2007::Aging Intelligently",
	"summer2007::The Art of Healing with Silence",
	"spring2007::Personalities &amp; Pigments<i>!</i>",

	"winter2006::New Year &#150; Healthy You<i>!</i>",
	"fall2006::Get Energized<i>!</i>",
	"summer2006::Forgiving &nbsp;&#150;&nbsp; The Art of Letting Go",
	"spring2006::Feng Shui:&nbsp; 5 Elements of Fulfillment",

	"winter2005::Affirmations:&nbsp; Seeing is Believing",
	"fall2005::Yoga &nbsp;&#150;&nbsp; The Art of Joining Mind and Body",
	"summer2005::The Art of Tea &nbsp;&#150;&nbsp; for your Mind &nbsp;&#150;&nbsp; and Body",
	"spring2005::Walking Through Nature &nbsp;&#150;&nbsp; for your Mind &nbsp;&#150;&nbsp; and Body",

	"winter2004::Meditation for your Mind &nbsp;&#150;&nbsp; and Body",


	"");


var thisPageLoc = ""+document.location;

if (thisPageLoc.indexOf("nurturing_home.html") != (thisPageLoc.length-19))
  {
    // required page name format: nurturing_SeasonYear.html, e.g. nurturing_winter2004.html
    var thisSeason	= thisPageLoc.substring(thisPageLoc.lastIndexOf("_")+1,thisPageLoc.lastIndexOf(".html"));
    var thisYear	= thisSeason.substring(thisSeason.length-4,thisSeason.length);
	thisSeason	= thisSeason.substring(0,thisSeason.length-4);
   	thisSeason	= thisSeason.charAt(0).toUpperCase()+thisSeason.toLowerCase().substring(1,thisSeason.length);
    var thisPageHome	= 0;
  } else
  {
    var thisSeason	= "";
    var thisYear	= "";
    var thisPageHome	= 1;
  }


function flagArchive(faSeason)
  {
    if (!thisPageHome)
      {
	if ((isNaN(thisSeason)) && (!isNaN(thisYear)))
	  {
	    document.write("<div class='subbold2' style='margin-top:10px'>Archive:&nbsp; "
		+ "<span style='font-size:14pt; color:maroon'>"
		+ thisSeason+" "+thisYear+"&nbsp;&nbsp;</span></div>")
	  } else
	  {
	    if ((!faSeason) || (faSeason.length < 1)) 
	      { faSeason = getDate("season")+" &#151; "+getDate("month")+" "+getDate("year") };
	    document.write("<div class='subbold2' style='margin-top:10px'>"+faSeason+"</div>")
	  }
      }
  }

function showSeason() {
	document.write("<div class='subbold2' style='margin-top:30px; margin-bottom:5px'>"+thisSeason);
	if (!thisPageHome) {
		document.write("&nbsp; <span style='color:#998099'>("+thisYear+")</span>");
	}
	document.write("</div>");
}

function listArchive()
  {
    if (thisPageHome)
      {
	document.write("<p>"
	  + "<span class='bodybold2' style='font-size:11pt; color:#0066ff; cursor:help' title='Click on seasons below to view previous articles' "
	    + "onMouseOver=\"this.style.color='#ff3333'\" onMouseOut=\"this.style.color='#4848ff'\">"
	    + "&quot;Nurturing Your Spirit&quot; Archive:</span>"
	  + "<div style='line-height:12px'>&nbsp;</div>"
	  + "<div style='margin-left:10px; height:200px; overflow:auto; "
	    + "scrollbar-track-color:		#ffffff; "
	    + "scrollbar-arrow-color:		#ff0000; "
	    + "scrollbar-face-color:		#ffffff; "
	    + "scrollbar-3dlight-color:		#9999ff; "
	    + "scrollbar-highlight-color:	#ffffff; "
	    + "scrollbar-shadow-color:		#9999ff; "
	    + "scrollbar-darkshadow-color:	#ffffff'>"
	    + "<table width=98% border=0 cellspacing=0 cellpadding=1 class='bodyreg1' "
	      + "style='border: 1px solid #e0e0e0; background-color:#fff8f8'>");
	var theArchive, theSeason, theYear, theTitle, saveYear="" ;
	for (ax = 0 ; ax < archiveList.length ; ax++)
	  {
	    if (archiveList[ax].indexOf("::") == -1) { continue };
	    theArchive	= archiveList[ax].split("::");
	    theSeason	= theArchive[0].substring(0,theArchive[0].length-4);
	    theSeason	= theSeason.charAt(0).toUpperCase()+theSeason.toLowerCase().substring(1,theSeason.length);
	    theYear	= theArchive[0].substring(theArchive[0].length-4,theArchive[0].length);
	    theTitle	= (theArchive[1].length > 1) ? theArchive[1] : "&lt; no title &gt;" ;
	    if ((saveYear != "") && (saveYear != theYear)) 
	      { document.write("<tr><td colspan=5 style='line-height:2px; border-bottom: 1px solid #e0e0e0'>&nbsp;</td></tr>") }
	    if ((isNaN(theSeason)) && (!isNaN(theYear)))
	      {
		document.write("<tr "
		+ "onMouseOver='this.style.backgroundColor=\"#e8ffff\"' onMouseOut='this.style.backgroundColor=\"#fff8f8\"'>");
		if (saveYear == theYear) 
		  { document.write("<td align=center nowrap style='padding-left:5px; color:#808080'>&#146; &#146;</td>") } else 
		  { document.write("<td align=center nowrap style='padding-left:5px; font-size:8pt'>"+theYear+"</td>" ) }
		document.write("<td width=15 nowrap> &nbsp; </td>"
		  + "<td nowrap align=right>"
		    + "<a onMouseOver='this.style.color=\"#e00000\"' onMouseOut='this.style.color=\"#3954ff\"' "
		      + "style='font-family:arial,tahoma; font-weight:bold; color:#3954ff' target='_blank' "
		      + "title='Click for \"Nurturing Your Spirit\", "+theSeason+" "+theYear+"\n\""+theTitle+"\"' "
		      + "href='nurturing_"+theArchive[0]+".html'>"+theSeason+"</a>:</td>"
		  + "<td width=5 nowrap> &nbsp; </td>"
		  + "<td nowrap style='font-size:8pt; padding-right:5px'>"+theTitle+"</td></tr>")
		saveYear = theYear;
	      }
	  }
	document.write("</table></div></p>")
      }
  }


//-->
