
dw_Tooltip.defaultProps = {
    klass: 'tooltip',
    showCloseBox: true, // when sticky true (below)
    closeBoxImage: '/images/btns/close.gif'
}


dw_Tooltip.content_vars = {

    access: 'The documentation discusses the accessibility features of the code.',

    // from a database based on query string data for example
    ajax: 'An example demonstrates and gives more information about using ajax to retrieve content for the tooltip.',
    
    classes: {
        klass: 'tip2',
        content: 'The documentation describes how easy it is to set this up. The download file contains an example.'
        },
        
    dl: {
        str: 'The download file contains examples demonstrating basic tooltip setup, a hover tip, swapping classes, sticky tooltip, images and text in the tooltip, and more.',
        w: 300,
        wrapFn: dw_Tooltip.wrapToWidth
        },
        
    dur: {
        content: 'This one is set to hide after a delay of one second.',
        duration: 1000
        },

    els: 'This allows the content of the tooltips to be available for search engines and accessibility. See the demo for more information.',

    
    'focus': {
        str: 'Keyboard users can tab to view the tooltip. Enter key results in navigation. Escape key hides the tooltip.',
        w: 300,
        wrapFn: dw_Tooltip.wrapToWidth
        },
    
    hover: {
        hoverable: true,
        content: 'This tooltip can contain <a href="#">links</a> and will wait for you to hover over it. Documentation has information.'
        },
    
    img: {
        img: '/images/common/cranes.gif',
        w: 150,
        h: 150,
        wrapFn: dw_Tooltip.wrapImageToWidth
        },
        
    img_txt: {
        img: '/images/common/mandala2.gif',
        txt: 'Yin-Yang mandala',
        w: 160,
        wrapFn: dw_Tooltip.wrapImageOverText
        },
        
    mo: {
        str: 'By default the tooltip will hide on mouseout after a customizable delay; for links, onblur when activated onfocus.',
        w: 300,
        wrapFn: dw_Tooltip.wrapToWidth
        },

    obj: 'Most properties and functions are encapsulated under <code>dw_Tooltip</code>.',
        
                
    position: 'The code supports a variety of methods for positioning the tooltip. The demo has more information.',
    
    shim: {
        str: 'The code contains an iframe which will position itself under the tooltip preventing bleed through of select lists for Internet Explorer on windows.',
        w: 300,
        wrapFn: dw_Tooltip.wrapToWidth
    },

    stick: {
        str: 'A &quot;sticky&quot; tooltip remains on screen until another tooltip link is activated or the escape key or document click hides it. The close box is optional.',
        w: 240,
        klass: 'tooltip2',
        wrapFn: dw_Tooltip.wrapToWidth,
        sticky: true
        },
    
    unev: 'The code does not rely on HTML event handler attributes. The documentation has more information.',
    
    // near top of page
 
/////Javey, your one's go in here ////////////

    unob: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'No need to place onmouseover and onmouseout attributes in your (X)HTML. You can keep content and behavior separate.'
        },

  donalrocks: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'Thanks Donal you hero.'
        },

  Absorption: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'The stage of the digestive process where nutrients (vitamins, minerals, etc.) from digested particles of food are absorbed into the bloodstream through the intestine.'
        },

  Aerobic: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'The name given to the type of exercise or training, which requires mostly the use of oxygen as the main energy source, e.g. an exercise over a period of time such as distance running.'
        },

  Amino_Acids: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'Organic compounds containing nitrogen, carbon, hydrogen and oxygen often referred to as the building blocks of protein. They may be joined together in long chains to form proteins or entirely separate (free-form). The combination of amino acids present in a protein determine its properties. They are vital for health, muscles, brain chemistry and energy.',
        },

  Amino_Acid_Pool: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'The level or accumulation of amino acids in the liver and blood that adjusts to meet the body\'s need for protein or energy.'
        },

  Anabolism: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'A human process referring to the increase or building up of lean tissue, particularly muscle. An anabolic state is where the body is building tissue. The opposite is catabolic.'
        },

  Anaerobic: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'The name given to exercise that does not primarily use oxygen as an energy source; i.e. short bursts of vigorous, explosive exercise.'
        },

  Anticatabolic: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'Any action or substance that reduces or prevents the breakdown of the human body\'s lean muscle tissue.'
        },

  Antioxidants: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'Antioxidants such vitamin C and vitamin E mop up free radicals, the molecules that can oxidise cells causing them damage.'
        },

  ATP: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'The energy storage molecule that all cells use to perform work, often refered to as the currency of energy. After ATP releases energy it is recycled by creatine.'
        },

  Biological_Value: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'Not all high-protein foods are fully or easily absorbed by the body. The biological value is a measure of the proportion of protein in a food that is absorbed by the body. It measures how easily the broken down protein can be used in protein synthesis.'
        },

  By_products: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'A secondary product deriving from a manufacturing  process or a chemical reaction that is not the primary product being produced.'
        },
  
  Calories: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'A unit of heat energy used to measure the amount of energy in a food.'
        },
  
  Carbohydrate: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'A sugar, starch, or cellulose that is a food source of energy. Found primarily in fruit, vegatable, cereals and grains. Carbohydrates can be simple or complex which refers to the speed at which they are absorbed. Simple carbohydrates like glucose are absorbed quickly. Complex carbodydrates from some vegetables are absorbed slowly and provide slower energy.'
        },

  Carnosine: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'A combination of the amino acids beta-alanine and histidine that is highly concentrated in muscle tissue and known to strong antioxidant properties.'
        },

  Catabolism: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'A human process referring to the breakdown bodily protein, muscle and lean tissue to recover amino acids for use as energy or raw materials. The opposite is anabolic.'
        },

  Cholesterol: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'A fatty substance made by the body and also found in some foods. Although a certain amount is required for a healthy cardiovascular system, high levels of cholesterol (particularly LDL) in the blood stream are a risk factor for heart disease.'
        },

  Complete_Protein: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'A protein source that contains an adequate source of all the essential amino acids for use by the body. This means that it is an superior protein for building or toning muscle tissue.'
        },

  Creatine: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'An organic compound that occurs naturally in muscle to help provide energy. It is manufactured primarily in the liver and kidneys from the amino acids arginine, glycine, and methionine and is transported in the blood for use by muscles. However, much of stored creatine originates from food (mainly from fresh meat) so, for example, vegetarians may have lower creatine levels while those using creatine supplements generally have higher creatine levels.'
        },

  Deoxygenation: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'The removal of oxygen from a substance, thus decreasing the risk of oxidation.'
        },

  DHA: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'An omega-3 fatty acid found in fish oil. Forms the structure of many brain and nerve tissues.'
        },

  Digestive_Enzymes: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'Enzymes accelerate the rate of chemical reactions. Digestive enzymes are involved in the breakdown of food from complex molecules to simple molecules, so they can be absorbed into the bloodstream. They are essential to allow the body to break down and absorb the food it ingests.'
        },

  Electrolytes: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'The primary electrolytes are sodium, potassium , calcium, magnesium, chloride, hydrogen phosphate, and hydrogen carbonate. The body requires a delicate electrolyte balance of these minerals to regulate hydration and for optimal nerve and muscle function. Without sufficient levels of key electrolytes, muscle weakness or severe muscle contractions may occur.'
        },

  Environmental_Contaminents: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'Substances foreign to a natural system or present at unnatural concentrations. They may be chemicals, bacteria or viruses, or the products of radioactivity. Some contaminants are created by human activities while others are the result of natural processes.'
        },

  EPA: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'An omega-3 fatty acid found in fish oil. Important in assisting the function of the brain, immune system and for general wellbeing.'
        },

  Ergogenic: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'A term used to refer to substances that enhance physical performance.'
        },

  Essential: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'A substance required by the body that it cannot manufacture internally and so must be consumed from food sources.'
        },

  Free_Radicals: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'Highly reactive particles that play a part in many biological processes. However, because of their reactivity, they can participate in unwanted side reactions resulting in cell damage.'
        },

  Excretion: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'The process of eliminating waste products of metabolism and other non-used materials from the body.'
        },

  Glycemic_Index: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'The glycemic index is a measure of the effects of carbohydrates on blood sugar levels. Carbohydrates that break down quickly during digestion and release glucose rapidly into the bloodstream have a high GI; carbohydrates that break down more slowly, releasing glucose more gradually into the bloodstream, have a low GI.'
        },

  Glycogen: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'Glycogen is the body\'s main source of stored energy. Made from glucose, a simple sugar, glycogen is stored primarily in liver and muscle cells.'
        },

  Glycogen_Depletion: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'The draining of the body\'s glycogen stores, which leads to fatigue, lack of co-ordination, light-headedness and lack of concentration, commonly known as hitting the wall.'
        },

  Hydrogen_Ions: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'The hydrogen molecule that makes a solution acidic. The more hydrogen ions present, the more acidic a solution becomes.'
        },

  Incomplete_Protein: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'A protein source that does not contain all the essential amino acids. This means that it is an inferior protein for building or toning muscle tissue.'
        },

  Insulin: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'A hormone produced by the pancreas that regulates the level of glucose, a simple sugar that provides energy, in the blood. The human body requires a steady amount of glucose throughout the day, that glucose comes from the food people eat. It is also a natural anabolic hormone that helps deliver nutrients to muscle tissue.'
        },

  Lean_Body_Mass: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'Strictly speaking this refers to body mass without fat. To calculate you will need to determine your body fat percentage. This can be done by taking skinfold measurements with a calipers. For example, 100kg person with 15% body fat would have a lean body mass of 85kg.'
        },

  Muscular_Fatigue: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'A state of a muscle when it can no longer contract effectively.'
        },

  Nature_Identical: { 
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'A term applied to a food ingredient that, although synthesised in a laboratory, is identical to that which occurs in nature.'
        },

  Non_Essential: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'A substance that the body can manufacture internally from other substances.'
        },

  Omega_3: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'A class of fatty acids commonly found in certain fish oils. They are often lacking in the diet so supplementation can have profound health benefits.'
        },

  Omega_6: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'Fatty acids found mainly in sunflower and safflower oils. Omega-6 is consumed more readily than its omega-3 counterpart. Although it plays a role in good health, excessive consumption may lead to an imbalance in the body\'s inflammatory system and create health issues.'
        },

  Overhydration: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'The disturbance in brain functions that results when the normal balance of electrolytes in the body is pushed outside of safe limits by over-consumption of water. It may be caused by long bouts of intensive exercise during which electrolytes are not properly replenished, yet excessive amounts of fluid are still consumed.'
        },

  Overloading_Muscles: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'The overstimulation of muscle achieved during training that causes them to adapt and grow stronger.'
        },

  Oxidation: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'Oxidation is a chemical reaction that, although crucial for life, can also be damaging. Hence, our bodies require multiple antioxidants, such as vitamin C to slow down or prevent oxidation and keep the body healthy.'
        },

  Pharmaceutical_Grade: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'There are three different grades of raw material: feed grade (for animal consumption), food grade (for human consumption) and pharmaceutical grade (suitable for use as a medicine). The difference between the grades is quality and purity, with pharmaceutical being the highest.'
        },

  pH_Range: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'The level of hydrogen ions present that determines acidity. The less hydrogen ions present, the less acidity and lower pH.'
        },

  Protein: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'An essential nutrient that helps build and maintain many parts of the body, including muscle, bone, skin, and blood. Found in foods such as dairy, meat, fish, and eggs.'
        },

  Protein_Synthesis: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'The process by which cells proteins in the body, particularly muscle tissue.'
        },

  Rate_Limiting_Precursor: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'A substance where the amount of it available directly affects the rate of a chemical reaction.'
        },

  Rehydration: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'This is the replenishment of water, or water and electrolytes, lost through perspiration (sweating).'
        },

  Saturated_Fat: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'A type of fat that is generally found in animal sources and thought to raise blood cholesterol levels.'
        },

  Synergy: {
        w: 280,
        wrapFn: dw_Tooltip.wrapToWidth,
        str: 'The working together of two things substances to produce an effect greater than the sum of their individual effects. Often described as "2+2=5".'
        },

//////////////////////////////////////////////

    vars: {
        str: 'An object literal is used to encapsulate all tooltip content. It can be set up very simply yet provides great flexibility. The documentation gives more details.',
        w: 300,
        wrapFn: dw_Tooltip.wrapToWidth
        },
        
    wrap: {
        wrapFn: dw_Tooltip.wrapTextByImage,
        caption: 'A Heron',
        img: '/images/common/heron.gif',
        txt: 'Side by side with a caption is one among many possible display options.',
        w: 210
        }


}