/* $Id$ */

/**
 * @file
 * CSS targeted specifically for Internet Explorer 5 and 6 for Windows.
 *
 * Any CSS in this file will override the rules specified in the ie.css file.
 */


/*
 * Layout CSS
 */

body {
  text-align: center; /* 1st part of IE5/IE6quirks centering hack */
}

#page {
  text-align: left; /* LTR */ /* 2nd part of IE5/IE6quirks centering hack */
}

#main-wrapper {
  zoom: 1; /* Otherwise with a liquid layout, sidebars disappear when resizing the windows in IE6 */
}

#content,
#navigation,
.region-sidebar-first,
.region-sidebar-second /* Floating divs */ {
  display: inline; /* display inline or double your floated margin! [1] */
  overflow: hidden; /* in ie6, overflow auto is broken [2] and so is overflow visible [3] */
  overflow-y: visible;
}

/*
 * Tabs - IE 5 and 6 don't support PNGs with alpha transparency.
 */

#main-menu li a,
ul.primary li a,
ul.primary li a .tab,
ul.secondary li a,
ul.secondary li a .tab {
  display: inline-block; /* Otherwise the blocks mistakenly get 100% width in IE6 */
}

ul.primary li a {
  background: url(../images/tab-left-ie6.png) no-repeat left -38px;
}

ul.primary li a .tab {
  background: url(../images/tab-right-ie6.png) no-repeat right -38px;
}

ul.primary li a:hover {
  background: url(../images/tab-left-ie6.png) no-repeat left -76px;
}

ul.primary li a:hover .tab {
  background: url(../images/tab-right-ie6.png) no-repeat right -76px;
}

ul.primary li.active a,
ul.primary li.active a:hover {
  background: url(../images/tab-left-ie6.png) no-repeat left 0;
}

ul.primary li.active a .tab,
ul.primary li.active a:hover .tab {
  background: url(../images/tab-right-ie6.png) no-repeat right 0;
}

/*
 * Messages - IE 5 and 6 don't support PNGs with alpha transparency.
 */

div.messages,
div.status,
div.warning,
div.error /* Important messages (status, warning, and error) for the user */ {
  background-image: url(../images/messages-status-ie6.png);
}

div.warning /* Medium priority messages */ {
  background-image: url(../images/messages-warning-ie6.png);
}

div.error /* High priority messages. See also the .error declaration below. */ {
  background-image: url(../images/messages-error-ie6.png);
}


/*
 * REFERENCES
 *

1. http://www.positioniseverything.net/explorer/doubled-margin.html
2. http://browservulsel.blogspot.com/2005/04/ie-overflow-auto-scrollbar-overlap.html
3. http://www.howtocreate.co.uk/wrongWithIE/?chapter=overflow%3Avisible%3B
4. http://www.ryanbrill.com/archives/multiple-classes-in-ie

 *
 */


img, .png-no-repeat
{
  behavior: expression((this.runtimeStyle.behavior="none")&&(
  this.pngSet?this.pngSet=true:( this.nodeName == "IMG" &&
  this.src.toLowerCase().indexOf('.png')>-1?(this.runtimeStyle.backgroundImage = "none",
  this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" +
  this.src + "', sizingMethod='image')", this.src="/sites/default/themes/greenbuilder/images/transparent.gif"):(
  this.origBg = this.origBg? this.origBg :this.currentStyle.backgroundImage.toString().replace('url("','').replace('")',''),
  this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.origBg + "',sizingMethod='image')",
  this.runtimeStyle.backgroundImage = "none")),this.pngSet=true));
}

.front .region-sidebar-second .sidebar-bottom{
  background: url(../images/news_sidebar_bottom_bg.jpg) top left no-repeat;
}

.marquee-gradation.left {
  background-image:none;
  filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/sites/default/themes/greenbuilder/images/marquee-gradation-left.png', sizingMethod='crop');
}
.marquee-gradation.right {
  background-image:none;
  filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/sites/default/themes/greenbuilder/images/marquee-gradation-right.png', sizingMethod='crop');
}

.not-front #page {
  background-image:none;
  filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/sites/default/themes/greenbuilder/images/page-middle.png', sizingMethod='scale');
  width:830px;
}

.not-front #page-top {
  background-image:none;
  filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/sites/default/themes/greenbuilder/images/page-top.png', sizingMethod='crop');
  width:874px;
}
.not-front #page-bottom{
  background-image:none;
  filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/sites/default/themes/greenbuilder/images/page-bottom.png', sizingMethod='crop');
  width:880px;
}


#edit-name-wrapper {
  position:absolute;
  left:0;
}
#edit-name-wrapper label{
  width:110px;
}

#main-wrapper {
  overflow: visible;
}