﻿/* ban */
.ban {
	margin: 20px 0;
}
.ban ul {
	margin: 0;
	padding: 0;
}
.ban li {
	margin: 0 5px 10px 0;
	padding: 0;
	list-style: none;
	display: inline-block;
	*display:inline; /* ie7 */
}
.ban a {
	padding: 3px 12px;
	text-decoration: none;
	color: #999;
	line-height: 100%;
}
.ban a:hover {
	color: #000;
}
.ban .current a {
	background: #999;
	color: #fff;
	border-radius: 5px;
}

/* right ban */
.ban.right ul {
	text-align: right;
}

/* center ban */
.ban.center ul {
	text-align: center;
}

@media screen and (max-width: 640px) {
	.ban {
		position: relative;
		min-height: 40px;
	}	
	.ban ul {
		width: 180px;
		padding: 5px 0;
		position: absolute;
		top: 0;
		left: 0;
		border: solid 1px #aaa;
		background: #fff url(/_core/image/_public/arr_bottom.gif) no-repeat 10px 11px;
		border-radius: 5px;
		box-shadow: 0 1px 2px rgba(0,0,0,.3);
	}
	.ban li {
		display: none; /* hide all <li> items */
		margin: 0;
	}
	.ban .current {
		display: block; /* show only current <li> item */
	}
	.ban a {
		display: block;
		padding: 5px 5px 5px 32px;
		text-align: left;
	}
	.ban .current a {
		background: none;
		color: #666;
	}

	/* on ban hover */
	.ban ul:hover {
		background-image: none;
	}
	.ban ul:hover li {
		display: block;
		margin: 0 0 5px;
	}
	.ban ul:hover .current {
		background: url(/_core/image/_public/arr_bottom.gif) no-repeat 10px 7px;
	}

	/* right ban */
	.ban.right ul {
		left: auto;
		right: 0;
	}

	/* center ban */
	.ban.center ul {
		left: 50%;
		margin-left: -90px;
	}
	
}