/* $Id: layout-fixed.css,v 1.5 2008/09/14 10:39:32 johnalbin Exp $ */

/*
 * LAYOUT STYLES
 *
 */


#page,
#closure-blocks
{
	/*
	* If you want to make the page a fixed width and centered in the viewport,
	* this is the standards-compliant way to do that. See also the ie.css file
	* for the necessary IE5 hack to center a div.
	*/
	margin-left: auto;
	margin-right: auto;
	width: 900px;
}

#navigation-top,
#navigation
{
	position: absolute; /* Take the named anchors out of the doc flow    */
	left: -10000px;     /* and prevent any anchor styles from appearing. */
}

#logo {
	float: left;
}

#header-blocks
{
	clear: both; /* Clear the logo */
}

/** main (container for everything else) **/
#main
{
	margin: 0;
	padding: 0;
	float: right; 
	width: 900px;
}
#main-inner
{
    position: relative;
    margin: 0;
    padding: 0;

}

/** content. Responsible for positioning of content section **/
#content,
.no-sidebars #content
{
	float: left;
	width: 960px;
	margin-left: 0;
	margin-right: -960px; /* Negative value of #content's width + left margin. */
	padding: 0; /* DO NOT CHANGE. Add padding or margin to #content-inner. */
}
  
.sidebar-left #content
{
    width: 700px;
    margin-left: 200px; /* The width of #sidebar-left. */
    margin-right: -960px; /* Negative value of #content's width + left margin. */
}

#content-inner
{
    margin: 0;
    padding: 0;
    width: 675px;
}

/** navbar **/
#navbar
{
    float: left;
    width: 100%;
    margin-left: 0;
    margin-right: -100%; /* Negative value of #navbar's width + left margin. */
    padding: 0; /* DO NOT CHANGE. Add padding or margin to #navbar-inner. */
    height: 0px; /* The navbar can have any arbritrary height. We picked one
    that is twice the line-height pluse 1em: 2 x 1.3 + 1 = 3.6
    Set this to the same value as the margin-top below. */
}

.with-navbar #content,
.with-navbar #sidebar-left,
.with-navbar #sidebar-right
{
    margin-top: 3.6em; /* Set this to the same value as the navbar height above. */
}

#navbar-inner
{
}

#search-box
{
    width: 200px;
    margin-right: -200px; /* Negative value of #search-box's width. */
    float: right;
}

#primary
{
    margin-left: 200px; /* Width of search-box */
}

#secondary
{
    margin-left: 200px; /* Width of search-box */
}

#navbar ul /* Primary and secondary links */
{
    margin: 0;
    padding: 0;
    text-align: left;
}

#navbar li /* A simple method to get navbar links to appear in one line. */
{
    float: left;
    padding: 0 10px 0 0;
}

/** sidebar-left **/
#sidebar-left
{
    float: left;
    width: 200px;
    margin-left: 0;
    margin-right: -200px; /* Negative value of #sidebar-left's width + left margin. */
    padding: 0; /* DO NOT CHANGE. Add padding or margin to #sidebar-left-inner. */
}

#sidebar-left ul {
	margin-left: 0px;
	padding-left: 0px;
}

#sidebar-left-inner
{
    margin: 0 20px 0 0;
    padding: 0;
}

/** sidebar-right **/
#sidebar-right
{
    float: right;
    width: 200px;
    margin-left: 760px; /* Width of content + sidebar-left. */
    margin-right: -960px; /* Negative value of #sidebar-right's width + left margin. */
    padding: 0; /* DO NOT CHANGE. Add padding or margin to #sidebar-right-inner. */
}

#sidebar-right-inner
{
    margin: 0 0 0 20px;
    padding: 0;
}

/** footer **/
#footer
{
    float:none;
    clear:both;
    margin:0;
}

/** Prevent overflowing content **/
#header,
#content,
#navbar,
#sidebar-left,
#sidebar-right,
#footer,
#closure-blocks
{
    overflow: visible;
    word-wrap: break-word; /* A very nice CSS3 property */
}

#navbar
{
    overflow: hidden; /* May need to be removed if using a dynamic drop-down menu */
}

/* If a div.clear-block doesn't have any content after it, Firefox and Safari
will mistakenly place several pixels worth of space between the bottom of
the div and the bottom of the viewport. This fixes it. */
#page { overflow-y: hidden; } /* CSS3 property */

/* And add blanks left and right for the sidebars to fill */
body #squeeze {
    margin-left: 14em;
}

body.sidebar-left #squeeze {
    margin-left: 14em;

}

* html body.sidebar-left #squeeze {
    margin-left: 14em;
}

body #sidebar-right  {
    margin-right: 0px;
    float:right;
    display: block;
    margin-top: 0px;
}

body.sidebar-right #main {
    margin-right: -210px;
}