#nav {
	margin: 0;
	padding: 0;
	height: 40px;
	list-style: none;
	display: inline;
	overflow: hidden;
	width:  383px;
	float: right;
	}

#nav li {
	margin: 0; 
	padding: 0;
        list-style: none;
	display: inline;
	}

#nav a {
	float: left;
	padding: 36px 0 0 0;
	overflow: hidden;
	height: 0px !important; 
	height /**/:40px; /* for IE5/Win only */
	}
	

#nav a:active, #nav a.selected {
	background-position: 0 -80px;
	}
	
#thome a {
		background-image: url(../img/navbar-buttons.gif);
		background-position: left top;
		background-repeat: no-repeat;
		width: 56px;
	}

#tprojects a {
		background-image: url(../img/navbar-buttons.gif);
		background-position: -56px top;
		background-repeat: no-repeat;
		width: 80px;
	}

#tphilosophy a {
		background-image: url(../img/navbar-buttons.gif);
		background-position: -136px top;
		background-repeat: no-repeat;
		width: 106px;
	}

#tcontact a {
		background-image: url(../img/navbar-buttons.gif);
		background-position: -242px top;
		background-repeat: no-repeat;
		width: 81px;
	}

#tblog a {
		background-image: url(../img/navbar-buttons.gif);
		background-position: -323px top;
		background-repeat: no-repeat;
		width: 59px;
	}
	
/*Set hover states*/
	
#thome a:hover {
		background-position: 0 -40px;
	}
	
#tprojects a:hover {
		background-position: -56px -40px;
	}

#tphilosophy a:hover {
		background-position: -136px -40px;
	}

#tcontact a:hover {
		background-position: -242px -40px;
	}

#tblog a:hover {
		background-position: -323px -40px;
	}

/*Set selected states*/

#thome a:active, #thome a.selected {
	background-position: 0 -80px;
	}
	
#tprojects a:active, #tprojects a.selected {
	background-position: -56px -80px;
	}

#tphilosophy a:active, #tphilosophy a.selected {
	background-position: -136px -80px;
	}	

#tcontact a:active, #tcontact a.selected {
	background-position: -242px -80px;
	}
	
#tblog a:active, #tblog a.selected {
	background-position: -323px -80px;
	}
	
#nav a.selected {cursor: default;}

