/* $Id: layout.css,v 1.5.2.1 2007/01/17 05:28:41 jjeff Exp $ */

/**
*  LAYOUT STYLES
*
*  Define CSS classes to create a table-free,
*  3-column, 2-column, or single column layout 
*  depending on whether blocks are enabled in the 
*  left or right columns.
*/

/**
 * Layout
 */

#container {
  margin: 0 auto;
  /*padding: 0 20px;*/
  width: 765px;
  border: 1px solid #CCCCCC;
  border-top: none;
  border-bottom: none;
}

#header {
  width: 100%;
  border-bottom: 1px solid #CCCCCC;
}

#page {
  width: 765px;
  margin: 0 auto;
}

.blockinner {
  padding-left: 10px;
}

/* With 3 columns, require a minimum width of 1000px to ensure there is enough horizontal space. */
body.both-sidebars {
  /*min-width: 980px;*/
}
/* With 2 columsn, require a minimum width of 800px. */
body.sidebar-left, body.sidebar-right {
  /*min-width: 780px;*/
}

/* We must define 100% width to avoid the body being too narrow for near-empty pages */
#main {
  float: left;
  width: 100%;
  overflow: hidden;
}

/* So we move the #main container over the sidebars to compensate */
body.sidebar-left #main {
  margin-left: -164px;
}
body.sidebar-right #main {
  margin-right: -217px;
}
body.both-sidebars #main {
  margin: 0 -217px 0 -164px;
}

#squeeze {
  position: relative;
  padding: 0 1em;
	zoom: 1;
}

/* And add blanks left and right for the sidebars to fill */
body.sidebar-left #squeeze {
  margin-left: 164px;
}
body.sidebar-right #squeeze {
  margin-right: 217px;
}
body.both-sidebars #squeeze {
  margin: 0 217px 0 164px;
}

/* We ensure the sidebars are still clickable using z-index */
#container .sidebar {
  margin: 0 0 5em;
  float: left;
  z-index: 2;
  position: relative;
}

#container #sidebar-left {
  width: 164px;
}

#container #sidebar-right {
  width: 205px;
	padding-left: 10px;
	border-left: 2px solid #CCC;
	margin-top: 5px;
  float: right;
}

#container .sidebar .block {
  margin: 0 0 1.5em 0;
}

#sidebar-left .block {
  padding: 0 15px 0 0px;
}

#sidebar-right .block {
  padding: 0;
}

.block .content {
  margin: 0.5em 0;
}

#footer {
  margin: 0;
}


/*
body.sidebar-left  #footer {
  margin-left: -164px;
}

body.sidebar-right #footer {
  margin-right: -217px;
}

body.both-sidebars #footer {
  margin: 0 -217px 0 -164px;
}

