/*
** This is for my new site template njc - 2007/01/22
*/

/*
** This still doesn't complete work well with IE6
*/
/* =[ IE-isms ]============================================================ */

    /*
    ** html, body .header and .rest work fine with IE when a comment
    ** os left on the first line otherwise it fails!
    */
			/* */
    * html div.rest{	/* */
	height:100%;	/* */
	overflow:auto;	/* */
    }			/* */
    * html body{	/* */
	overflow:hidden;/* */
    }			/* */

/* ======================================================================== */

    /*
    ** These work fine for Firefox
    */
    html {
	height:100%; 
	max-height:100%; 
	padding:0; 
	margin:0; 
	border:0; 
	background:#FFCC99; 
	/* font-family:georgia, palatino linotype, times new roman, serif; */
	/* hide overflow:hidden from IE5/Mac */ 
	/* \*/ 
	overflow: hidden; 
	/* */ 
    }

    body {
    }

    /*
    ** Background image for the nav line
    */
    .bg_image {
	width: 100%;
	height: 100%;
	left: 0px;
	top: 0px;
	position: absolute;
	z-index: 0;
    }

    /*
    ** Add header section
    */
    .header {
	padding:0em; /* NEW */
    }

    .p16 {
        line-height: .8; /* Why did I do this? 80% */
        font-size: 24pt;
        font-weight: bold;
        margin-top: 0px;
        margin-bottom: 0px;
        padding-bottom: 0px;
    }

    /*
    ** I put the image here, stretched to fill
    */
    .back {
	position:absolute;
	border:0;
	margin:0;
	top:0;/* */
	left:0;
	display:block;
	width:100%;
	height:2em; /* */
	color: black;
	background-color: #FFCC99; /* */
	z-index:5; /* */
    }

    /*
    ** This is where I'll add the sitenav 'stuff'
    */
    .head {
	position:absolute;
	border:0;
	margin:0;
	top:0;/* */
	left:0;
	display:block;
	width:100%;
	height:2em; /* */
	color: black;
	z-index:6; /* */
    }

    /*
    ** Everything else, such as the real content
    */
    .rest {
	clear: both;
	position:absolute;
	left:0;
	top:2.1em; /* */
	bottom:0em; /* */
	width:100%;
	font-size:1em;
	z-index:4; /* */
	overflow:auto; /* */
/*	border: 1px solid #FFCC99; /* */
	background-color: #FFCC99; /* */
	border-bottom: black groove; /* */
    }

    /*
    ** I hope this fixes the scroll bar problem
    */
    .main {
	position: relative; /* new */
	padding: 1em;       /* old */
	padding-top: 0;     /* new */
    }
 
/* =[ Header left and right ]============================================== */

.hleft {
        border-style: none;
	width: 300px;
	float: left;
	text-align: center;

	display: block;
	margin-top: 2em;
}

.hright {
	padding: 10px;
	margin-left: 310px;
	clear: right;
/*	z-index: -1; /* */
}


/* ======================================================================== */

/*
** Google leader board
*/
 .leaderboard {
	display: block;
	clear: both;
	width: 728px;
	margin-left: auto;
	margin-right: auto;
}

.google {
	border:none;
	text-decoration: none;    /* border= "0" originally in the HTML tag */
}

/* =[ Sitenav ]============================================================ */

.sitenav ul {
	padding: 3px 0; 
	margin-left: 0; 
	border-bottom: 1px solid black; 
	font: bold 12px Verdana, sans-serif; 
	color: black;
	z-index:6; /* */
}

.sitenav ul li {
	list-style: none; 
	margin: 0; 
	display: inline; 
}

.sitenav ul li a {
	padding: 3px 0.5em; 
	margin-left: 3px; 
	border-bottom: 1px solid black; 
	border-bottom: none; 
/*	background: #ccf;  /* */
	text-decoration: none; 
}

.sitenav ul li a:link { 
	color: black;
} 

.sitenav ul li a:visited { 
	color: #000066;
} 

.sitenav ul li a:link:hover, .sitenav ul li a:visited:hover {
	color: red; /* */
}

.sitenav ul li a.current {
	color: maroon;
	border: 1px solid black;
	border-bottom: 1px solid #FFCC66;
}

/*
** This handles when the 'current' tab is hovered over
*/
.sitenav ul li a:hover.current {
	color: maroon;
	background-color: yellow; /* */
	border: 1px solid black;
	border-bottom: 1px solid #FFCC99;
}

.sitenav ul li a.other {
}

/*
** This handles when the 'other' tab is hovered over
*/
.sitenav ul li a:hover.other {
}

/* ============================================================================ */
/* NJC */
/* ============================================================================ */

.sitenav ul { /* */
        position:relative; /* */
        text-align:left; /* */
/*      margin:0; padding:0; /* */
        list-style-type:none; /* */
}

.sitenav ul li { /* */
        position:relative; /* */
} /* */

/*
** Hidden
*/

.sitenav ul li ul { /* */
        visibility:hidden; /* */
        position:absolute; /* */
        top:1.25em; /* */
        left:0; /* */
        height:0;
        overflow:hidden;
}

.sitenav ul table {
        margin:-1px;
        border-collapse:collapse;
        font-size:1em; /* font size for IE5.5 */
}

/* **********
** Hover
*/

/* first line style for IE7 and non-IE browsers and the second line for IE5.5 and IE6 */
div.sitenav ul li:hover a,
.sitenav ul li:hover a,
.sitenav ul li a:hover {
        text-decoration:underline;
        border:0;
}

div.sitenav ul li:hover ul,
.sitenav ul li:hover ul,
.sitenav ul li a:hover ul {
        visibility:visible;
        height:auto;
        width:10em;
        background-color:#FFCC99;
        background-color:#FFCCAA;
        border:1px solid black;
        left:0;
        top: 1.25em;
        overflow:visible;
}

div.sitenav ul li:hover ul li a,
.sitenav ul li:hover ul li a,
.sitenav ul li a:hover ul li a {
        display:block;
        font-weight:normal;
        background-color:#FFCC99; /* */
        background-color:#FFCCAA; /* */
        text-decoration:none; /* */
        height:auto;
/*      line-height:1.5em; /* */
        padding:0.5em;
        width:9em;
}


* html .sitenav ul li a:hover ul li a {
        width:10em;
        w\idth:9em; /* hack for IE5.5 */
}

.sitenav ul li:hover ul li a.drop,
.sitenav ul li a:hover ul li a.drop {
        font-weight:bold;
}

/*
** Hidden
*/
.sitenav ul li:hover ul li ul,
.sitenav ul li a:hover ul li a ul {
        visibility:hidden;
        position:absolute;
        top:0;
        left:9.5em;
        height:0;
        overflow:hidden;
}

.sitenav ul li:hover ul li a:hover,
.sitenav ul li a:hover ul li a:hover {
        text-decoration:underline;
}

div.sitenav ul li:hover ul li:hover ul,
.sitenav ul li:hover ul li:hover ul,
.sitenav ul li a:hover ul li a:hover ul {
        visibility:visible;
        color:#000;
        border:1px solid black;
        height:auto;
        background:#FFCC99;
        background:#FFCCAA;
        width:9.5em;
} 

.sitenav ul li:hover ul li:hover ul.left,
.sitenav ul li a:hover ul li a:hover ul.left {
        left:-9.3em;
}

.sitenav ul li:hover ul li:hover ul li a,
.sitenav ul li a:hover ul li a:hover ul li a {
        display:block;
        height:auto;
}

.sitenav ul li:hover ul li:hover ul li:hover a,
.sitenav ul li a:hover ul li a:hover ul li a:hover {
        text-decoration:underline;
}

.red {
  color: #FF0000;
}
.green {
  color: #00FF00;
}
.blue {
  color: #0000FF;
}
.italic { font-style: italic; }
.bold { font-weight: bold; }

/*
** This displays a grey link, use it for links that are not
** quite built. It will give the impression that the link is
** not there.
*/
.missing { font-weight: 100; color: #909090; text-decoration: none; }

/* ======================================================================== */
/* My book format */

/*
** a { text-decoration: none; color: #6666FF; }
*/

span.center { text-align: center; }
span.underline {text-decoration: underline }
span.ftsmaller { font-size: smaller; }
span.alignleft { text-align: left }
span.aligncenter { text-align: center; }
span.plus { font-weight: bold; }
span.bold { font-size: larger; font-weight: bold; }

.thanks { font-weight: bold; font-style: italic; }

/* same as code */
.code  { font: 12pt Courier, monospace; }
.fixed { font: 12pt Courier, monospace; }

/*
** This is for links that are missing,
**  missing is grey,
**  missing_lt is white, and
**  missing_dk is black
*/
.missing_lt { font-weight: 100;	background: inherit; color: #FFFFFF; text-decoration: none; }
.missing    { font-weight: 100;	background: inherit; color: #C0C0C0; text-decoration: none; }
.missing_dk { font-weight: 100;	background: inherit; color: #000000; text-decoration: none; }

/* vertical alignment examples */
.sub {vertical-align: sub;}
.super {vertical-align: super;}

.italic { font-style: italic; }
.bold { font-weight: bold; }

/* text alignment properties */
.right {text-align: right;}
.left {text-align: left;}
.justify {text-align: justify;}
.center {text-align: center;}

/* text transformation properties */
.uppercase {text-transform: uppercase;}
.lowercase {text-transform: lowercase;}
.capitalize {text-transform: capitalize;}

/* text-decoration properties */
.underline {text-decoration: underline;}
.blink {text-decoration: blink;}
.line-through {text-decoration: line-through;}
.overline {text-decoration: overline;}

/* white space control */
.normal {white-space: normal;}
.pre {white-space: pre;}
.nowrap {white-space: nowrap;}

.backwards {
        unicode-bidi:   bidi-override;
        direction:      rtl;
}

/* Color */
#tan {
	background: inherit;
        margin: 12px 12px 12px 12px;
        padding: 12px 0px 12px 12px; /* Note 0px padding right */
	color: #FAEBD7;
}

#brown{
	background: #A06575;
	color: black;
}

.brown{
	background: #A06575;
	color: black;
}

/* ------------------------------------------------------------------------ */
  #invisible {
    display: none; 
  }

  #hide  {
    display: none;
  }


/* ------------------------------------------------------------------------ */

/*
** My experiments in CSS to create chapters and sub chapters
*/
div.book {
 counter-reset: lvl1 0 lvl2 0 lvl3 0;
}

.lvl1 {
    margin-left:  +2em; /* */
    margin-right: 1em; /* */
    font-weight: normal; /* */
}

.lvl2 {
    margin-left:  +4em; /* */
    margin-right: 1em; /* */
    font-weight: normal; /* */
}

.lvl3 {
    margin-left:  +6em; /* */
    margin-right: 1em; /* */
    font-weight: normal; /* */
}

/* *************************************************************************** */

h6.lvl1:before {
    content: counter(lvl1) ". ";
    counter-increment: lvl1;  /* Add 1 to chapter */
    counter-reset: lvl2;      /* Set section to 0 */
}

h6.lvl1 {
    margin-left: +1em; /* */
    font-size:   100%;
    font-weight: bold;
    display:     inline;
}

h6.lvl1:after {
}

h6.lvl2:before {
    content: counter(lvl1) "." counter(lvl2) " ";
    counter-increment: lvl2;
    counter-reset: lvl3;      /* Set section to 0 */
}

h6.lvl2 {
    margin-left: +3em; /* */
    font-size:   100%;
    font-weight: bold;
    display:     inline;
}

h6.lvl2:after {
    margin-left:  +5em; /* */
}

h6.lvl3:before {
    content: counter(lvl1) "." counter(lvl2) "."  counter(lvl2) " ";
    counter-increment: lvl3;
}

h6.lvl3 {
    margin-left: +5em; /* */
    font-size:   100%;
    font-weight: bold;
    display:     inline;
}

h6.lvl3:after {
}

/* *************************************************************************** */

h5.lvl1:before {
    content: counter(lvl1) ". ";
    counter-increment: lvl1;  /* Add 1 to chapter */
    counter-reset: lvl2;      /* Set section to 0 */
}

h5.lvl1 {
    margin-left: +1em; /* */
    font-size:   100%;
    font-weight: bold;
    display:     inline;
}

h5.lvl1:after {
}

h5.lvl2:before {
    content: counter(lvl1) "." counter(lvl2) " ";
    counter-increment: lvl2;
    counter-reset: lvl3;      /* Set section to 0 */
}

h5.lvl2 {
    margin-left: +3em; /* */
    font-size:   100%;
    font-weight: bold;
    display:     inline;
}

h5.lvl2:after {
    margin-left:  +5em; /* */
}

h5.lvl3:before {
    content: counter(lvl1) "." counter(lvl2) "."  counter(lvl2) " ";
    counter-increment: lvl3;
}

h5.lvl3 {
    margin-left: +5em; /* */
    font-size:   100%;
    font-weight: bold;
    display:     inline;
}

h5.lvl3:after {
}

/* *************************************************************************** */

h4.lvl1:before {
    content: counter(lvl1) ". ";
    counter-increment: lvl1;  /* Add 1 to chapter */
    counter-reset: lvl2;      /* Set section to 0 */
}

h4.lvl1 {
    margin-left: +1em; /* */
    font-size:   100%;
    font-weight: bold;
    display:     inline;
}

h4.lvl1:after {
}

h4.lvl2:before {
    content: counter(lvl1) "." counter(lvl2) " ";
    counter-increment: lvl2;
    counter-reset: lvl3;      /* Set section to 0 */
}

h4.lvl2 {
    margin-left: +3em; /* */
    font-size:   100%;
    font-weight: bold;
    display:     inline;
}

h4.lvl2:after {
    margin-left:  +5em; /* */
}

h4.lvl3:before {
    content: counter(lvl1) "." counter(lvl2) "."  counter(lvl2) " ";
    counter-increment: lvl3;
}

h4.lvl3 {
    margin-left: +5em; /* */
    font-size:   100%;
    font-weight: bold;
    display:     inline;
}

h4.lvl3:after {
}

/* *************************************************************************** */

h3.lvl1:before {
    content: counter(lvl1) ". ";
    counter-increment: lvl1;  /* Add 1 to chapter */
    counter-reset: lvl2;      /* Set section to 0 */
}

h3.lvl1 {
    margin-left: +1em; /* */
    font-size:   100%;
    font-weight: bold;
    display:     inline;
}

h3.lvl1:after {
}

h3.lvl2:before {
    content: counter(lvl1) "." counter(lvl2) " ";
    counter-increment: lvl2;
    counter-reset: lvl3;      /* Set section to 0 */
}

h3.lvl2 {
    margin-left: +3em; /* */
    font-size:   100%;
    font-weight: bold;
    display:     inline;
}

h3.lvl2:after {
    margin-left:  +5em; /* */
}

h3.lvl3:before {
    content: counter(lvl1) "." counter(lvl2) "."  counter(lvl2) " ";
    counter-increment: lvl3;
}

h3.lvl3 {
    margin-left: +5em; /* */
    font-size:   100%;
    font-weight: bold;
    display:     inline;
}

h3.lvl3:after {
}

/* *************************************************************************** */

h2.lvl1:before {
    content: counter(lvl1) ". ";
    counter-increment: lvl1;  /* Add 1 to chapter */
    counter-reset: lvl2;      /* Set section to 0 */
}

h2.lvl1 {
    margin-left: +1em; /* */
    font-size:   100%;
    font-weight: bold;
    display:     inline;
}

h2.lvl1:after {
}

h2.lvl2:before {
    content: counter(lvl1) "." counter(lvl2) " ";
    counter-increment: lvl2;
    counter-reset: lvl3;      /* Set section to 0 */
}

h2.lvl2 {
    margin-left: +3em; /* */
    font-size:   100%;
    font-weight: bold;
    display:     inline;
}

h2.lvl2:after {
    margin-left:  +5em; /* */
}

h2.lvl3:before {
    content: counter(lvl1) "." counter(lvl2) "."  counter(lvl2) " ";
    counter-increment: lvl3;
}

h2.lvl3 {
    margin-left: +5em; /* */
    font-size:   100%;
    font-weight: bold;
    display:     inline;
}

h2.lvl3:after {
}

/* *************************************************************************** */

h1.lvl1:before {
    content: counter(lvl1) ". ";
    counter-increment: lvl1;  /* Add 1 to chapter */
    counter-reset: lvl2;      /* Set section to 0 */
}

h1.lvl1 {
    margin-left: +1em; /* */
    font-size:   100%;
    font-weight: bold;
    display:     inline;
}

h1.lvl1:after {
}

h1.lvl2:before {
    content: counter(lvl1) "." counter(lvl2) " ";
    counter-increment: lvl2;
    counter-reset: lvl3;      /* Set section to 0 */
}

h1.lvl2 {
    margin-left: +3em; /* */
    font-size:   100%;
    font-weight: bold;
    display:     inline;
}

h1.lvl2:after {
    margin-left:  +5em; /* */
}

h1.lvl3:before {
    content: counter(lvl1) "." counter(lvl2) "."  counter(lvl2) " ";
    counter-increment: lvl3;
}

h1.lvl3 {
    margin-left: +5em; /* */
    font-size:   100%;
    font-weight: bold;
    display:     inline;
}

h1.lvl3:after {
}

