<!-- HIDE FROM OLD BROWSERS-------------------------------------

////////////////////////////////////////////////////////////////////////////////////
// DAY AND DATE DISPLAY FOR EACH PAGE 
//================================================================================
function GetDay(intDay){
	var DayArray = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday")
    return DayArray[intDay]
}

function GetMonth(intMonth){
    var MonthArray = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December") 
    return MonthArray[intMonth]    
}

function getDateStrWithDOW(){
    var today = new Date()
    var year = today.getYear()
    
	if(year<1000) {
		year+=1900;
	}
	
    var todayStr = GetDay(today.getDay()) + ", "
    todayStr += GetMonth(today.getMonth()) + " " + today.getDate()
    todayStr += ", " + year
    return todayStr
}

////////////////////////////////////////////////////////////////////////////////////
// MAKE SURE ALL REQUIRED FIELDS FOR CONTACT FORM ARE FILLED IN B4 POSTING DATA. 
//================================================================================

function checkForm(){ 
	// document.formName.formFieldName.value
	if (document.contact.name.value =='' || document.contact.email.value =='' || document.contact.comments.value ==''){ 
		alert('Please fill in all required fields!');
		return false;
	}else{
		return true;
	}
}

//=================================================================================
////////////////////////////////////////////////////////////////////////////////////
// MAX LENGTH FOR CONTACT FORM TEXT AREA FIELD. 
// Author: Dynamic Drive

var ns6=document.getElementById&&!document.all

function restrictinput(maxlength,e,placeholder){
if (window.event&&event.srcElement.value.length>=maxlength)
return false
else if (e.target&&e.target==eval(placeholder)&&e.target.value.length>=maxlength){
var pressedkey=/[a-zA-Z0-9\.\,\/]/ //detect alphanumeric keys
if (pressedkey.test(String.fromCharCode(e.which)))
e.stopPropagation()
}
}

function countlimit(maxlength,e,placeholder){
var theform=eval(placeholder)
var lengthleft=maxlength-theform.value.length
var placeholderobj=document.all? document.all[placeholder] : document.getElementById(placeholder)
if (window.event||e.target&&e.target==eval(placeholder)){
if (lengthleft<0)
theform.value=theform.value.substring(0,maxlength)
placeholderobj.innerHTML=lengthleft
}
}


function displaylimit(thename, theid, thelimit){
var theform=theid!=""? document.getElementById(theid) : thename
var limit_text='<b><span id="'+theform.toString()+'">'+thelimit+'</span></b> characters remain for input limit'
if (document.all||ns6)
document.write(limit_text)
if (document.all){
eval(theform).onkeypress=function(){ return restrictinput(thelimit,event,theform)}
eval(theform).onkeyup=function(){ countlimit(thelimit,event,theform)}
}
else if (ns6){
document.body.addEventListener('keypress', function(event) { restrictinput(thelimit,event,theform) }, true); 
document.body.addEventListener('keyup', function(event) { countlimit(thelimit,event,theform) }, true); 
}
}

//================================================================================= 
////////////////////////////////////////////////////////////////////////////////////
// TOGGLE MAP DIV ON CONTACTS PAGE 

function toggleDiv(mapDiv) {
	if (document.getElementById) {
		// this is the way the standards work
		var myMap = document.getElementById(mapDiv).style;
		myMap.display = myMap.display? "":"block";
	}else if (document.all) {
		// this is the way old IE versions work
		var myMap = document.all[mapDiv].style;
		myMap.display = myMap.display? "":"block";
	}else if (document.layers) {
		// this is the way NN4 works
		var myMap = document.layers[mapDiv].style;
		myMap.display = myMap.display? "":"block";
	}
}

//=====================================================================================
///////////////////////////////////////////////////////////////////////////////////////
// LEFT SIDE BAR
function writeSG(){
	var module0='<div class="sugLinks_Box"><div class="headers"><img src="images/suggestedlinks.gif" alt="suggested links" width="122" height="16"></div><div class="sugLinks"><div class="sugLinksContent"><p> <img src="images/pageLinkBlue.gif" alt="link" width="16" height="16"> <a href="http://www.juiceplus.com/+lf64059">Juice Plus</a></p><p> <img src="images/pageLinkBlue.gif" alt="link" width="16" height="16"> <a href="http://www.wildwoodlsc.org">Wildwood Lifestyle Center &amp; Hospital</a></p><p> <img src="images/pageLinkBlue.gif" alt="link" width="16" height="16"> <a href="http://www.ucheepines.org">Uchee Pines</a></p><p> <img src="images/pageLinkBlue.gif" alt="" width="16" height="16"> <a href="http://www.weimar.org">Weimar Institute of Health &amp; Education</a></p><p> <img src="images/pageLinkBlue.gif" alt="link" width="16" height="16"> <a href="http://www.lifestylecenter.org">Lifestyle Center of America</a></p></div></div></div>'
	var module1='<div class="sugLinks_Box"><div class="headers"><img src="images/additionallinks.gif" alt="additional links" width="122" height="16"></div><div class="sugLinks"><div class="sugLinksContent"><p> <img src="images/pageLink.gif" alt="link" width="16" height="16"> <a href="http://www.organic.org">Organic</a></p><p> <img src="images/pageLink.gif" alt="link" width="16" height="16"> <a href="http://vegweb.com">VegWeb</a></p><p> <img src="images/pageLink.gif" alt="" width="16" height="16"> <a href="http://www.godairyfree.org">Go Dairy Free</a></p><p> <img src="images/pageLink.gif" alt="link" width="16" height="16"> <a href="http://www.newstart.com">New Start</a></p><p> <img src="images/pageLink.gif" alt="link" width="16" height="16"> <a href="http://www.wheat-free.org">Wheat Free</a></p><p> <img src="images/pageLink.gif" alt="link" width="16" height="16"> <a href="http://www.eatright.org">Eat Right</a></p></div></div></div>'

	document.write(module0+module1);
}

//=============================================================================================
// RANDOM IMAGES ON HOME PAGE
// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com
// http://www.javascript-page.com/ranimage.html

var currentdate = 0
var core = 0

function StringArray (n) {
  	this.length = n;
  	for (var i =1; i <= n; i++) {
    	this[i] = ' ';
  	}
}
// fyi = newStringArray([# of images])
fyi = new StringArray(9)
fyi[0] = '<b>AH! Lemon</b> - Have you ever seen a worm eating a lemon? Most likely not because lemons have natural properties that repel them. This same property can help you ward off viruses or bacterium that cause sore throats. At the first symptoms of a sore throat, mix the juice of one lemon with one table spoon of honey and sip slowly.';
fyi[1] = '<b>Tumeric</b> is a natural anti-inflamatory.';
fyi[2] = '<b>Eating between meals</b> - Do you like to rest? Well, your stomach does. In most cases, thurst is mistaken by hunger. The next time you feel the urge to eat between meals, drink some water and give your stomach a break.';
fyi[3] = '<b>Water</b> - Fatigue and fogy thinking could be caused by simply being partially dehydrated. Try drinking enough water daily and you will see the difference it will make.';
fyi[4] = '<b>Parsley</b> is a natural diuretic, blood purifier and is excellent to prevent bad breath.';
fyi[5] = '<b>Astragalus</b> - Increases metabolism and promotes sweating. Excellent in combating colds and flu. Used as a tonic to protect the immune system from cancers, tumors and lung diseases.'
fyi[6] = '<b>Cascara Sagrada</b> - Used to clean the colon and as a laxative.'
fyi[7] = '<b>Chamomile</b> - An anti-inflammatory which helps with digestion and insomnia. An excellent remedy for stress and anxiety. Helpful in alleviating diverticulosis, fever, headaches and colitis.'
fyi[8] = '<b>Echinacea</b> - Helpful in alleviating colds, flu and contagious diseases. It wards off bacterial and viral infection, stimulates the immune system and protects the lymphatic system.'

var ran = 60/fyi.length

function ranimage() {
  	currentdate = new Date();
  	core = currentdate.getSeconds();
  	core = Math.floor(core/ran);
    return(fyi[core]);
}

function randomize() {
	document.write(ranimage());
}
//===================================================================================================
//-->