body {
    font-family: verdana, arial, sans-serif;
}

/* #### MAIN CONTENT MARKUP #### */
#main {
    font-family: verdana, arial, sans-serif;
    max-width: 1200px;
    padding-left: 10px;
}
 

#main h1 {
    font-size: 140%;
    /*padding-left: 10px;*/
}
#main h2 {
    font-size: 120%;
    /*padding-left: 10px;*/
}
#main a {
    text-decoration: none;
}
#main p {
    font-size: 100%;
    max-width: 800px;
    /*padding-left: 15px;*/
    /* Ugly hack for IE */
    width:expression(document.body.clientWidth > 800? "800px": "auto" );
}
#main ul {
    max-width: 800px;
     /* Ugly hack for IE */
    width:expression(document.body.clientWidth > 800? "800px": "auto" );
}

#main ol {
    max-width: 800px;
     /* Ugly hack for IE */
    width:expression(document.body.clientWidth > 800? "800px": "auto" );
}

/*
#main p:first-letter
{
    font-size: 130%;
} 
*/

#main p.cit:first-letter
{
    font-size: 100%;
}

#main p.cit
{
    padding-left: 20px;
}

#main p.caption
{
    font-size: 100%;
    /*width: 240px;*/
}

#main p.caption: first-letter
{
    font-size: 100%;
}


/* #### NAVIGATION #### */
#nav ul {
    padding: 3px 0;
    margin-left: 0;
    border-bottom: 1px solid;
}
#nav ul li {
    /*float: left;*/
    list-style: none;
    margin: 0;
    display: inline;
}
#nav ul li a
{
    padding: 3px 0.5em;
    margin-left: 3px;
    border: 1px solid #778;
    border-bottom: none;
    background: #dde;
    text-decoration: none;
}
#nav ul li a:link {
    color: #339;
}
#nav ul li a:visited {
    color: #339;
}
#nav ul li a:link:hover, #nav ul li a:visited:hover {
    color: #000;
    background: #aae;
    border-color: #227
}
#nav ul li a#current {
    background: white;
    border-bottom-color: white;
    border-bottom: 1px solid white;
}

/* #### NAV SUBMENU #### */
#nav ul {
    padding: 3px 0;
    margin-left: 0;
    border-bottom: 1px solid;
}
#nav ul li {
    /*float: left;*/
    list-style: none;
    margin: 0;
    display: inline;
}
#nav ul li a
{
    padding: 3px 0.5em;
    margin-left: 3px;
    border: 1px solid #778;
    border-bottom: none;
    background: #dde;
    text-decoration: none;
}
#nav ul li a:link {
    color: #339;
}
#nav ul li a:visited {
    color: #339;
}
#nav ul li a:link:hover, #nav ul li a:visited:hover {
    color: #000;
    background: #aae;
    border-color: #227
}
#nav ul li a#current {
    background: white;
    border-bottom-color: white;
    border-bottom: 1px solid white;
}

/* #### FLOATS AND FIGURES */

.leftfloat {
    float: left;
}
.rightfloat {
    float: right;
}
.nobullet{
    list-style-type: none;
}


div.figure {
  float: right;
  clear: right;
  width: 240px;
  /*width: 30%;*/
  /*max-width: 100%;*/
  height: auto;
  /*border: thin silver solid;*/
  margin: 0.5em;
  padding: 0.5em;
  overflow: auto;
}
div.figure p {
  text-align: left;
  font-style: italic;
  font-size: 100%;
  /*width:expression(document.body.clientWidth > 240? "240px": "auto" );*/
  text-indent: 0;
  width: 240px;
}
div.figure p:first-letter {
    font-size: 90%;
}

div.figure img {
    width: 240px;
  /* Ugly hack for IE
    width:expression(document.body.clientWidth > 240? "240px": "auto" );*/
    max-width: 240px;
}

div.figurec {
  float: center;
  width: 80%;
  max-width: 640px;
  /* Ugly hack for IE
  width:expression(document.body.clientWidth > 640? "640px": "auto" ); */
  /*border: thin silver solid;*/
  margin: 0.5em;
  padding: 0.5em;
}
div.figurec p {
  text-align: left;
  font-style: italic;
  font-size: 100%;
  text-indent: 0;
}

div.figurec img {
  width: 640px;
}

/* #### SUMMARY POP-OUT #### */
div.sum {
    border: medium solid black;
    background: #eff;
    margin: 2em;
    padding: 1em;
    font-style: italic;
    max-width: 700px;
}

/*
div.sum p {
    margin: 0em;
    padding: 0em;
    font-size: 100%;
}

div.sum p:first-letter {
    font-size: 100%;
}
*/

/* img.scaled { */
/*   width: 100%; */
/* } */


/* #### TABLES #### */

table {
    border-collapse: collapse;
    margin: 20px;
}

th {
    text-decoration: bold;
/*    text-align: center; */
    padding: 2px;
    padding-right: 25px;
}

th em {
    text-decoration: underline;
}

td {
    padding: 8px;
/*    text-align: center; */
}

/* #### SUBSCRIPT #### */
sub {
    font-size: 70%;
}


/* #### PRINTING #### */
#print {
    display: none;
}


@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    /*a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }*/

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 2cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
/* Tweaks by Mikael below */

    #nav {
	display: none;
    }
    #logos {
	display: none;
    }
    #youtube {
	display: none;
    }
    #print {
	display: inline;
}
    

}

