//
/*  System Variables                      
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
	var day   = new Array("Sun","Mon","Tues","Wednes","Thurs","Fri","Satur");
	var month = new Array("January","February","March","April","May","June",
                "July","August","September","October","November","December");
	var today = new Date();
	var oneDay = 0;
	oneDay = 1000*60*60*24;


/*  What's New?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
function whatsnew() 
{
	document.write('<h4>WHAT\'S NEW?</h4>')
	document.write('<p><strong>9/05/10</strong><br><a href="../pedigree-allie.htm">Allie</a> finishes her AKC Championship!</p>')
	document.write('<p><strong>8/01/10</strong><br><a href="../pedigree-donovan.htm">Donovan</a> earns his AKC Grand Championship &ndash; only the 6th Wheaten to do so!</p>')
	document.write('<p><strong>4/16/10</strong><br><a href="../pedigree-millie.htm">Millie</a> won Best of Opposite Sex at SCWTCNC Specialty.</p>')
	document.write('<p><strong>3/27/10</strong><br>Both <a href="../pedigree-raleigh.htm">Raleigh</a> and <a href="../pedigree-george.htm">George</a> won 3-point majors in Vallejo!</p>')
	document.write('<p><strong>1/17/10</strong><br><a href="../pedigree-emmy.htm">Emmy</a> finishes her AKC Championship with a bang &mdash; winning TWO 5-point majors this weekend in Puyallup WA!</p>')

/*	
	document.write('<p><strong>10/17/09</strong><br><a href="../pedigree-allie.htm">Allie</a> wins her second major (3pts) by going Winners Bitch & Best of Opposite Sex over 2 Specials at Del Valle DC in Pleasanton.</p>')
	document.write('<p><strong>9/11/09</strong><br><a href="../litter-05-laney-jesse.htm">Laney's puppies</a> arrive today &mdash; 3 boys & 3 girls!</p>')
	document.write('<p><strong>6/21/09</strong><br>At 11 months of age, <a href="../pedigree-allie.htm">Allie</a> wins Winners Bitch & Best of Winners for 4 points at the Southern California Specialty!</p>')
*/
	document.write('<p>&nbsp;</p>')

}










//
//  Display Date Modified
//
function lastMod() {
	var x = new Date (document.lastModified);
	Modif = new Date(x.toGMTString());
	Year = takeYear(Modif);
	Month = Modif.getMonth();
	Month += 1;
	Day = Modif.getDate();
	var towrite = 'updated ' + Month + '-' + Day + '-' + Year;
	return towrite;
}
function takeYear(theDate) {
	x = theDate.getYear();
	var y = x % 100;
	y += (y < 38) ? 2000 : 1900;
	return y;
}


function underReview(yes) {
	if	( yes != "no" )
	{
		document.write('<div class="alert"><div class="tiptext"><p class="centered"><strong>HEALTH SECTION UNDER REVIEW</strong><br/>Content is under review by the SCWTCA Health Committee and our researchers. <br/>Updates will be posted as they become available.<br/>Full review &amp; update should be complete by 12/1/07.</p></div></div>')	
	}
}




// =======================================================
//   Email Spider Stumper v3.1
//    last modified 13 Oct 2005
//    Developed by Scott Clark & Kevin Duhe
//    The Source is available at http://www.clarksco.com/blog/
//    Copyright 2005 Clark Consulting
// =======================================================
//   MODIFIED for flexible domains
//      Robyn Alexander  2007-06-10
// ======================================================= 

// There are three arguments being passed into this array.
//   "theName"    =  username (or the portion of the email address prior to the @.
//   "theDomain"  =  domain   (not including .com,.net, etc)
//   "theCom"     =  com,net, edu    (defauts to com if left blank)
//   "theSubject" =  subjec for email.   Can be blank if you don't want to use this feature.
//   "theLink"    = text for the link such as "Jane Doe"  (defaultsto email address if blank)

function stumpIt(theName,theDomain,theCom,theSubject,theLink) {
	if	( theCom == "" )
	{	
		theCom = "com";
	}
	if ( theLink == "xxx" )
	{
		theLink = theName+" @ "+theDomain+"."+theCom;
	}
	else
	{
		theLink = theName+" @ "+theDomain+"."+theCom;
	}
	var theEmail = theName+"@"+theDomain+"."+theCom;
	var theEmailSubj = theName+"@"+theDomain+"."+theCom+"?subject="+theSubject;
	if	( theName == "" || theDomain == "" )
	{
		theName = "ERROR";
		theLink = "ERROR";
		myEmail = theName;
		myLink = theLink;
	}
	else
	{
		if (theLink == "" && theSubject == "")
		{
			myLink = theEmail;
			myEmail = theEmail;
		}
		else if  ( theLink == "" && theSubject != "")
		{
			myLink = theEmail;
			myEmail = theEmailSubj;
		}
		else if  ( theLink != ""  &&  theSubject != "" )
		{
			myLink = theLink;
			myEmail = theEmailSubj;
		}
		else if  ( theLink != ""  &&  theSubject == "" )
		{
			myLink = theLink;
			myEmail = theEmail;
		}
	}
	document.write('<a href="mailto:' + myEmail + '">' + myLink + '</a>');
}


