body {
  text-align: center;
}

img {
  border: 0;
}

div#wrap {
  margin: 30px auto;
  width: 924px;
}

div#header {
  border: 0px solid red;
  width: 924px;
}

img#logo {
  border: 0;
  width: 275px;
  height: 65px;
  float: left;
  margin-top: 10px;
  display: block;
}

div#links {
  float: right;
  width: 250px;
  border: 0px solid blue;
}

div#links p {
  font-size: 11px;
  text-align: right;
  line-height: 25px; 
}

div#links a.text, div.greybox a, p a, h4 a { 
  color:#996699;
  text-decoration: none;
}

div#links img {
  vertical-align: middle;
  margin-left: 5px;
} 

div#fill {
  clear: both;
}

ul#nav {
  clear: both;
  height: 50px;
  list-style-type: none;
  margin: 20px 0 0;
  padding: 0;
}

ul#nav li {
  float: left;
  width: 231px;
}

ul#nav li a {
  cursor: pointer;
  display: block;
  height: 50px;
  background-repeat: no-repeat;
  background-color: transparent;
  background-position: 0 0;
}

ul#nav li a:hover { background-position: 0 -50px; }

ul#nav li a#portfolio { background-image: url(portfolio.png); }
ul#nav li a#about { background-image: url(about.png); }
ul#nav li a#service { background-image: url(services.png); }
ul#nav li a#contact { background-image: url(contact.png); }

div#banner {
  width: 924px;
  height: 300px;
  border-style: solid;
  border-width: 0px;
  border-color: #CBCFCE;
  background-image: url(banner1.jpg);
  background-repeat: no-repeat;
  background-position: 0 0;
  margin: 0 0 10px 0;
  border-top: 0;
}

div.greybox {
  height: 270px;
  width: 270px;
  border-style: solid;
  border-width: 1px 1px 5px;
  border-color: #CBCFCE;
  padding: 15px;
  float: left;
  margin: 10px 9px 10px 0;
}

div.greybox p {
  text-align: left;
  line-height: 22px;
}

div#content {
  border-width: 1px 1px 5px;
  border-style: solid;
  border-color: #CBCFCE;
  min-height: 500px;
  width: 862px;
  padding: 15px 30px;
  text-align: left;
  overflow: hidden;
}

div.gbright { margin-right: 0; }

h1 {
  font-family: Arial, Helvetica, serif;
  font-size: 16pt;
  color: #5c5c4f;
  font-weight: normal;
  line-height: 30px;
}

h2 {
  font-family: Arial, Helvetica, serif;
  font-size: 167%;
  color: #5c5c4f;
  font-weight: normal;
  line-height: 50px; 
  margin: 5px 0 0;
  padding-left: 70px;
  text-align: left;
}

h3, h4 {
  font-family: Arial, Helvetica, serif;
  padding: 0;
  font-weight: normal;
  color: #5c5c4f;
}

h3 {
  font-size: 100%;
  line-height: 25px;
  margin: 5px 0 0;
}

h4 {
  font-size: 80%;
  line-height: 20px;
  margin: 0;
}


h2#custom { background: transparent url(icons/User.png) no-repeat 0 0; }
h2#services { background: transparent url(icons/Web.png) no-repeat 0 0; }
h2#results { background: transparent url(icons/Package.png) no-repeat 0 0; }
h2#contact { background: transparent url(icons/Mail.png) no-repeat 0 0; padding-left: 60px; }
h2#none { padding-left: 0; }

p {
  font-family: Arial, Helvetica, serif;
  font-size: 13px;
  color: #787878;
  line-height: 1.5em;
  margin-bottom: 0;
}

div#contentp p {
  margin-bottom: 30px;
}

div#footer {
  width: 924px;
}

p.foot {
  font-size: 8pt;
  text-align: center;
  margin-top: 5px;
}

img.pfimgr {
  float: right;
  margin-left: 15px;
  padding: 5px;
}

a.pflink img {
  border: 1px solid #cecece;
}
a.pflink:hover img {
  border: 1px solid #4275A1;
}

img.pfimgl {
  float: left;
  margin-right: 15px;
  padding: 5px;
}

ul#services {
  font-family: Arial, Helvetica, serif;
  font-weight: normal;
  color: #5c5c4f;
  font-size: 17px;
  line-height: 25px;
  list-style-type: none;
}

ul#services li {
  margin-bottom: 5px;
}

ul.sublist li {
  font-family: Arial, Helvetica, serif;
  font-size: 13px;
  color: #787878;
  line-height: 1.5em;
  margin: 0;
}

div#leftcol {
  float: left;
  width: 57%;
}

div#rightcol {
  float: right;
  width: 39%;
  margin: 20px 0 0 0;
  height: 400px;
  border: solid 1px #CBCFCE;
}

div.pfitem {
  clear: both;
  border: solid 1px #cbcfce;
  padding: 15px;
  margin: 20px 0;
  overflow: hidden; /* to make the height include the floated image */
}

p.hidden {
  display: none;
}

form#contact {
  border: solid 1px #cbcfce;
  padding: 10px 20px;
  margin: 10px 0 5px 0;
  background-color: #f7f7f7;
  width: 60%;
  overflow: hidden;
}

label {
  font: 11px Arial, Helvetica, serif;
  color: #787878;
}
form#contact select { width: 180px; }

/* CSS for tabs */
ul.tabs {
	margin: 15px 0 0 15px;
	padding: 0;
	float: left;
	list-style: none;
	width: 210px;
}
ul.tabs li {
	margin: 0 0 8px 0;
	padding: 0;
	min-height: 38px; /*--Subtract 1px from the height of the unordered list--*/
	line-height: 38px; /*--Vertically aligns the text within the tab--*/
	border: 1px solid #CBCFCE;;
	overflow: hidden;
	position: relative;
	background-color: #e0e0e0;
}
a#t1 { background-image: url(icons/System-sm.png); }
a#t2 { background-image: url(icons/Applications-sm.png); }
a#t3 { background-image: url(icons/Stats-sm.png); }
a#t4 { background-image: url(icons/Notepad-sm.png); }

ul.tabs li a {
	font-family: Arial, Helvetica, serif;
	text-decoration: none;
	color: #5c5c4f;
	display: block;
	font-size: 13pt;
	padding: 0 0 0 43px;
	outline: none;
	background-repeat: no-repeat;
	background-position: 5px 5px;
}
ul.tabs li a:hover {
	background-color: #ccc;
}
html ul.tabs li.active, html ul.tabs li.active a:hover  { /*--Makes sure that the active tab does not listen to the hover properties--*/
	background-color: #fff;
	border-right: 1px solid #fff; /*--Makes the active tab look like it's connected with its content--*/
}
.tab_container {
	border: 1px solid #CBCFCE;
	overflow: hidden;
	float: left; 
	width: 620px;
	background: #fff;
	height: 600px;
	margin-left: -1px;
}
.tab_content p {
   margin: 20px 35px;
   font-family: Arial, Helvetica, serif;
   font-size: 13px;
   color: #787878;
   line-height: 1.5em;
   background-color: #fff; /* needed so IE handles the fadeIn correctly */ 
}
