//document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">')
//document.write('<html><head>')
//document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">')

document.write('<BODY bgcolor="#303D1A" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><BR>')
document.write('<style type="text/css">')
document.write('<!--')
document.write('A:link    { text-decoration : none;}')
document.write('A:hover   { text-decoration : underline;}')
document.write('A:active  { text-decoration : underline=no; color : 996600;}')
document.write('A:visited { text-decoration : underline=no;}')
document.write('a{text-decoration:none}')
document.write('-->')
document.write('</style>')

// POP UP CODE
function NewWindow(mypage, myname, w, h, scroll)
{
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
// END POP UP CODE

// SENDOVER
//document.write('<meta http-equiv="refresh" content="0;url=http://www.biosuperfood.com/">')
// END-SENDOVER

/* 
 * Cross-browser event handling, by Scott Andrew
 */
function addEvent(element, eventType, lamdaFunction, useCapture) {
    if (element.addEventListener) {
        element.addEventListener(eventType, lamdaFunction, useCapture);
        return true;
    } else if (element.attachEvent) {
        var r = element.attachEvent('on' + eventType, lamdaFunction);
        return r;
    } else {
        return false;
    }
}

/* 
 * Kills an event's propagation and default action
 */
function knackerEvent(eventObject) {
    if (eventObject && eventObject.stopPropagation) {
        eventObject.stopPropagation();
    }
    if (window.event && window.event.cancelBubble ) {
        window.event.cancelBubble = true;
    }
    
    if (eventObject && eventObject.preventDefault) {
        eventObject.preventDefault();
    }
    if (window.event) {
        window.event.returnValue = false;
    }
}

/* 
 * Safari doesn't support canceling events in the standard way, so we must
 * hard-code a return of false for it to work.
 */
function cancelEventSafari() {
    return false;        
}

/* 
 * Cross-browser style extraction, from the JavaScript & DHTML Cookbook
 * <http://www.oreillynet.com/pub/a/javascript/excerpt/JSDHTMLCkbk_chap5/index5.html>
 */
function getElementStyle(elementID, CssStyleProperty) {
    var element = document.getElementById(elementID);
    if (element.currentStyle) {
        return element.currentStyle[toCamelCase(CssStyleProperty)];
    } else if (window.getComputedStyle) {
        var compStyle = window.getComputedStyle(element, '');
        return compStyle.getPropertyValue(CssStyleProperty);
    } else {
        return '';
    }
}

/* 
 * CamelCases CSS property names. Useful in conjunction with 'getElementStyle()'
 * From <http://dhtmlkitchen.com/learn/js/setstyle/index4.jsp>
 */
function toCamelCase(CssProperty) {
    var stringArray = CssProperty.toLowerCase().split('-');
    if (stringArray.length == 1) {
        return stringArray[0];
    }
    var ret = (CssProperty.indexOf("-") == 0)
              ? stringArray[0].charAt(0).toUpperCase() + stringArray[0].substring(1)
              : stringArray[0];
    for (var i = 1; i < stringArray.length; i++) {
        var s = stringArray[i];
        ret += s.charAt(0).toUpperCase() + s.substring(1);
    }
    return ret;
}

/*
 * Disables all 'test' links, that point to the href '#', by Ross Shannon
 */
function disableTestLinks() {
  var pageLinks = document.getElementsByTagName('a');
  for (var i=0; i<pageLinks.length; i++) {
    if (pageLinks[i].href.match(/[^#]#$/)) {
      addEvent(pageLinks[i], 'click', knackerEvent, false);
    }
  }
}

/* 
 * Cookie functions
 */
function createCookie(name, value, days) {
    var expires = '';
    if (days) {
        var date = new Date();
        date.setTime(date.getTime() + (days*24*60*60*1000));
        var expires = '; expires=' + date.toGMTString();
    }
    document.cookie = name + '=' + value + expires + '; path=/';
}

function readCookie(name) {
    var cookieCrumbs = document.cookie.split(';');
    var nameToFind = name + '=';
    for (var i = 0; i < cookieCrumbs.length; i++) {
        var crumb = cookieCrumbs[i];
        while (crumb.charAt(0) == ' ') {
            crumb = crumb.substring(1, crumb.length); /* delete spaces */
        }
        if (crumb.indexOf(nameToFind) == 0) {
            return crumb.substring(nameToFind.length, crumb.length);
        }
    }
    return null;
}

function eraseCookie(name) {
    createCookie(name, '', -1);
}

// end util functions


/*
 * Clear Default Text: functions for clearing and replacing default text in
 * <input> elements.
 */
addEvent(window, 'load', init, false);

function init() {
    var formInputs = document.getElementsByTagName('input');
    for (var i = 0; i < formInputs.length; i++) {
        var theInput = formInputs[i];
        
        if (theInput.type == 'text' && theInput.className.match(/\bcleardefault\b/)) {  
            /* Add event handlers */          
            addEvent(theInput, 'focus', clearDefaultText, false);
            addEvent(theInput, 'blur', replaceDefaultText, false);
            
            /* Save the current value */
            if (theInput.value != '') {
                theInput.defaultText = theInput.value;
            }
        }
    }
}

function clearDefaultText(e) {
    var target = window.event ? window.event.srcElement : e ? e.target : null;
    if (!target) return;
    
    if (target.value == target.defaultText) {
        target.value = '';
    }
}

function replaceDefaultText(e) {
    var target = window.event ? window.event.srcElement : e ? e.target : null;
    if (!target) return;
    
    if (target.value == '' && target.defaultText) {
        target.value = target.defaultText;
    }
}
// end clear function


// CONTAINER TABLE
document.write('<table width="850" align="center" cellpadding="0" cellspacing="0"  border=0><TR><TD>')

// HEADER table 1
document.write('<table BACKGROUND="images/header.jpg" width="850" HEIGHT=90 align=center>')
document.write('<TR><TD>')

// JOIN NEWSLETTER
document.write('<DIV STYLE="text-align: center"><BR>')
document.write('<table align=right><td>')
document.write('<IMG SRC="images/newspaper.png" BORDER="0" WIDTH="42" ALT="">')
document.write('</td><td><BR>')
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
} 
document.write('<form name="ccoptin" action="http://ui.constantcontact.com/d.jsp" target="_blank" method="post" style="margin-bottom:2;">')
document.write('<input type="hidden" name="m" value="1011306087098">')
document.write('<input type="hidden" name="p" value="oi">')
//document.write('<FONT face=arial size=2 color=gray>Join FREE newsletter</font><br>')
document.write('<input type="text" name="ea" size="15" style="font-size:8pt; border:1px solid #CC6600" onFocus="clearText(this)" value="SUBSCRIBE" onFocus="clearText(this)">')
document.write('<input type="submit" name="go" value=">" class="submit" style="font-size:7pt;">')
//p-document.write('<BR><a href="bionews.html">')
//p-document.write('<IMG SRC="images/archivenewsletter.jpg" BORDER="0" WIDTH="126"></A><BR><BR>')
//end table 1.1
document.write('</form></td></table>')
// END JOIN NEWSLETTER


// HEADER TABLE END
document.write('</TABLE>')


// START TOP MENU TABLE
document.write('<table width="100%" cellpadding="4" cellspacing="4" bgcolor="#2E2E2E" align=center><TR><TD><font face=arial size=2 color=#FFFFCC>')
document.write('<a href="index.html"><font color=#FFFFCC>Home</a>   |   ')
document.write('<a href="disclaimer.html"><font color=#FFFFCC>Disclaimer</a>   |   ')
document.write('<A href="privacy.html"><font color=#FFFFCC>Privacy</A>   |   ')
document.write('<A href="policies.html"><font color=#FFFFCC>Policies</a>  |  ')
document.write('<a href="aboutus.html"><font color=#FFFFCC>About Us</a>  |  ')
document.write('<a href="contacts.html"><font color=#FFFFCC>Contact Us</a>  |  ')
//p-document.write('<A href="http://foodforthoughtseminars.com/index.html" target=new><font color=#FFFFCC>Events</a>  |  ')
document.write('<A href="http://ww11.aitsafe.com/cf/review.cfm?userid=D7144686" target=new><font color=#FFFFCC>View Cart</a>')
document.write(' <td align=right><font face=arial size=2 color=#FFFFCC>Toll free: 1-877-288-9116</td>')
document.write('</TD><td>')
document.write('</td></TR></TABLE>') 
// END TOP MENU TABLE


// START MAIN CONTENT TABLE
document.write('<table width="100%" border="0" bgcolor=white align="center" cellpadding="2" cellspacing="0">')

