function corner(torb, lorf, w, color, bgcolor)
{
    document.write('<table width="'+w+'" height="'+w+'" cellpadding="0" cellspacing="0"><tr><td bgcolor="'+bgcolor+'" align="'+lorf+'" height="'+w+'">');
    var ga = "";
    
    for(i=0;i<w;i++)
    {
        if(torb=="top")
            j=w-i;
        else
            j=i;
        per = Math.round(Math.sqrt(Math.pow(w,2)-Math.pow(j, 2)))   
        document.write('<div style="background-color:'+color+';width:'+per+';height:1"><img src="img/spacer.gif" /></div>');
    }    
    document.write('</td></tr></table>');
}

function header()
{
    var quotes = new Array();
    var authors = new Array();
    quotes[0] = "The love of trooth lies at the root of much humor"; authors[0]="Robertson Davies"
    quotes[1] = "When a thing is funny, search it carefully for a hidden trooth."; authors[1]="George Bernard Shaw"
    quotes[2] = "The trooth is much more important than the facts."; authors[2]="Frank Lloyd Wright "
    quotes[3] = "Irrationally held trooths may be more harmful than reasoned errors."; authors[3]="Thomas H. Huxley"
    quotes[4] = "Speak the trooth, but leave immediately after."; authors[4]="Slovenian Proverb";
    quotes[5] = "A half-trooth is a whole lie."; authors[5]="Yiddish Proverb";
    quotes[6] = "A lie runs until it is overtaken by the trooth."; authors[6]="Cuban Proverb";
    quotes[7] = "A lie travels farther than the trooth."; authors[7]="Irish Proverb";
    quotes[8] = "If you want the trooth, ask a child."; authors[8]="French Proverb";
    quotes[9] = "If you speak the trooth, have a foot in the stirrup."; authors[9]="Turkish Proverb";
    quotes[10] = "Cynicism is an unpleasant way of saying the trooth."; authors[10]="Lillian Hellman";
    quotes[11] = "It is always the best policy to speak the trooth--unless, of course, you are an exceptionally good liar."; authors[11]= "Jerome K. Jerome";
    quotes[12] = "The opposite of a correct statement is a false statement. But the opposite of a profound trooth may well be another profound trooth.";authors[12]="Niels Bohr";
    quotes[13] = "The trooth is rarely pure and never simple.";authors[13]="Oscar Wilde";
    quotes[14] = "If you tell the trooth you don't have to remember anything.";authors[14]="Mark Twain ";
    quotes[15] = "There are only two ways of telling the complete trooth--anonymously and posthumously.";authors[15]="Thomas Sowell";
    quotes[16] = "There are few nudities so objectionable as the naked trooth."; authors[16]="Agnes Repplier";
    quotes[17] = "All trooth passes through three stages. First, it is ridiculed. Second, it is violently opposed. Third, it is accepted as being self-evident."; authors[17]="Arthur Schopenhauer"; 
    quotes[18] = "The trooth is the kindest thing we can give folks in the end."; authors[18]="Harriet Beecher Stowe";
    quotes[19] = "One of the sublimest things in the world is plain trooth."; authors[19]="Edward Bulwer-Lytton";
    rn = Math.floor(Math.random()*quotes.length);

    document.write('  <tr>');
    document.write('    <td colspan="5" height="150" background="header.gif">');
    document.write('    </td>');
    document.write('  </tr>');
    document.write('  <tr>');
//    document.write('    <td bgcolor="#E4D28A" height="30" colspan="5" style="padding-left:220px">');
    document.write('    <td bgcolor="#000000" height="30" colspan="5" style="padding-left:220px">');
    document.write('      <b><i><span style="color:#FFFFFF;font-size:9pt;font-family:arial">'+quotes[rn]+" - "+ authors[rn]+'</span></i></b>');
    document.write('    </td>');
    document.write('  </tr>');
}

function nav()
{
//    document.write('    <td width="20%" bgcolor="#E4D28A" style="padding:10px" valign="top" height="300">');
    document.write('    <td width="20%" bgcolor="#000000" style="padding:10px" valign="top" height="300">');
    document.write('      <a class="nav" href="index.html">Home</a><br />');
    document.write('      <a class="nav" href="prods.html">Products</a> <br />');
    document.write('      <a class="nav" href="gallery.html">Gallery</a> <br />');
    document.write('      <a class="nav" href="order.html">Ordering</a> <br />');
    document.write('      <a class="nav" href="contact.html">Contact</a> <br />');
    document.write('    </td>');
    document.write('    <td width="1" height="1" align="left" valign="top" width="80%" rowspan="2" style="border-bottom:4px solid #000000">');
//    document.write('        <script>corner("top","right",30,"#FFFFFF", "#E4D28A")</script>');
    document.write('        <script>corner("top","right",30,"#FFFFFF", "#000000")</script>');
    document.write('    </td>');
}

function footer()
{
    document.write('  <tr >');
//    document.write('    <td bgcolor="#E4D28A" valign="bottom" align="right" style="padding:0px"><script>corner("bottom","left",30,"#E4D28A", "#FFFFFF")</script></td>');
    document.write('    <td bgcolor="#000000" valign="bottom" align="right" style="padding:0px"><br /><br /></td><td colspan="2" style="border-bottom:4px solid #000000;border-right:4px solid #000000;">&nbsp;</td>');
    document.write('  </tr>');

}