Date.prototype.getDOY = function() {
var onejan = new Date(this.getFullYear(),0,1);
return Math.ceil((this - onejan) / 86400000);
} 
var today = new Date();
var weekno = today.getDOY(); 
var day="0";

// day = 1 through 21 and if > 21 it = weekno mod 21
if (weekno<22) { day = weekno; } else { day = weekno%21; }
day=day-1 // offset for use with array;
//var d=new Date();
var daytip = new Array;
/*
daytip[0]="Tip of the Day is Coming Soon!  Today is Sunday.";//"Sunday's tip goes here.";
daytip[1]="Tip of the Day is Coming Soon!  Today is Monday.";//"Monday's tip goes here.";
daytip[2]="Tip of the Day is Coming Soon!  Today is Tuesday.";//"Tuesday's tip goes here.";
daytip[3]="Tip of the Day is Coming Soon!  Today is Wednesday.";//"Wednesday's tip goes here.";
daytip[4]="Tip of the Day is Coming Soon!  Today is Thursday.";//"Thursday's tip goes here.";
daytip[5]="Tip of the Day is Coming Soon!  Today is Friday.";//"Friday's tip goes here.";
daytip[6]="Tip of the Day is Coming Soon!  Today is Saturday.";//"Saturday's tip goes here.";
var day=d.getDay();
*/

daytip[0]="Use low impact activities such as biking, swimming, or elipitical running machine to maintain cardiovascular health while helping to reduce knee and foot pain.";
daytip[1]="Try to drink an ounce of water for every pound that you weigh. Water has vast health advantages ranging from increasing energy to preventing cancer.";
daytip[2]="Stretch every day. Taking 5 minutes to stretch each day can prevent many injuries from occurring.";
daytip[3]="Avoid excessive saturated (animal) and trans fats, as these are linked to heart disease and other health conditions. Instead, try to attain the recommended 30% of fat in your diet from plant sources like peanut oils.";
daytip[4]="To help reduce arthritis, take glucoseamine supplements to maintain joint health.";
daytip[5]="Avoid muscle cramps during exercise by drinking lots of fluids and eating foods with ample potassium (bananas, kiwi).";
daytip[6]="Try to exercise at least 20-30 minutes every day, even if this is just walking.";
daytip[7]="Poor posture can cause many orthopedic problems. Try to always keep your shoulders back and your buttocks against the chairs backrest while sitting.";
daytip[8]="Calcium helps prevent osteoporosis in women and prostrate cancer in men.";
daytip[9]="Make an honest effort to get at least 8 hours of sleep every night.";
daytip[10]="Dark fruits like blueberries, pomegranate, and acai are the highest in antioxidants and have been shown to have numerous health benefits as well as prevent cancer.";
daytip[11]="To avoid overeating, eat slowly and stop before you feel completely full.";
daytip[12]="Losing weight is a simple formula but is often difficult to follow: burn more calories each day than you consume.";
daytip[13]="We often eat/feel hungry because we are actually dehydrated and not low on calories. Staying hydrated can significantly reduce your hunger pangs.";
daytip[14]="Take the option of walking or using stairs instead of taking elevators/escalators. It's often the little things we do that make the biggest difference.";
daytip[15]="Research shows that daily soda drinkers significantly increase their risk for obesity, diabetes, tooth decay, and weak bones.";
daytip[16]="Quit smoking. The effects of smoking are detrimental to the human body and have been shown to cause numerous cancers as well as delay the healing process.";
daytip[17]="<span style='font-size:9px;'>Drink in moderation. While some studies show that a glass or two of wine may help lower blood pressure, excessive consumption of alcoholic beverages is linked to multiple diseases and one of the leading causes of fatal car accidents. </span>";
daytip[18]="To avoid severe muscle soreness after workouts, drink plenty of water, stretch, and use cold modalities (cold packs, ice bath) if accessible.";
daytip[19]="Always try to bend at the knees and not at your hips when you pick heavy objects off the floor. This can save your back a lot of discomfort and avoid serious injury.";
daytip[20]="Work rest days into your exercise routine. These days are extremely important and are needed for strength improvements. It's during times of rest that muscles repair themselves to become stronger and bigger than before.";


var TipOfDay=daytip[day];//" This feature will be enabled in the near future.";//"It doesn't have to be tied to the day of the week. This just shows functionality.";