/*--------------------------*/
/*------ main nav ----------*/
/*--------------------------*/




	#nav {
		position: relative;
		height: 53px;
		width: 960px;
		margin: 0px 0px 0px 0px;
		padding: 0;
	}

	#nav li ul, #nav li ul {
		margin: 0;
		padding: 0;
		list-style-type: none;
	}

	#nav a {
		text-decoration: none;
	}

	#nav li.top { /*float the main list items*/
		margin: 0;
		float: left;
		display: block;
	}

	#nav li ul {
		display: none;
		 position: absolute;     
		 width: 200px;     
		 left: -999em; 
		z-index: 10000;
	}

	#nav li ul li {
		display: block;
	}

	#nav li.off ul, #nav li.on ul  { /*put the subnav below*/
		left: auto;
		background-color: #fff;
		z-index: 10000;
		position: absolute;
	}

	#nav li.off ul.last, #nav li.on ul.last  { /*put the subnav below*/
		left: 749px;
	}
	
	#nav li a {
		color: #224d6f;
		display: block;
		/*width: 93px;*/
		padding: 0;
	}

	#nav li.on a {
		color: #f90;
	}

	#nav li.on ul a, #nav li.off ul a {
		border: 0px;
		color: #f90;
		width: 200px;
		z-index: 10000;
	}

	#nav li.on:hover ul a, #nav li.over ul li a { /*for ie - the specificity is necessary*/
		background: #ab0101;
	}

	#nav li.on:hover ul a:hover, #nav li.over ul li a:hover { /*for ie - the specificity is necessary*/
		background: #8e0000;
	}

	#nav li.off a:hover, #nav li.on a:hover { 
		background-color: #8e0000;
	}
	
	#nav li.off:hover ul, #nav li.over ul, #nav li.on:hover ul {
		display: block;
		z-index: 6000;
	}
	
	#nav li.off ul a, #nav li.on ul a {
		display: block;
		background: #ab0101;
		color: #fff;
		font-weight:normal;
		border-bottom: 1px solid #ccc;
		padding: 6px 5px 6px 5px;
		margin: 0px;
	}
		
	ul.drop {
		font-family: Verdana, Arial, Helvetica, sans-serif;
		font-size: 12px;
	}
	

	/*do the image replacement*/

	#nav li span {
		/*position: absolute;
		left: -9384px;*/
		display: none;
	}
	
	#nav_home {
		padding-left: 2px;
	}

	#nav_home a, #nav_membership a, #nav_history a, #nav_lifesaving a, #nav_junioractivities a, #nav_seniorsports a, #nav_newsevents a, #nav_thesurfclub a {
		display: block;
		position: relative;
		margin: 0px;
		padding: 0px;
		background: url(../images/nav-main.gif) no-repeat; /*contains all hover states*/
	}
	
	#nav_home a.top, #nav_membership a.top, #nav_history a.top, #nav_lifesaving a.top, #nav_junioractivities a.top, #nav_seniorsports a.top, #nav_newsevents a.top, #nav_thesurfclub a.top {
		height: 53px;
	}

	/*first, put the initial states in place*/
	
	#nav_home a {
		background-position: -2px 0;
		width: 80px;
	}
	
	#nav_membership a {
		background-position: -82px 0;
		width: 112px;
	}
	
	#nav_history a {
		background-position: -194px 0;
		width: 89px;
	}
	
	#nav_lifesaving a {
		background-position: -283px 0;
		width: 105px;
	}
	
	#nav_junioractivities a {
		background-position: -388px 0;
		width: 152px;
	}
	
	#nav_seniorsports a {
		background-position: -540px 0;
		width: 135px;
	}
	
	#nav_newsevents a {
		background-position: -675px 0;
		width: 138px;
	}
	
	#nav_thesurfclub a {
		background-position: -813px 0;
		width: 145px;
	}
	
	/*active area - selected states - the code could be based on a body class, and probably work better.*/
	
	#nav_home.on a {
		background-position: -2px -106px;
	}
	
	#nav_membership.on a {
		background-position: -82px -106px;
	}
	
	 #nav_history.on a {
		background-position: -194px -106px;
	 } 
	
	#nav_lifesaving.on a {
		background-position: -283px -106px;
	}
	
	#nav_junioractivities.on a {
		background-position: -388px -106px;
	}
	
	#nav_seniorsports.on a {
		background-position: -540px -106px;
	}
	
	#nav_newsevents.on a {
		background-position: -675px -106px;
	}
	
	#nav_thesurfclub.on a {
		background-position: -813px -106px;
	}
	
	/*hover states*/
	
	#nav_home a:hover, #nav_home:hover a, #nav_home.over a {
		background-position: -2px -53px;
	}
	
	#nav_membership a:hover, #nav_membership:hover a, #nav_membership.over a {
		background-position: -82px -53px;
	}
	
	#nav_history a:hover, #nav_history:hover a, #nav_history.over a {
		background-position: -194px -53px;
	}
	
	#nav_lifesaving a:hover, #nav_lifesaving:hover a, #nav_lifesaving.over a {
		background-position: -283px -53px;
	}
	
	#nav_junioractivities a:hover, #nav_junioractivities:hover a, #nav_junioractivities.over a {
		background-position: -388px -53px;
	}
	
	#nav_seniorsports a:hover, #nav_seniorsports:hover a, #nav_seniorsports.over a {
		background-position: -540px -53px;
	}
	
	#nav_newsevents a:hover, #nav_newsevents:hover a, #nav_newsevents.over a {
		background-position: -675px -53px;
	}
	
	#nav_thesurfclub a:hover, #nav_thesurfclub:hover a, #nav_thesurfclub.over a {
		background-position: -813px -53px;
	}
	
	


/*--------------------------*/
/*------ footer nav -----------*/
/*--------------------------*/
	#nav-footer {
		position: relative;
		height: 47px;
		width: 530px;
		margin: 0px 0px 0px 0px;
		padding: 0;
	}

	#nav-footer a {
		text-decoration: none;
	}

	#nav-footer li.top { /*float the main list items*/
		margin: 0;
		float: left;
		display: block;
	}

	#nav-footer li a {
		color: #224d6f;
		display: block;
		/*width: 93px;*/
		padding: 0;
	}

	#nav-footer li.on a {
		color: #f90;
	}

	
	/*do the image replacement*/

	#nav-footer li span {
		/*position: absolute;
		left: -9384px;*/
		display: none;
	}
	
	#nav_contactus {
		padding-left: 2px;
	}

	#nav_contactus a, #nav_sitemap a, #nav_privacy a, #nav_disclaimer a, #nav_sponsors a {
		display: block;
		position: relative;
		margin: 0px;
		padding: 0px;
		background: url(../images/nav-footer.gif) no-repeat; /*contains all hover states*/
		height: 47px;
	}
	

	/*first, put the initial states in place*/
	
	#nav_contactus a {
		background-position: -2px 0;
		width: 115px;
	}
	
	#nav_sitemap a {
		background-position: -117px 0;
		width: 87px;
	}
	
	#nav_privacy a {
		background-position: -204px 0;
		width: 84px;
	}
	
	#nav_disclaimer a {
		background-position: -288px 0;
		width: 108px;
	}
	
	#nav_sponsors a {
		background-position: -396px 0;
		width: 100px;
	}
	
	
	/*active nav items*/
	
	 #nav_privacy.on a {
		background-position: -204px -94px;
	 } 
	 /*add selectors for the other li's and background-positions*/
	 
	 
	
	/*hover states*/
	
	#nav_contactus a:hover, #nav_contactus:hover a, #nav_contactus.over a {
		background-position: -2px -47px;
	}
	
	#nav_sitemap a:hover, #nav_sitemap:hover a, #nav_sitemap.over a {
		background-position: -117px -47px;
	}
	
	#nav_privacy a:hover, #nav_privacy:hover a, #nav_privacy.over a {
		background-position: -204px -47px;
	}
	
	#nav_disclaimer a:hover, #nav_disclaimer:hover a, #nav_disclaimer.over a {
		background-position: -288px -47px;
	}
	
	#nav_sponsors a:hover, #nav_sponsors:hover a, #nav_sponsors.over a {
		background-position: -396px -47px;
	}
	
	
	



/*--------------------------*/
/*------ sub nav -----------*/
/*--------------------------*/



/* subnav bg colour: 020c24 */


#sub-nav
{
	margin: 0px 0px 0px 11px;
	padding: 0;
	list-style-type: none;
}

#sub-nav li { 
	margin: 0 0 1px 0; 
	
	/*width: 236px;*/
}

#sub-nav a
{
	display: block;
	color: #FFF;
	background-color: #020c24;
	padding: 6px 5px 6px 9px;
	text-decoration: none;
	width: 222px;
	/*background: url(../images/bg-sub-nav.jpg) 0px 0px repeat-y;*/
}

#sub-nav a.on
{
	background-color: #111e3d;
}

#sub-nav a:hover
{
	background-color: #15213e;
	color: #FFF;
	
	/*background: url(../images/bg-sub-nav.jpg) 0px 0px repeat-y;*/
}
