.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}
.clearfix:after {
    clear: both;
}
.clearfix {
    *zoom: 1;
}

/* Basic Styles */
#nav{
	border-right:2px solid #606060;
	height: 1500px;
	}

nav {
	height: 40px;
	width: 100%;
	position: relative;
	color:#606060;
	display:block;


}
nav ul {
	padding: 0;
	height: 40px;
}

nav a {
	color: #fff;
	display: inline-block;
	width: 160px;
	text-align: center;
	text-decoration: none;
	line-height: 40px;
}

nav li:last-child a {
	border-right: 0;
}
nav a:hover, nav a:active {
	background-color: #606060;
		color:#e0e0d1;
}
nav a#pull {
	display: none;
}



/*Styles for screen 515px and lower*/
@media only screen and (max-width : 515px) {
#nav{
    width:100%;
    padding-bottom: 65px;
	border-right:none;
	height:auto;
	z-index:400;
}
	nav {
		border-bottom: 70px;
	z-index:400;

	}
	nav ul {
		display: none;
		height: auto;
	}

	nav li {
    	display: inline;
    	float: left;
    	width:50%;
    }
	nav a#pull {
		display: block;
		background-color: #606060;
		color:#e0e0d1;
		width: 98%;
		position: relative;
	}
	nav a#pull:after {
		content:"";
		background: url('nav-icon.png') no-repeat;
		width: 30px;
		height: 30px;
		display: inline-block;
		position: absolute;
		right: 15px;
		top: 10px;
	}
}

/*Smartphone*/
@media only screen and (max-width : 320px) {
	nav li {
		display: block;
		float: left;
		width: 100%;
	}
	nav li a {

		width:100%;
	}
}