//=============================
function createBanner() {
   document.write('<div id="Banner" style="background:#3399ff">');
   document.write('  <table >');
   document.write('  <tr><td>');
   document.write('  <img src="Logo11.bmp", border="0" width="120" height="120"/>');
   document.write('  </td><td style="width:100%">');
   document.write('   <form style="background:#3399ff">');
   document.write('      <font face="Comic Sans MS" color="white" size="5" style="align:left"> ');
   document.write('      <center>Encopresis Treatment Center</center>');
   document.write('      </font><br/>');
   document.write('      <font face="Comic Sans MS" color="white" size="3" style="align:left">');
   document.write('      <center>611 Main Street, Suite A * Edmonds, WA 98020<br/>');
   document.write('      Phone: (425) 640 3227 * Fax: (425) 640 3478</center>');
   document.write('      </font>');
   document.write('   </form>');
   document.write('  </td></tr>');
   document.write('  </table>');
   document.write('</div>');
   document.write(' <div id="MenuBar" style="background:orange"> ');  
   document.write('   <input type="button" class="menubutton" value="&nbsp;&nbsp;Home &nbsp;&nbsp;" onclick="recreateHome();"/>');
   document.write('   <input type="button" class="menubutton" value="Contact Us" onclick="createContact();" />');
   document.write('   <input type="button" class="menubutton" value="&nbsp;&nbsp;&nbsp;&nbsp;Info &nbsp;&nbsp;&nbsp;&nbsp;"');
   document.write('   onclick="showInfo();"/>');
   document.write('   <input type="button" class="menubutton" value="&nbsp;&nbsp;&nbsp;Staff &nbsp;&nbsp;&nbsp;" onclick="showStaff();" />');
   document.write(' </div>');
}
//=============================
function recreateHome() {
   var iStrg = homeButtons();
   var oStrg = introText();

   document.getElementById('buttonForm').innerHTML = iStrg;
   document.getElementById('contentArea').innerHTML = oStrg;
   document.getElementById('bottomArea').innerHTML = "";
}
//===============================
function homeButtons() {
   var oStrg = String('');
   oStrg = oStrg.concat('<input type="button" class="homebutton" value="Introduction" onclick="recreateHome();"/><br/>');
  
   oStrg = oStrg.concat('<input type="button" class="homebutton" value="Location Map" onclick="openMap();"/><br/>');
   oStrg = oStrg.concat('<input type="button" class="homebutton" value="Driving Instructions" onclick="drivingInstr();"/><br/>');
   oStrg = oStrg.concat('<input type="button" class="homebutton" value="Bowel Charts" onclick="bowelCharts();"/><br/>');
   oStrg = oStrg.concat('<input type="button" class="homebutton" value="Bladder Charts" onclick="bladderCharts();"/><br/>');
   oStrg = oStrg.concat('<input type="button" class="homebutton" value="Event Calender" onclick="eventCalendar();"/><br/>');
  
   return(oStrg); 
}
//=============================
function createContact() {
   contactButtons();
   showContact();
}
//=============================
function showInfo() {
   infoButtons();
   protocolText();
}
//=============================
function showStaff() {
   NancyPicture();
   NancyText();
}
//=============================
function createHome() {
   var iStrg = homeButtons();
   var oStrg = introText();

   document.write('<div id="Content" style="background:#ccffff">');
   document.write('   <table cellpadding="5" cellspacing="0">');
   document.write('   <tr><td bgcolor="#ccffff" valign="top">');
   document.write('   <form id="buttonForm">');
   document.write(iStrg);
   document.write('   </form>');
   document.write('   </td>');

   document.write('     <td bgcolor="#ffffff">');
   document.write('     <div id="contentArea">');
   document.write(oStrg);
   document.write('     </div>');

   document.write('     <div id="ImageEnlarge" style="">');
   document.write('     </div>');
   document.write('     </td>');
   document.write('     </tr>');

   document.write('     <tr><td colspan="2" bgcolor="#ffffff">');
   document.write('     <div id="bottomArea">');
   document.write('     </div>');
   document.write('     </td>');
   document.write('     </tr>');
   document.write('   </table>');
   document.write('</div>');

}

