/* Set padding and margins to 0 then change later
Helps with cross browser support */
* {
 padding:0;
 margin:0;
}

/* Remove some of problems with above */
/*select { min-width:1.5em; }
*/
h1, h2, h3, h4, h5, h6, p, pre, blockquote, label, ul, ol, dl, fieldset, address { margin:1em 5%; }

li, dd { margin-left:5%; }

fieldset { padding: .5em; }

br.all {
  clear: both;
}

br.clearall {
  clear: both;
}


.google-auto-placed ap_container {
    width: 80% !important;
    clear: none !important;
}


/* remove margin (added above) on nested ul */
ul ul { margin: 0;}
ul ul ul { margin: 0;}

/* Finished setting defaults - now design site */
body {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	text-align: left;
	background-color: #fff;
	color: #000;
	font-family: "Times New Roman", Times, serif;
}

div#header {
 background-repeat: repeat;
 background-image: url(background1.png);
 height: 175px;
 padding: 0;
 border: 0;
 margin: 0;
}

.bannerimg {
 z-index: 1;
}


/* pre used for copy and paste code blocks */

pre {
	line-height:90%;
}

div#owner {
 position: absolute;
 z-index: 3;
 top: 0px;
 right: 0px;
 background-color: #eee;
 font-style: normal;
 color: #000000;
 text-decoration: none;
}

a.ownersite {
 color: #000000;
 text-decoration: none;
}

a.ownersite:hover {
 color: #0000FF;
}

a.sistersite {
 color: #000000;
 text-decoration: none;
}

a.sistersite:hover {
 color: #0000FF;
}

div#menus {
	position: absolute;
	left: 0;
	margin: 0;
	padding: 0;
	top: 175px;
	z-index: 5;
}

div#mainmenu {
 text-align: left;
 font-size: 1.3em;
 margin: 0;
 padding: 0;
}

#mainmenu ul {
 list-style:none;
 margin: 0;
 padding: 0;
}

#mainmenu li {
 float: left;
 list-style:none;
 margin-top: 0;
 margin-bottom: 0;
 margin-left: 20px;
 padding: 0;
}

#mainmenu a {
 color: blue;
 padding-top: 0;
 padding-right: 8px;
 padding-left: 8px;
 margin-bottom: 0;
 margin-left: 0px;
 text-decoration: none;
 background: #eee;
}

#mainmenu a:hover {
/* text-decoration: underline;*/
 color: blue;
 background: #f2f2f2;
 border-left: 1px outset #333;
 border-right: 1px outset #333;
 border-bottom: 1px outset #333;
/* border: 1px outset #333333;*/
 padding-right: 7px;
 padding-left: 7px;
}

#mainmenu a:visited {
 color: blue;
}

#mainmenu a.current {
 color: black;
}

#mainmenu a.current:visited {
 color: black;
}

div#submenu {
 text-align: left;
 font-size: 1em;
 padding-left: 25px;
 margin-top: 5px;
 padding-top: 5px;
/* border: 2px solid #f00;*/
}

.submenutitle {
 float: left;
 background-color: #eee;
 color: black;
 font-size: 1.2em;
}

#submenu ul {
 position: relative;
 list-style:none;
 margin: 0;
 padding: 0;
}

#submenu li {
 float: left;
 list-style:none;
 margin-top: 0;
 margin-bottom: 0;
 margin-left: 20px;
 padding: 0;
}

#submenu a {
 padding-top: 0;
 padding-right: 20px;
 padding-left: 10px;
 margin-top: 0;
 margin-right: 20px;
 text-decoration: none;
}

#submenu a:hover {
 text-decoration: underline;
}

#submenu a:visited {
 color: blue;
}

#submenu a.current {
 color: black;
}

#submenu a.current:visited {
 color: black;
}

div#breadcrumb {
 text-align: left;
 margin-left: 10px;
 margin-top: 20px;
 margin-bottom: 0px;
}

/* Slightly higher for the forum as we dont have a submenu */
div#breadcrumb {
 text-align: left;
 margin-left: 10px;
 margin-top: 0px;
 margin-bottom: 0px;
}

div#pagebody {
	position: absolute;
	top: 220px;
	text-align: left;
	margin-top: 0px;
	padding-top: 0px;
	background-color: white;
	z-index: 4;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	width: 100%;
}

div.nomenupadding {
  height: 40px;
  clear: left;
}

div#docsmenu {
	float: left;
	width: 180px;
	font-family: "Times New Roman", Times, serif;
}

div#docsmenuconts {
 width: 170px;
 background-color: #030e91;
 color: #fff;
 padding-top: 20px;
 padding-bottom: 30px;
 margin-left: 0px;
 padding-left: 0px;
}

#docsmenuconts .contents {
 font-size: 1.5em;
 padding-left: 20px;
}

#docsmenu ul {
 padding-left: 10px;
}

#docsmenu a {
 color: #fff;
 text-decoration: none;
}

#docsmenu a:hover {
 text-decoration: underline;
}

#docsmenu .padding1{
 height: 60px;
}

#docsmenu .padding2{
 height: 40px;
}

/* Right hand side */
/* To contain ads up to 120px wide */
div#ads1 {
	float: right;
	width: 180px;
	font-family: "Times New Roman", Times, serif;
}

div#break {
 clear: both;
}

#ads1 .padding1{
 height: 60px;
}

#ads1 .padding2{
 height: 40px;
}

div#mainbody {
}


div#donateform {
    margin-left: 60px;
}


#ads2 {
	font-family: "Times New Roman", Times, serif;
	padding-bottom: 25px;
	padding-left: 10px;
}

/* On forum move down a bit more */
#forumads {
	font-family: "Times New Roman", Times, serif;
	padding-top: 25px;
	padding-bottom: 25px;
	padding-left: 10px;
}

#footer {
	padding-top: 25px;
	padding-bottom: 10px;
	text-align: left;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	color: #fff;
	background-color: #030e91;
	background-image: url(footerimg.png);
}

div#footer {
	clear: both;
}

#footer a {
 text-decoration: none;
 color: white;
 font-size: 0.8em;
}

#footerlinks {
 float: right;
}

#footerlinks ul {
 position: relative;
 list-style:none;
 margin: 0;
 padding: 0;
}

#footerlinks li {
 float: left;
 list-style:none;
 margin-top: 0;
 margin-bottom: 0;
 margin-left: 20px;
 padding: 0;
}


#paddingbottom {
	clear: both;
	height: 350px;
}

div#document {
	margin-left: 20px;
}

div#rfcdocument {
	margin-left: 20px;
	font-family: Terminal, monospace;
	font-size: 10pt;
}

/* Used in man page index etc. */
span.indexcolumn
{
 		 float: left;
		 padding: 10px;
		 margin-left: 30px;
		 margin-right: 30px;
		 margin-top: 10px;
		 margin-bottom: 10px;
}

p.important
{
	color: black;
	background: #ddd;
}

p.postindex
{
	clear: left;
}

form.manform
{
	margin-left: 75px;
}

select.mansection
{
	width: 3em;
}

a.rfcindex
{
	text-decoration: none;
}

div.amazonreview
{
	margin-left: 75px;
}


#sitemapparta
{
	float: left;
	width: 250px;
	margin: 30px;
}

#sitemappartb
{
	float: left;
	width: 250px;
	margin: 30px;
}

blockquote {
	margin-left: 70px;
	margin-right: 70px;
	font-style: italic;
}

h2.blogquote {
  font-size: 1.1em;
  font-style: italic;
}

div.warning {
 text-align: left;
 font-size: 1.1em;
 margin-left: 25px;
 padding-left: 25px;
 margin-top: 5px;
 padding-top: 5px;
 width: 400px;
 margin-right: auto;
 border: 2px solid #f00;
}

#googlesearchresult div {
 margin-left: 30px;
}


#minimenu {
	width: 176px;
	border: 2px solid #00f;
	margin-bottom: 30px;
}

#minimenu ul {
	margin-left: 15px;
}

#minimenu a {
 color: blue;
 text-decoration: none;
}

#minimenu a:hover {
 text-decoration: underline;
}

#bottomad {
	margin-left: 100px;
}



table.largeborders {
	border-width: medium;
	border-spacing: 4px;
	border-style: inset;
	border-color: black;
	border-collapse: separate;
	background-color: white;
	text-align: center;
	margin-left: +75px;
}
table.largeborders th {
	border-width: 2px;
	padding: 3px;
	border-style: inset;
	border-color: gray;
	background-color: white;
	-moz-border-radius: 0px 0px 0px 0px;
}
table.largeborders td {
	border-width: 2px;
	padding: 3px;
	border-style: inset;
	border-color: gray;
	-moz-border-radius: 0px 0px 0px 0px;
}


/* Colourcodes = same as largeborders */

table.colourcodes {
	border-width: medium;
	border-spacing: 4px;
	border-style: inset;
	border-color: black;
	border-collapse: separate;
	background-color: white;
	text-align: center;
	margin-left: +75px;
}
table.colourcodes th {
	border-width: 2px;
	padding: 3px;
	border-style: inset;
	border-color: gray;
	background-color: white;
	-moz-border-radius: 0px 0px 0px 0px;
}
table.colourcodes td {
	border-width: 2px;
	padding: 3px;
	border-style: inset;
	border-color: gray;
	-moz-border-radius: 0px 0px 0px 0px;
}

#penguinsearch {
 position: absolute;
 z-index: 3;
 top: 80px;
 right: 20px;
}


#youtubeheader {
 position: absolute;
 z-index: 3;
 top: 20px;
 right: 220px;
}

#bottomad {
	/*clear:both;*/
}

#prev_next {
	height: 100px;
	text-decoration: none;
	border:none;
}

#prev_next a {
	font-size: x-small;
	text-decoration: none;
}

.leftbutton {
	float: left;
	margin-left: 100px;
	text-decoration:none;
}

.leftbutton img {
	text-decoration:none;
	border:none;
}

.rightbutton {
	float: right;
	margin-right: 50px;
	text-decoration:none;
}

.rightbutton img {
	text-decoration:none;
	border:none;
	float:right;
}

table.blogtable {
    margin-left: 75px;
}


table.downloads {
	border-width: 1px 1px 1px 1px;
	border-spacing: 2px;
	border-style: outset outset outset outset;
	border-color: gray gray gray gray;
	border-collapse: separate;
	background-color: white;
	margin-left: 50px;
}
table.downloads th {
	border-width: 1px 1px 1px 1px;
	padding: 2px 2px 2px 2px;
	border-style: inset inset inset inset;
	border-color: gray gray gray gray;
	background-color: white;
	-moz-border-radius: 0px 0px 0px 0px;
}
table.downloads td {
	border-width: 1px 1px 1px 1px;
	padding: 2px 2px 2px 2px;
	border-style: inset inset inset inset;
	border-color: gray gray gray gray;
	background-color: white;
	-moz-border-radius: 0px 0px 0px 0px;
}

.vimportant {
	color: red;
}

#fbcomments {
	margin-left: 100px;
	font-size: x-small;
	text-decoration: none;
}

#fbcomments a {
	text-decoration: none;
}


#categorylinks p {
    padding-left: 75px;
    padding-right: 100px;
}

#categorylinks ul {
    padding-left: 40px;
    padding-right: 100px;
}

h1#title1 {
	font-size: +2em;
}

#ads2-amazon {
	width: 50%;
	margin: 0 auto;
}

a.youtubeheadertext:link, a.youtubeheadertext:visited {
    color: white;
}


/* Reference menu - within the electronics reference pages */

ul.referencemenu {
	position: relative;
	left: -20px;
}

ul.referencesubmenu {
	position: relative;
	left: -70px;
}

table.tutorial-table {
    border-style:solid;
    border-width:2px;
    position: relative;
    left: 60px;
}

table.tutorial-table th {
    border-style:solid;
    border-width:1px;
}

table.tutorial-table td {
    border-style:solid;
    border-width:1px;
}

/* Used in multilevel links */
/*ul.2ndlevel*/
ul ul {
    padding: 0px;
	margin: 0px;
}