#content *,
#footer *,
#feedback fieldset * {
    max-width: 64em;
}
#content {
    padding: 0 5% 2em;
    position: relative;
    clear: both;
    overflow: hidden;
    background-image: url("../images/circle_small.gif");
    background-position: 90% top;
    background-repeat: no-repeat;
    max-width: 1200px;
}
* html #content {
    height: 1%;
}
* html #content a {
    text-decoration: underline;
}
html>body #content a {
    text-decoration: none;
    padding-bottom: 1px;
    border-bottom: 1px solid #cbc;
}
html>body #content a:hover {
    padding-bottom: 0;
    border-bottom: 2px solid #ccc;
}
#content h1 a {
    position: relative;
    text-indent: -9999em;
    display: block;
    width: 275px;
    height: 75px;
    background-image: url("../images/logo.gif");
    background-repeat: no-repeat;
}
html>body #content h1 a {
    padding-bottom: 4px;
    border-bottom: 0;
}
html>body #content h1 a:hover {
    padding-bottom: 0;
    border-bottom: 4px solid #767;
}
#content .promo {
    position: relative;
    width: 250px;
    float: right;
    margin: 150px 0 2em 2em;
    border-bottom: 4px double #dcd;
    border-top: 4px double #dcd;
    line-height: 2;
    font-style: italic;
    font-size: 1.2em;
    font-family: Georgia,"Times New Roman",serif;
    padding: .5em 1em 2em;
    text-align: center;
    background-image: url("../images/leaf.gif");
    background-position: 50% 90%;
    background-repeat: no-repeat;
}
#content .promo cite {
    font-weight: bold;
    font-variant: small-caps;
    font-style: normal;
    letter-spacing: 1px;
    font-size: 1.1em;
}
#content .illustration {
    width: 400px;
    float: right;
    clear: right;
    margin: 1em;
    padding: 1em;
    background-color: #768;
    color: #eee;
    border: 2px solid #657;
}
#content .illustration img {
    display: block;
    margin: auto;
    border: 1px solid #879;
}
#content p+p {
    text-indent: 1em;
}
#footer {
    border-top: 1px solid #435;
    border-bottom: 6px solid #324;
    background: #435 url("../images/footer_gradient.gif") left top repeat-x;
    color: #a9a;
    padding: 1em 5% 2em;
    font-size: 0.9em;
    clear: both;
    overflow: hidden;
}
* html #footer {
    height: 1%;
}
#footer a {
    color: #fdb;
}
#footer a:hover {
    color: #fed;
    text-decoration: underline;
}
#footer h2 {
/*    margin-left: -0.5em;
    text-indent: 0.5em;*/
    border-bottom: 2px solid #657;
}
#footer h2 a,
#footer h3 a {
    color: #cbc;
}
#footer h2 a:hover,
#footer h3 a:hover {
    color: #ede;
    text-decoration: none;
}
#footer .preview img {
    float: right;
    margin: 1em;
}
#footer thead th {
    background-color: #767;
    color: #dcd;
}
#footer tbody th {
    background-color: #656;
    color: #cbc;
}
#footer th,
#footer td {
    border: 1px solid #878;
}
#feedback {
    background: #324;
    color: #bab;
    padding: 1em 5% 2em;
    clear: both;
    overflow: hidden;
}
* html #feedback {
    height: 1%;
}
#feedback fieldset {
    vertical-align: top;
    width: 45%;
    float: left;
}
#feedback fieldset+fieldset {
    float: right;
}
#feedback fieldset input#name,
#feedback fieldset input#email {
    width: 50%;
}
#feedback fieldset input,
#feedback fieldset textarea {
    background-color: #ede;
    color: #323;
    font-family: Verdana,Helvetica,Arial,sans-serif;
}
#feedback fieldset input:focus,
#feedback fieldset textarea:focus {
    background-color: #edf;
}
#feedback fieldset textarea {
    width: 100%;
    height: 12em;
}
#feedback fieldset input[type="submit"] {
    float: right;
}
#feedback fieldset label strong.error {
    color: #fab;
}
#feedback .loading {
    margin: .5em 0;
}
#navigation {
    font-family: "Lucida Grande",Verdana,Geneva,sans-serif;
    position: absolute;
    top: 60px;
    right: 5%;
    margin: 0 0 0 5%;
    padding: 0;
    list-style: none;
    border-left: 1px solid #546;
}
#navigation li {
    display: inline;
    margin: 0;
    padding: 0;
}
#navigation li a {
    display: block;
    float: left;
    margin: 0;
    padding: .5em 1em;
    border: 1px solid #546;
    border-left: 0;
    background: #657;
    color: #ccc;
    font-size: 0.8em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: normal;
}
#navigation li a:hover {
    background: #ccc;
    color: #657;
}
body.toc #navigation .toc a,
body.sample #navigation .sample a,
body.intro #navigation .intro a,
body.code #navigation .code a,
body.errata #navigation .errata a {
    background: #435;
    color: #ccc;
}
body.code #content .chapter {
    margin-bottom: 2em;
}
body.toc #content ol h3+h4 {
    margin: 0 1em;
}
body.intro #content h2+p {
    font-size: 1.2em;
    font-weight: bold;
    line-height: 1.8;
}
body.intro #content h2+p:first-letter {
    font-family: Georgia,"Times New Roman",serif;
    font-size: 2em;
    line-height: 1;
    font-weight: normal;
}