// ************************************************************************************
// ** This file has been created with the Rotating Content Tool by Amesbury Web.     **
// ** For more information, visit us on the web:                                     **
// **                                                                                **
// **     Rotating Content Tool   -- http://rotatecontent.com/                       **
// **     Company: Amesbury Web   -- http://amesburyweb.com/                         **
// **     Author:  Randy Hoyt     -- http://randyhoyt.com/                           **
// **                                                                                **
// ************************************************************************************

today = new Date()
month = today.getMonth() + 1
year = today.getFullYear()

selectedDate = new Date("01/01/1900")
selectedContent = ""

varLength = 49
var entryDate = new Array(varLength)
var entryContent = new Array(varLength)

entryDate[0] = "   12/07/2010"
entryContent[0] = "Research reveals that Coconut Oil can inhibit and help eliminate yeast (candida) overgrowth in the human body. Why? Because of the substance, caprylic acid."

entryDate[1] = "     12/14/2010"
entryContent[1] = "<p>Remember the water in your shower and bath is a source of chlorine. Filters for your shower and bath faucets are relatively inexpensive and do a great job of filtering out the chlorine.</p>"

entryDate[2] = "  12/21/2010"
entryContent[2] = "<p>Licorice root strengthens the adrenal glands, is a natural sweetener and can help regenerate a fatigued system. Caution with hypertension, though, as it can cause a rise in blood pressure.</p>"

entryDate[3] = "  12/28/2010"
entryContent[3] = "<p>Household cleaners contain toxins that are bad for you and the environment. Try diluted tea tree oil for mold and mildew, and vinegar, water and a drop of eco-friendly dish soap for windows.</p>"

entryDate[4] = "     01/04/2010"
entryContent[4] = "<p>A long term Harvard study showed that students with an optimistic outlook were happier and healthier at ages 45 and 60 than those who were pessimistic. Try looking on the positive side of life!</p>"

entryDate[5] = "  01/11/2010"
entryContent[5] = "<p>Foods high in chlorophyll can help reduce heavy metal toxicity in the body! This includes: bell peppers, broccoli, celery, green beans, peas, kale, parsley, romaine lettuce and spinach.</p>"

entryDate[6] = "  01/18/2010"
entryContent[6] = "<p>To reduce heavy metals use glass or ceramic cookware, test your water, make sure your pipes are not lead, remove or seal any lead paint, choose deodorant over antiperspirant and limit canned foods.</p>"

entryDate[7] = "  01/25/2010"
entryContent[7] = "<p>Hibiscus &ndash; packed full of vital Vitamin C, this tart flower makes an excellent and tasty tea. Sweeten with a little raw honey and you have a great beverage that boosts your immune system at the same time.</p>"

entryDate[8] = "  02/01/2010"
entryContent[8] = "<p>Repurpose household items by finding new uses instead of trashing them. Jelly jars can become spice containers, glasses, vases, toothbrush holders with some paint, ribbon, or fabric.</p>"

entryDate[9] = "  02/08/2010"
entryContent[9] = "<p>Increase feeling of happiness and wellbeing by writing a gratitude list everyday of things you appreciate in your life.</p>"

entryDate[10] = "  02/15/2010"
entryContent[10] = "<p>Drinking water with the juice of a medium sized lemon squeezed into it can help reduce the acidity level of the body, which functions much better and when it is alkaline versus acidic.</p>"

entryDate[11] = "  02/22/2010"
entryContent[11] = "<p>When putting in new carpet or repainting your home, choose products that are formulated to have fewer or no toxic substances.</p>"

entryDate[12] = "  03/01/2010"
entryContent[12] = "<p>Turmeric, a common household spice, has been shown to have super anti-inflammatory properties. Spice up those chicken dishes, stews and soups with a liberal helping of turmeric and help decrease inflammation in your body.</p>"

entryDate[13] = "  03/08/2010"
entryContent[13] = "<p>Recycle more than just paper and plastic. 1.1 billion inkjet cartridges are thrown away worldwide every year. Try buying from companies like Hewlett-Packard and Lexicon, which both have recycling programs for used ink cartridges. </p>"

entryDate[14] = "  03/15/2010"
entryContent[14] = "<p>Receiving 15 minutes of early morning sunlight can dramatically improve your mood and help with &ldquo;winter blues&rdquo; by stimulating your body to produce Vitamin D.</p>"

entryDate[15] = "  03/22/2010"
entryContent[15] = "<p>For a quick pick-me up, instead of reaching for a cup of coffee, try a fresh ruby-red grapefruit or orange. The high vitamin C level and enzymes of a raw living food can give you that feeling of energy and alertness without the negative effects of caffeine.</p>"

entryDate[16] = "  03/29/2010"
entryContent[16] = "<p>To reduce indoor air pollution, change your air filters regularly, have your duct work cleaned, purchase some air-cleaning plants and consider an air purifier.</p>"

entryDate[17] = "  04/05/2010"
entryContent[17] = "<p>Cinnamon &ndash; a warming and fragrant herb is much more than a tasty addition for deserts. This wonderful spice can help regulate blood sugar and improve circulation and memory.</p>"

entryDate[18] = "  04/12/2010"
entryContent[18] = "<p>Don&rsquo;t dispose of cleaners, pesticides, paint, or other household chemicals in the regular garbage. Call your local sanitation department to find out when the next household hazardous waste pickup day is or the location of the toxic waste drop-off is.</p>"

entryDate[19] = "  04/19/2010"
entryContent[19] = "<p>Some psychologists suggest that close, loving bonds with family and friends are essential to overall wellbeing and happiness. In addition, studies show that socializing with friends improves the moods of introverts as well as extroverts. Have tea with a friend, or plan a game night.</p>"

entryDate[20] = "  04/26/2010"
entryContent[20] = "<p>Flax seed should be ground up immediately before using. The oxidation process begins very rapidly once flax seed has been ground and if you are using a product that is pre-ground you may be doing more damage than good!</p>"

entryDate[21] = "  05/03/2010"
entryContent[21] = "<p>Instead of using store bought and chemically formulated household cleaners, consider using vinegar and water, baking soda, alcohol and good old fashioned soap and water to clean. </p>"

entryDate[22] = "  05/10/2010"
entryContent[22] = "Lemon Balm, also known as Melissa, is a great herb to help boost your emotional state. Naturally caffeine free, Lemon Balm is an excellent herb for making a nice iced or hot tea."

entryDate[23] = "  05/17/2010"
entryContent[23] = "<p>Cars contribute to the green house gases that cause global warming. To help reduce the impact try carpooling, walking, biking, and using public transportation. </p>"

entryDate[24] = "  05/24/2010"
entryContent[24] = "<p>A study on the affect of meditation showed that daily meditation shifted brain waves from the right frontal cortex, which is activated by stress and anxiety, to the left frontal cortex, which is activated by feelings of peace and wellbeing. These affects were immediate, but also had positive long term affects.</p>"

entryDate[25] = "  05/31/2010"
entryContent[25] = "<p>Are you trying to avoid sugar but having a tough time of it? Stevia is a great alternative sweetener. There are many different brands and they taste different. Keep trying until you find one you like!</p>"

entryDate[26] = "  06/07/2010"
entryContent[26] = "<p>Before removing moldy bathroom tiles, have the mold tested and consider having a specialist do the job.</p>"

entryDate[27] = "  06/14/2010"
entryContent[27] = "<p>Calendula, commonly known as Marigold, is a soothing and healing agent for the digestive tract and makes a tasty tea. It also makes a great poultice, used topically, for minor skin conditions and injuries.</p>"

entryDate[28] = "  06/21/2010"
entryContent[28] = "<p>Common entertainment activities like watching TV, playing video games and listening to the stereo <img width=\"1\" height=\"1\" src=\"TOTW_clip_image001.gif\" vspace=\"1\" alt=\" \" align=\"bottom\" border=\"0\">contribute to global warming by emitting green house gasses. Try having an eco-friendly entertainment night once a week &ndash; turn off all electronic and play a family game. </p>"

entryDate[29] = "  06/28/2010"
entryContent[29] = "<p>The University of Maryland School of Medicine in Baltimore conducted a study of the effect of joyful music on physical health and found that positive and joyful music has a beneficial effect on blood vessel function. Listen to music that makes you feel happy.</p>"

entryDate[30] = "  07/05/2010"
entryContent[30] = "<p>Dairy-free hot soups are excellent any time of the year. Soup can help boost immune function, aid digestion and, if naturally low-calorie, can help with weight loss.</p>"

entryDate[31] = "  07/12/2010"
entryContent[31] = "<p>Most air fresheners contain formaldehyde-like molecules which can cause fatigue and headaches. Consider using natural air fresheners like the peel of citrus fruits, essential oil diffusers (use real essential oils), and cinnamon sticks.</p>"

entryDate[32] = "  07/19/2010"
entryContent[32] = "<p>Rosemary, an herb to be used for many types of recipes, has recently been shown to have promise in reducing the risk of developing Alzheimer&rsquo;s, is an insect repellant and smelling it while studying can help with recall of details at test time!</p>"

entryDate[33] = "  07/26/2010"
entryContent[33] = "<p>One way to fight global warming is to plant a tree, plant a garden, or buy indoor house plants. Not only do plants absorb carbon dioxide from the air, they purify it as well &ndash; making them a great addition to a household or a backyard!</p>"

entryDate[34] = "  08/02/2010"
entryContent[34] = "<p>Recent research studies on the health effects of laughter showed that it can lower the blood sugar of diabetics, increase vascular blood flow, and boost the immune system. Some psychologists recommend daily laughter to help elevate moods. </p>"

entryDate[35] = "  08/09/2010"
entryContent[35] = "<p>Save some dollars! Not every food item needs to be purchased organic, focus instead on organic dairy and meat products. Check out the Environmental Working Group (www.ewg,org) for a list of the top 12 fruits and veggies to be purchased organic.</p>"

entryDate[36] = "  08/16/2010"
entryContent[36] = "<p>Instead of using chemical-based pest control products, consider natural alternatives such as herbs from the mint family planted around windows and doors, essential oils mixed with water in spray bottle to deter crawling critters, marigolds in the garden, cayenne pepper and cornmeal to ward off roaches and keeping all crumbs of food cleaned up off floors and counters.</p>"

entryDate[37] = "  08/23/2010"
entryContent[37] = "<p>Trouble sleeping? Lavender has a calming and soothing effect on the central nervous system. It is also good to take a sniff of your handy sprig of Lavender during a stressful event to help calm you down.</p>"

entryDate[38] = "  08/30/2010"
entryContent[38] = "<p>When purchasing a new car, consider getting a hybrid or alternative fuel automobile.</p>"

entryDate[39] = "  09/06/2010"
entryContent[39] = "<p>Scientific research have linked long term stress and anxiety to lower immunity, a higher level of stress hormones, and a higher instance of chronic illness. Activities that help reduce stress are exercise, joyful music, laughing, meditating and optimistic thinking.</p>"

entryDate[40] = "  09/13/2010"
entryContent[40] = "<p>Why is frying food so bad for you? Because it creates trans-fats. Instead try steaming, broiling or baking foods in non-aluminum cookware.</p>"

entryDate[41] = "  09/20/2010"
entryContent[41] = "<p>Perfumed products can often set off chemical sensitivities. If you are looking for a personal fragrance, consider using pure essential oils, a little dab goes a long way. Oils can be added to non-scented lotions, soaps and they are great to add to a piece of fabric in the dryer instead of using the scented dryer sheets!</p>"

entryDate[42] = "  09/27/2010"
entryContent[42] = "<p>Herbs that are excellent for the health of your liver include Burdock, Milk Thistle and Dandelion &ndash; caution in pregnant and breast-feeding women.</p>"

entryDate[43] = "  10/04/2010"
entryContent[43] = "<p>Butane and pentane, chemicals found in aerosol sprays, contribute to the formation of ozone in the lower atmosphere, a major contributor to urban air pollution and global warming. Instead of buying room fresheners, try simmering apples and cinnamon on the stove top or add other scents like mint, orange rind, or lavender.</p>"

entryDate[44] = "  10/11/2010"
entryContent[44] = "<p>Repeating positive affirmations is a type of cognitive behavioral therapy that can help a person become more optimistic, fosters feelings of well being, and improve self-esteem. You might repeat to yourself: My health is improving every day in every way.</p>"

entryDate[45] = "  10/18/2010"
entryContent[45] = "<p>There are many ways to add more fiber to your diet which can help lower your cholesterol &ndash; bran, oatmeal, whole grain breads, many whole grain cereals, most vegetables and fruit.</p>"

entryDate[46] = "  10/25/2010"
entryContent[46] = "<p>Reduce the toxic load on baby by choosing non-scented lotions, laundry soap and diapers. Puree your own food at home to cut down on preservatives and added sugars and salts, and instead of insect repellant, try using a citrus-based natural insect repellant for those great outdoor activities.</p>"

entryDate[47] = "  11/01/2010"
entryContent[47] = "<p>Herbs should be stored in brown glass bottles away from heat and sunlight to help preserve their taste, smell and strength.</p>"

entryDate[48] = "  11/08/2010"
entryContent[48] = "<p>Bleach, used in daily household chores, contributes to hazardous water pollution that poisons and kills fish. Substitute bleach with borax for cleaning laundry, and tea tree oil for disinfecting. </p>"

if (typeof display == "undefined") { var display = "date" }

if (display == "random")
{
  var randomNumber = Math.random()
  randomNumber *= varLength
  randomNumber = parseInt(randomNumber)
  if(isNaN(randomNumber)) randomNumber = 0
  else randomNumber %= varLength
  selectedContent = entryContent[randomNumber]
}
else
{
  for (x=0; x<(entryContent.length); x++)
  {
    tempDate = new Date(entryDate[x])
    tempContent = entryContent[x]
    if ((tempDate <= today) && (tempDate > selectedDate))
    {
      selectedContent = tempContent
      selectDate = tempDate
    }
  }
}

document.write (selectedContent)