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="#006400" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><BR>')

document.write('<style type="text/css">')
//document.write('<!--')
document.write('A:link    { color: green;}')
document.write('A:hover   { color: green; text-decoration : underline;}')
document.write('A:active  { color: green;}')
document.write('A:visited { color: green;}')
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

/* 
 * 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

// START TABLE 0
document.write('<table width="870" align="center" cellpadding="0" cellspacing="0" bgcolor="#808080" border="2" bordercolor="#FFFF00">')

// START TABLE 1
document.write('<TR><TD><table width="100%" align="center" cellpadding="0" cellspacing="0" bgcolor="black" valign="center">')
document.write('<TR><TD>&nbsp;</TD><TD>')
document.write('<a href="index.html"><IMG SRC="images/logo.jpg" BORDER="0" WIDTH="288" HEIGHT="88" align="left"></A><BR>')
document.write('<a href="index.html"><IMG SRC="images/title-english.jpg" BORDER="0" WIDTH="454" HEIGHT="50" align="left"></A>')
document.write('</TD></TR>')
document.write('</TABLE></TD></TR>')
// END TABLE 1

// START TOP MENU
document.write('<TR><TD><table width="100%" cellpadding="2" cellspacing="0" bgcolor="#006400" align="center"><TR align="center"><TD>')
document.write('<a href="index.html"><font face="verdana" size="2" color="white">Home</a>   |   ')
document.write('<a href="whatisqigong.html"><font face="verdana" size="2" color="white">What is Qi Gong?</a>   |   ')
document.write('<a href="whatistaichi.html"><font face="verdana" size="2" color="white">What is Tai Chi?</a>   |   ')
document.write('<a href="whatischi.html"><font face="verdana" size="2" color="white">What is Chi?</a>   |   ')
document.write('<A href="historylineage.html"><font face="verdana" size="2" color="white">History &amp; Lineage</a> | ')
document.write('<A href="calendar.html"><font face="verdana" size="2" color="white">Schedule/Fees/Calendar</a>  ')
document.write('</TD></TR></TABLE>')
// END

// START TABLE 2
document.write('<TR><TD><table width="100%" border="1" bordercolor="#FFFF00" align="center" cellpadding="4" cellspacing="3" bgcolor="black"><TR align="center">')

// START COLUMN 1
document.write('<TD WIDTH="168" VALIGN="top" align="center" bgcolor="black">') 
document.write('<FONT color="white" face="arial" size="2">')

// JOIN NEWSLETTER
document.write('<table border=".5pt" bordercolor="black" cellspacing="0">')
document.write('<tr>')
document.write('<td align="center">')
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="1101873282213">')
document.write('<input type="hidden" name="p" value="oi">')
document.write('<FONT face="arial" size="2" color="yellow">Join FREE newsletter:</font><BR>')
document.write('<input type="text" name="ea" size="15" style="font-size:9pt; border:1px solid #CC6600" value=" Enter your email" onFocus="clearText(this)">')
document.write('<input type="submit" name="go" value=">" class="submit" style="font-family:Verdana,Geneva,Arial,Helvetica,sans-serif; font-size:6pt;">')
document.write('</form></td></tr></table>')
document.write('<FONT face="arial" size="2">')
// END JOIN NEWSLETTER

// SIDE MENU -->
document.write('<FONT color="yellow"><BR><BR><B>INFORMATION</B><br><HR>')
document.write('<A href="whatisqigong.html"><FONT color="white"><B>What is Qi Gong?</B></A><HR>')
document.write('<A href="whatistaichi.html"><FONT color="white"><B>What is Tai Chi?</B></A><HR>')
document.write('<A href="whatischi.html"><FONT color="white"><B>What is Chi?</B></A><HR>')
document.write('<A href="historylineage.html"><FONT color="white"><b>History &amp; Lineage</b></A><HR>')
document.write('<A href="benefits.html"><FONT color="white"><b>Benefits</b></A><HR>')
document.write('<A href="brochure.html"><FONT color="white"><b>Brochure</b></A><HR>')
document.write('<A href="contactus.html"><FONT color="white"><b>Contact Us / Map</b></A><HR>')
document.write('<FONT color="yellow"><br><B>PERSONAL QI GONG</B><HR>')
document.write('<A href="calendar.html"><FONT color="white"><b>Class Schedule</b></A><HR>')
document.write('<A href="certification.html"><FONT color="white"><B>Certification</b></A><HR>')
document.write('<A href="directory.html"><FONT color="white"><b>Certified Instructors</b></A><HR>')
document.write('<A href="taichiplayers.html"><FONT color="white"><b>Tai Chi Players</b></A><HR>')
document.write('<FONT color="yellow"><br><B>BUSINESS QI GONG</B><br><HR>')
document.write('<A href="businessqigong.html"><FONT color="white"><B>Business Qi Gong</b></A><HR>')
document.write('<A href="medicalfaculty.html"><FONT color="white"><b>Medical Faculty</b></A><HR>')
document.write('<A href="calendar.html"><FONT color="white"><B>Events Calendar</B></A><HR>')
document.write('<FONT color="yellow"><br>&nbsp;<br><HR>')
document.write('<A href="picturesvideo.html"><FONT color="white"><b>Pictures &amp; Videos</b></A><HR>')
document.write('<A href="resources.html"><FONT color="white"><b>Resources</b></A><HR>')
document.write('<A href="chifood.html"><FONT color="white"><B>Chi Food</b><br><HR></A>')
document.write('<A href="articles.html"><FONT color="white"><b>Articles</b></A><HR>')
document.write('<A href="testimonials.html"><FONT color="white"><b>Testimonials</b></A><HR>')
document.write('<A href="links.html"><FONT color="white"><b>Links</b></A><HR><BR><BR>')
// END MENU -->

document.write('<img src="images/Qi_Gong_Chinese_Character.jpg" valign="bottom" border="0"><BR></TD>')
document.write('<TD VALIGN="top" border="0"></TD>')
document.write('<TD VALIGN="top" bgcolor="white"><P align="center">')
document.write('<font color="white" face="Verdana" size="1">')
// START MAIN
