﻿*html {
  filter: expression(document.execCommand("BackgroundImageCache", false, true));
}
*html span:hover
{
	background:iherit;
}
#nav_main{
	height:30px;
	display:block;
	padding-left:10px;
	/*background:url(/images/tabs/tab_bg.gif) repeat;*/
}
/* default tab*/
#nav_main li, #nav_main li.leftend{
	background:url(/images/tabs/tab_extender.jpg) right no-repeat;
	display:block;
	float:left;
	height:30px;
}
*html #nav_main li{margin-bottom:-2px;}
#nav_main li a{
	background:url(/images/tabs/tab_left.gif) no-repeat;
	display:block;
	float:left;
	height:30px;
	padding:10px 15px 5px 13px;
	color:#fff;
	cursor:pointer;
	white-space:nowrap;
	overflow:hidden;
}
*html #nav_main li a{background-position: 0px 0px; margin-bottom:-3px;}
*html #nav_main li a:hover{background:url(/images/tabs/tab_left.gif) no-repeat;}

/* normal tab which is at the right end*/
#nav_main li.rightend, #nav_main li.selected_nearend{
	background:url(/images/tabs/tab_right.jpg) right no-repeat;
	display:block;
	float:left;
	height:30px;
}
#nav_main li.rightend a{
	padding:10px 25px 5px 14px;
}

/* normal tab which is at the left end*/
#nav_main li.leftend a{
	background:url(/images/tabs/tab_leftend.gif) no-repeat;
	padding:10px 24px 5px 12px;
}
*html #nav_main li.leftend a:hover{background:url(/images/tabs/tab_leftend.gif) no-repeat;}


/* selected tab which is at the left end*/
#nav_main li.selected_leftend, #nav_main li.selected{
	background:url(/images/tabs/tab_right_selected.gif) right no-repeat;
	display:block;
	float:left;
	height:30px;
}
#nav_main li.selected_leftend a, #nav_main li.selected a, #nav_main li.selected_rightend a{
	background:url(/images/tabs/tab_leftend_selected.gif) no-repeat;
	display:block;
	float:left;
	height:30px;
	padding:8px 14px 7px 12px;
	color:#008D5C;
	white-space:normal;
}
*html #nav_main li.selected_leftend a:hover, 
*html #nav_main li.selected a:hover, 
*html #nav_main li.selected_rightend a:hover{background:url(/images/tabs/tab_leftend_selected.gif) no-repeat;}

/* selected tab which is at the right end*/
#nav_main li.selected_rightend
{
	padding-right:15px;
	background:url(/images/tabs/tab_rightend_selected.gif) no-repeat right;

}
/* tab which is at the right end and has a selected tab to the left*/
#nav_main li.selected_nearend a{
	background:url(/images/tabs/tab_left_nearSelected.gif) no-repeat;
	padding:10px 24px 7px 14px;
}
*html #nav_main li.selected_nearend a:hover{background:url(/images/tabs/tab_left_nearSelected.gif) no-repeat;}


/* tab to the right of the selected tab */
#nav_main li.selected_right a{
	background:url(/images/tabs/tab_left_nearSelected.gif) no-repeat;
	overflow:hidden;
}
*html #nav_main li.selected_right a:hover{background:url(/images/tabs/tab_left_nearSelected.gif) no-repeat;}

*html #nav_main #home, *html #nav_main #news, *html #nav_main #our_residents, *html #nav_main #donations, 
*html #nav_main #horse_advice, *html #nav_main #welfare_grants, *html #nav_main #gallery, *html #nav_main #contact_us
{
	color:#6B512E;
}
#nav_main #home{
	width:34px;
	height:17px;
	position:relative;
	font-size:8px;
	display:block;
}

#nav_main #news{
	width:32px;
	height:17px;
	position:relative;
	font-size:8px;
}

#nav_main #our_residents{
	width:58px;
	height:17px;
	position:relative;
	font-size:8px;
}

#nav_main #donations{
	width:61px;
	height:17px;
	position:relative;
	font-size:0px;
}


#nav_main #horse_advice{
	width:79px;
	height:17px;
	position:relative;
	font-size:8px;
}

#nav_main #welfare_grants{
	width:91px;
	height:17px;
	position:relative;
	font-size:8px;
}

#nav_main #gallery{
	width:44px;
	height:17px;
	position:relative;
	font-size:8px;
}
#nav_main #contact_us{
	width:64px;
	height:17px;
	position:relative;
	font-size:8px;
}

#home span{
	width:34px;
	height:17px;
	position:absolute;
	background: url(/images/tabs/nm_home.gif) no-repeat;
}

#nav_main li.selected_leftend #home span{
	background: url(/images/tabs/nm_home_selected.gif) no-repeat;
	width:34px;
}


#news span{
	width:32px;
	height:17px;
	position:absolute;
	background: url(/images/tabs/nm_news.gif) no-repeat;
}
#nav_main li.selected #news span{
	background: url(/images/tabs/nm_news_selected.gif) no-repeat;
	width:32px;
}

#our_residents span{
	width:58px;
	height:17px;
	position:absolute;
	background: url(/images/tabs/nm_our_residents.gif) no-repeat;
}
#nav_main li.selected #our_residents span{
	background: url(/images/tabs/nm_our_residents_selected.gif) no-repeat;
	width:58px;
}

#donations span{
	width:61px;
	height:17px;
	position:absolute;
	background: url(/images/tabs/nm_donations.gif) no-repeat;
}
#nav_main li.selected #donations span{
	background: url(/images/tabs/nm_donations_selected.gif) no-repeat;
	width:61px;
}

#horse_advice span{
	width:79px;
	height:17px;
	position:absolute;
	background: url(/images/tabs/nm_horse_advice.gif) no-repeat;
}
#nav_main li.selected #horse_advice span{
	background: url(/images/tabs/nm_horse_advice_selected.gif) no-repeat;
	width:79px;
}

#welfare_grants span{
	width:91px;
	height:17px;
	position:absolute;
	background: url(/images/tabs/nm_welfare_grants.gif) no-repeat;
}
#nav_main li.selected #welfare_grants span{
	background: url(/images/tabs/nm_welfare_grants_selected.gif) no-repeat;
	width:91px;
}

#gallery span{
	width:44px;
	height:17px;
	position:absolute;
	background: url(/images/tabs/nm_gallery.gif) no-repeat;
}
#nav_main li.selected #gallery span{
	background: url(/images/tabs/nm_gallery_selected.gif) no-repeat;
	width:44px;
}
#contact_us span{
	width:64px;
	height:17px;
	position:absolute;
	background: url(/images/tabs/nm_contact_us.gif) no-repeat;
}

#nav_main li.selected_rightend #contact_us span{
	background: url(/images/tabs/nm_contact_us_selected.gif) no-repeat;
	width:64px;
}


