#maintab {
	padding-right: 29px;
	background: url(img/header/menu/maintab_right2.png) no-repeat top right;
	background-position: 100% 17px;
}

#maintab #inner {
	padding-right: 35px;
	background: url(img/header/menu/maintab_right1.png) no-repeat top right;
	background-position: 100% 17px;
}

#maintab #inner #right {
	background: url(img/header/menu/maintab_bg_off.png) repeat-x top;
	background-position: 0 17px;
	height: 100% /*IE7 beta2 fix*/;
	font-size: 14px;
	padding-left:20px;
}

#maintab ul {

	padding: 0;
	margin: 0;
	list-style-type: none;
	display: block;
	vertical-align: bottom;
}

#maintab ul li {
	display: inline;
	
	
}

#maintab ul li a, #maintab ul li a:active {
	float: left;
	text-decoration: none;
	color: #6dcff6;
	background: url(img/header/menu/maintab_bg_off.png) repeat-x top;
	border-left: #245167 1px solid;
	border-right: #20495c 1px solid;
	display: block;
	padding: 0px 8px;
	height: 24px;
	margin-top: 17px;
	vertical-align: middle;
	line-height: 24px;
	font-weight: bold;
	font-size: 12px;
}

#maintab ul li a:hover, #maintab ul li a:active {
	color: #cfeffc;
	background: url(img/header/menu/maintab_bg_on.png) repeat-x top;
}

#maintab ul li span {
	float: left;
	display: block;
}

#maintab ul li span.begin {
	border-right: #20495c 1px solid;
	width: 4px;
	margin-top: 17px;
	height: 24px;
}

#maintab ul li span.end {
	border-left: #245167 1px solid;
	margin-top: 17px;
	height: 24px;
}

/*selected main tab style */
#maintab ul li.selected {
	border:0;
	padding: 0;
	
}

#maintab ul li.selected a, #maintab li.selected a:visited { 
	color: white;
	background: url(img/header/menu/maintab_bg_selected_center.png) top;
	border:0;
	font-weight: bold;
	margin-left: 12px;
	margin-right: 12px;
	height: 41px;
	margin-top: 0;
	line-height: 48px;
	font-size: 14px;
}

#maintab ul li.selected span.selected_left {
	background: url(img/header/menu/maintab_bg_selected_left.png) top left no-repeat;
	display: block;
	
}

#maintab ul li.selected span.selected_right {
	background: url(img/header/menu/maintab_bg_selected_right.png) top right no-repeat;
	display: block;
		
}


/*2nd level content wrapper*/
#tabcontent { 
	background: url(img/header/menu/tabcontent_right2.png) no-repeat top right;
	background-position: 100% 0;
	padding-right: 29px;
	height: 100% /*IE7 beta2 fix*/;
}

#tabcontent #inner {
	padding-right: 35px;
	background: url(img/header/menu/tabcontent_right1.png) no-repeat top right;
	background-position: 100% 0;
}

#tabcontent #inner #right {
	background: #d3cd6a url(img/header/menu/tabcontent_bg.gif) repeat-x bottom;
	height: 100% /*IE7 beta2 fix*/;
	font-size: 14px;
	padding-left:40px;
}

#tabcontent ul {
	background: #d3cd6a url(img/header/menu/tabcontent_bg_br.gif) bottom left no-repeat;
	padding: 0;
	margin: 0;
	list-style-type: none;
	display: none;
}

/*selected 2nd level content*/
#tabcontent ul.selected{ 
	display: block;
}

#tabcontent ul li{
	display: inline;
}

#tabcontent ul li a, #tabcontent ul li a:visited {
	color: #f0edc1;
	padding: 9px 10px;
	display: block;
	float: left;
	text-decoration: none;
}


#tabcontent ul li a:hover{
	color: white;
}

#tabcontent ul li.selected a {
	
	background: url(img/header/menu/tabcontent_bg_arrow.gif) bottom center no-repeat;
}

.clearfix:after{ /*Clear floats hack: http://positioniseverything.net/easyclearing.html*/
	content: "."; 
	display: block; 
	height: 0; 
	clear: both; 
	visibility: hidden;
}

.clearfix{
}

/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
.clearfix {display: block;}
/* End hide from IE-mac */
