var root='http://www.e-Speaking.com/'
var MainTextBoxWidth  ='100%';
var InnerTextBoxWidth =600;
var InnerTextBoxWidth ='90%';
var FooterTextBoxWidth='90%';

function beginBody(imgName) {
  BeginFrameWithLogo(imgName);
  BeginMenu(); 
  BeginBodyCell(imgName);
}
function BeginFrameWithLogo(thisPageIs) {
  document.writeln('<table border=0 width="100%" cellpadding=0 cellspacing=0 ><tr>')
  document.writeln('<td rowspan=2><table border=0 cellpadding=0 cellspacing=0 ><tr><td valign="center" background="http://www.e-speaking.com/images/BackLeftCorner.png"><img src="http://www.e-speaking.com/images/spacer.gif" height=210 width=2 align=left><a href='+root+'>')
  ShowLogo();
  document.writeln('</a></td></tr></table></td>')
  document.write('<td height=40><img border=0 src="http://www.e-speaking.com/images/spacer.gif" height=60 width=2 align=left></td>')
  document.writeln('</tr><tr>')
}
function ShowAngledBox(LeftPos, MaxWidth, CornerPre, CornerPost, ULC, URC, LRC, LLC, BorderColor, BorderWidth, BoxBodyStyle, html) {
  if(LeftPos>0) {  document.writeln('<div style="position: absolute; left:'+LeftPos+'px;">'); }
  document.writeln('<table '+((MaxWidth>0)?'WIDTH='+MaxWidth:'')+' cellpadding=0 cellspacing=0 style="border-collapse:collapse;"><tr>')
  document.writeln('<td '+((ULC==false)?'style="border-top:'+BorderWidth+'px solid '+BorderColor+'; border-left:'+BorderWidth+'px solid '+BorderColor+';"':'')+'>'+((ULC==true)?'<img src=./images/'+CornerPre+'ulc'+CornerPost+'.gif border=0>':'')+'</td>')
  document.writeln('<td style="border-top:'+BorderWidth+'px solid '+BorderColor+';"></td>')
  document.writeln('<td '+((URC==false)?'style="border-top:'+BorderWidth+'px solid '+BorderColor+'; border-right:'+BorderWidth+'px solid '+BorderColor+';"':'')+'>'+((URC==true)?'<img src=./images/'+CornerPre+'urc'+CornerPost+'.gif border=0>':'')+'</td>')
  document.writeln('<tr><td style="border-left:'+BorderWidth+'px solid '+BorderColor+';"></td>')
  document.writeln('<td '+BoxBodyStyle+'>'+html+'</td>')
  document.writeln('<td style="background-color:#ffffff; border-right:'+BorderWidth+'px solid '+BorderColor+';"></td></tr>')
  document.writeln('<tr><td '+((LLC==false)?'style="border-bottom:'+BorderWidth+'px solid '+BorderColor+'; border-left:'+BorderWidth+'px solid '+BorderColor+';"':'')+'>'+((LLC==true)?'<img src=./images/'+CornerPre+'llc'+CornerPost+'.gif border=0>':'')+'</td>')
  document.writeln('<td style="border-bottom:'+BorderWidth+'px solid '+BorderColor+';"></td>')
  document.writeln('<td '+((LRC==false)?'style="border-bottom:'+BorderWidth+'px solid '+BorderColor+'; border-right:'+BorderWidth+'px solid '+BorderColor+';"':'')+'>'+((LRC==true)?'<img src=./images/'+CornerPre+'lrc'+CornerPost+'.gif border=0>':'')+'</td></tr>')
  document.writeln('</table>')
  if(LeftPos>0) {  document.writeln('</div>'); }
}
function BeginMenu() {
  //document.writeln('<TR>
  document.writeln('<TD align=left><img border=0 src="http://www.e-speaking.com/images/spacer.gif" height=86 width=2 align=left>')
  document.writeln('<table border=0 bordercolor="#000000" width="100%" cellpadding=0 cellspacing=0 height=30><tr><td>')
  document.writeln('<table border=0 cellpadding=0 cellspacing=0 height=30><tr>')
  document.writeln('<td width=20 height=30></td><td><a href='+root+'index.htm CLASS=menu>Home<b></b></a>')
  document.writeln('<td width=20 height=30></td><td><a href='+root+'demos.htm CLASS=menu>Demos/Videos<b></b></a>')
  document.writeln('<td width=20 height=30></td><td><a href='+root+'download.htm CLASS=menu>Download<b></b></a>')
  document.writeln('<td width=20 height=30></td><td><a href='+root+'pricing.htm CLASS=menu>Pricing<b></b></a>')
  document.writeln('<td width=20 height=30></td><td><a href='+root+'support.htm CLASS=menu>Support<b></b></a>')
  document.writeln('<td width=20 height=30></td><td><a href='+root+'contact.htm CLASS=menu>Contact<b></b></a>')
  document.writeln('<td width=20></td><td width=1 height=30></td>')
  document.writeln('<td width=100></td>')
  document.writeln('</tr></table>')
  document.writeln('</td></tr></table>')
  document.writeln('</td></tr>')
}
function BeginBodyCell(imgName) {
  document.writeln('<tr><td valign=top colspan=2>')
  document.writeln('<table border=0 cellpadding=5 width=100%><tr>')
  document.writeln('<td valign=top width="10"><SPAN Style="font: normal 18pt impact, arial black;" >'+imgName+'</SPAN>')
  document.writeln('<br></td>')
  document.writeln('<td valign=top>')
  document.writeln('<SPAN style="background-color:#ffffff; POSITION: relative; TOP: 0; left:10; width:'+InnerTextBoxWidth+'; font-family:verdana; color:black; font-size: 11pt; font-weight: normal; padding:40px; border:1px solid black; z-index: 5; filter:progid:DXImageTransform.Microsoft.Gradient(endColorstr=\'#00ffffff\', startColorstr=\'#FF66CCFF\', gradientType=\'1\');">');
}
function ShowQuoter() {
  document.writeln('<table border="0" cellpadding="0" cellspacing="0" align="center" width="160">')
  document.writeln('  <tr bgcolor="#666699">')
  document.writeln('    <td width="23">')
  document.writeln('<div align="right"><img src="/images/quote_left.gif" width="23" height="23" alt=""></div>')
  document.writeln('    </td>')
  document.writeln('    <td width="114">&nbsp;</td>')
  document.writeln('    <td width="23"><img src="/images/quote_right.gif" width="23" height="23" alt=""></td>')
  document.writeln('  </tr>')
  document.writeln('  <tr bgcolor="#666699">')
  document.writeln('    <td width="23">&nbsp;</td>')
  document.writeln('    <td width="114">')
  document.writeln('  <div class="quotetext"><span class="tiplink">')
  document.writeln('  <script language="JavaScript" type="text/javascript" src="/css/quotes.js"></script></span>')
  document.writeln('</div>')
  document.writeln('    </td>')
  document.writeln('    <td width="23">&nbsp;</td>')
  document.writeln('  </tr>')
  document.writeln('  <tr bgcolor="#666699">')
  document.writeln('    <td width="23"><img src="/images/quote_left2.gif" width="23" height="23" alt=""></td>')
  document.writeln('    <td width="114">&nbsp;</td>')
  document.writeln('    <td width="23"><img src="/images/quote_right2.gif" width="23" height="23" alt=""></td>')
  document.writeln('  </tr>')
  document.writeln('  <tr>')
  document.writeln('    <td width="23">&nbsp;</td>')
  document.writeln('    <td width="114">')
  document.writeln('<table width="24" border="0" align="left">')
  document.writeln('  <tr>')
  document.writeln('    <td>&nbsp;</td>')
  document.writeln('  </tr>')
  document.writeln('</table>')
  document.writeln('<img src="/images/quote_callout.gif" width="13" height="27" align="left" alt="">')
  document.writeln('    </td>')
  document.writeln('    <td width="23">&nbsp;</td>')
  document.writeln('  </tr>')
  document.writeln('</table>')
}

function footer(ShowVoiceLink) { 
  document.writeln('</span><br><br><br>')
  if( ShowVoiceLink == 1 ) { 
    document.writeln('<div align="center" class="copyright">Voice on this page: <a href=voices.htm>Kate16</a></div><br><br>')
  }





  document.writeln('<SPAN style="background-color:#EE8800; POSITION: relative; TOP: 20; left:10; width:'+FooterTextBoxWidth+'; font-family:verdana; color:black; font-size: 11pt; font-weight: normal; padding:10px; border:1px solid black; z-index: 5; filter:progid:DXImageTransform.Microsoft.Gradient(endColorstr=\'#FFFFFFCC\', startColorstr=\'#00EE8800\', gradientType=\'1\');">');

  document.writeln('<table width='+(MainTextBoxWidth)+'><tr><td height=2 bgcolor=#000000></td></tr>')
  document.writeln('<tr><td bgcolor=#FFFFCC>')
  document.writeln('<div align="center" class="copyright">e-Speaking is a trademark or registered trademark of e-Speaking.com. in the United States and/or other countries. All other trademarks or registered trademarks are the property of their respective owners.<P></div>')
  document.writeln('</td></tr>')
  document.writeln('<tr><td><center>Need more information? Email: <a href="mail'+'to:info'+String.fromCharCode(64)+'e-Speaking.com">info'+String.fromCharCode(64)+'e-Speaking.com</a>.<BR>')
  document.writeln('<BR>&copy; Copyright 2009, e-Speaking.com<br>')
  document.writeln('</center><BR>')
  document.writeln('</TD></TR>')
  document.writeln('<tr><td valign=top align=center>')
  document.writeln('Web: <a href="http://www.e-Speaking.com">www.e-Speaking.com</a> &nbsp;&nbsp;&nbsp;')
  document.writeln('Phone: 412.371.9395 &nbsp;&nbsp;&nbsp;')
  document.writeln('</td></tr>')
  document.writeln('<tr><td height=2 bgcolor=#000000 colspan=5></td></tr>')
  //document.writeln('<tr><td height=20 bgcolor=#FFFFCC colspan=5></td></tr>')
  document.writeln('</table>')
  document.writeln('</span><br><br><br>')

  document.writeln('<br></td></tr></table>')
  document.writeln('</td></tr></table>')

  return;

  document.writeln('<p class="copyright"><a href="/legalnotices.htm">Legal Notices</a> | <a href="/privacy.htm">Privacy Policy</a>')
  document.writeln('<br><a href="/sitemap.htm">Site Map</a> | <a href="/purchase/refund_policy.htm">Refund Policy</a><br>')
  document.writeln('Copyright &copy; 2004 e-Speaking<br>All rights reserved.')
  document.writeln('<br>Send comments to:<br><a href="mail'+'to:'+'info'+String.fromCharCode(64)+'e-Speaking.com">'+'info'+String.fromCharCode(64)+'e-Speaking.com</a></p>')


}
function GetWidth() { return 150; }
function ShowLogo() {
  var MyWidth;
  MyWidth=GetWidth();
  document.writeln('<font color=#ffffff size=5>e-Speaking.com</font><br><br>')
  return;
  document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" ')
  document.writeln('  id="flashfile"')
  document.writeln('  width='+MyWidth+' height="50">')
  document.writeln('    <param name=movie value="'+root+'/images/e-Speaking.swf">')
  document.writeln('    <param name=quality value=high>')
  document.writeln('    <param NAME="wmode" Value="Transparent">')
  document.writeln('<PARAM NAME="LOOP" VALUE="true">')
  document.writeln('    <embed src="'+root+'/images/e-Speaking.swf" ')
  document.writeln('      NAME="flashfile"')
  document.writeln('      quality=high ')
  document.writeln('      loop=true')
  document.writeln('      swLiveConnect="true"')
  document.writeln('      pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" ')
  document.writeln('      type="application/x-shockwave-flash" ')
  document.writeln('      width='+MyWidth+' height="50" bgcolor=#cccccc>')
  document.writeln('    </embed> ')
  document.writeln('</object>')
  return;
}
function ImRoot() {
  if(InSubDir==1) return "../images/";
  if(InSubDir==2) return ImagePath;
  return "./images/";
}

