/*
 * This file should contain all the info for positioning things in response to page size.
 */

html
{
	padding: 0px;
	margin: auto;
	border: 0px;
	text-align: center;
}

body
{
	Font-family:  Arial, sans-serif;
	Font-Size: medium;
	Color: #000000;
	Background-Color: #E6E3DC;
	text-align: center;
	border: 0px;
	margin: auto;
	padding: 0px;
	min-width:320px;
	max-width:960px;
}

#title
{
	position:absolute;
	width: 100%;
}


#topbar 
{
	text-align: left;
	position:relative;
	margin: 0px 0px 0px 0px;
	height: 110px;
}
#topbarimage
{
	background: #000 url(images/energysavingproducts.jpg) no-repeat center;
	height: 110px;
	display:block;
	text-indent:-9999px;
}


#topbar H1
{
	Font-Size: 290%;
	Font-Weight: 700;
	Color: #404040;
	margin: 0px;
	display: inline;
}
#topbar H1 a 		{  color: #000000; text-decoration: none;}
#topbar H1 a:hover	{  color: #444444; text-decoration: none;}


#sitebody
{
	position:relative;
	display:inline-block;
	width:100%;
	padding: 0px;
}


.menu1
{
	display:inline;
}
.menu2
{
	display:none;
}
#menu
{
	float: left;
	clear:left;
	position:relative;
	margin:10px 0px 10px 0px;
	width:100%;
	height:32px;
	overflow:hidden;
	background:#111;
	z-index:1;
	border: 1px solid #474747;
	border-left-width: 0px;
	border-right-width: 0px;
	overflow: hidden;
	background: #4f4f4f url(images/nav-gray.png) repeat-x;
}
#menu li
{
	border-color:#888;
}

#menu ul
{
	list-style:none;
	padding:0px;
	margin:0px;
	margin-left:0px;
	z-index:100;
}
#menu ul li
{
	display: block;
	position: relative;
	float: left;
	border-left: 1px solid #767676;
	padding:0px;
	text-align:center;
	margin:0px;
	clear:none;
	text-indent:0px;
	text-shadow: -1px -1px #333;
	font-size: 14px;
}
#menu ul li a
{
	position:relative;
	display: block;
	line-height: 24px;
	color: #fff;
	display: block;
	padding: 4px 15px 5px 15px;
}

#menu li a 		{  color: #ffffff; text-decoration: none; }
#menu li a:hover{  color: #ffffff; text-decoration: none; background:url(images/nav-gray-hov.png);}
#menu #menusel a 	{  color: #ffffff; text-decoration: none; background:url(images/nav-gray-hov.png);}

#bannerad
{
	width:100%;
	height:90px;
	float:left;
}

#banneradouter
{
	clear:left;
	background:#E6E3DC;
	margin-left:10px;
	margin-right:10px;
	margin-top:10px;
	overflow:hidden;
}

#rightad
{
	background:#E6E3DC;
	position: absolute;
	top:265px;
	right:0px;
	margin-right:10px;
	width:160px;
	height:600px;
}

#maintext
{
	clear:left;
	background:#fff;
	text-align:left;
	margin:10px 180px 10px 0px;
	min-height:600px;
	padding:10px;
	font-family: Arial, sans-serif;
	color: #111;
	font-size: 12px;
	line-height: 20px;
}
#maintext H1
{
	color: #5cb17a;
	Font-Weight: bold;
	font-size: 24px;
	margin: 0 0 10px 0;
	padding: 0 0 10px 0;
	text-align: left;
}

#footer
{
	background:#fff;
	border-color:#000;
	border-width:3px 0px 0px 0px;
	Font-Size: 90%;
	Font-Weight: bold;
	text-align: left;
	border-style:solid;
	margin:0px;
	padding: 10px;
	clear: both;
	overflow:hidden;
}

@media all and (max-width: 875px) 
{
	#topbar 
	{
		margin: 0px;
		height: 90px;
	}
	#topbarimage
	{
		height: 90px;
	}
	.menu1
	{
		display:none;
	}
	.menu2
	{
		display:inline;
	}
	#menu
	{
		margin:0px;
		width:100%;
		border-right-width: 0px;
	}
	#banneradouter
	{
		margin:0px;
		left:5px;
	}

	#rightad
	{
		top:225px;
	}
}


@media all and (max-width: 764px) 
{
	#banneradouter
	{
		top:0px;
		right:0px;
		left:0px;
		margin-right:0px;
		width:inherit;
	}


/* convert right-hand column ad to banner above the footer */
	#rightad
	{
		position:relative;
		top:0px;
		left:0px;
		margin:0px;
		width:100%;
		height:101px;
		float:right;
		overflow:hidden;
	}
	#maintext
	{
		margin:10px 0px 0px 0px;
	}
}

@media all and (max-width: 620px) 
{
	#topbar 
	{
		height: 72px;
	}
	#topbarimage
	{
		background: #000 url(images/energysavingproducts_small.jpg) no-repeat center;
		height: 72px;
	}
/* spread horizontal menu over two lines */
	#menu
	{
		height:66px;
	}
	#menu ul li
	{
		border-style:solid;
		border-color:#fff;
		border-width: 0px 0px 1px 0px;
	}
/* change top banner ad to smaller size */
	#bannerad
	{
		width: 100%;
		max-width:468px;
		height:60px;
	}
	#banneradouter
	{
		height:60px;
	}
	#rightad
	{
		xtop:96px;
	}

	#topbar H1
	{
		Font-Size: 250%;
	}
}

@media all and (max-width: 570px) 
{
	#maintext
	{
		margin:10px 0px 0px 0px;
	}
	#topbar H1
	{
		Font-Size: 140%;
	}
}
@media all and (max-width: 400px) 
{
	#topbar 
	{
		height: 55px;
	}
	#topbarimage
	{
		background: #000 url(images/energysavingproducts_vsmall.jpg) no-repeat center;
		height: 55px;
	}
