/* star rating code - use lists because its more semantic */
/* No javascript required */
/* all the stars are contained in one matrix to solve rollover problems with delay */
/* the background position is just shifted to reveal the correct image. */
/* the images are 16px by 16px and the background position will be shifted in negative 16px increments */
/*  key:  B=Blank : O=Orange : G = Green * /
/*..... The Matrix ....... */
/* colours ....Background position */
/* B B B B B - (0 0)*/
/* G B B B B - (0 -16px)*/
/* G G B B B - (0 -32px)*/
/* G G G B B - (0 -48px)*/
/* G G G G B - (0 -64px)*/
/* G G G G G - (0 -80px)*/
/* O B B B B - (0 -96px)*/
/* O O B B B - (0 -112px)*/
/* O O O B B - (0 -128px)*/
/* O O O O B - (0 -144px)*/
/* O O O O O - (0 -160px)*/


/* the default rating is placed as a background image in the ul */
/* use the background position according to the table above to display the required images*/
#community-wrap .rating{
	width:80px;
	height:16px;
	margin:0 0 5px 0;
	padding:0;
	list-style:none;
	position:relative;
	background: url(../images/star-matrix.png) no-repeat 0 0;
	overflow:hidden;
}
/* add these classes to the ul to effect the change to the correct number of stars */
#community-wrap .rated0star {background-position:0 0}
#community-wrap .rated1star {background-position:0 -16px}
#community-wrap .rated2star {background-position:0 -32px}
#community-wrap .rated3star {background-position:0 -48px}
#community-wrap .rated4star {background-position:0 -64px}
#community-wrap .rated5star {background-position:0 -80px}

#community-wrap ul.rating li {
	cursor:pointer;
        /*ie5 mac doesn't like it if the list is floated\*/
	float:left;
	/* end hide */
	/* text-indent:-999em; */
	text-indent:999em;
	list-style:none;
}
#community-wrap ul.rating li a {
	position:absolute;
	left:0;
	top:0;
	width:16px;
	height:16px;
	text-decoration:none;
	z-index: 200;
}
#community-wrap ul.rating li.one a {left:0}
#community-wrap ul.rating li.two a {left:16px;}
#community-wrap ul.rating li.three a {left:32px;}
#community-wrap ul.rating li.four a {left:48px;}
#community-wrap ul.rating li.five a {left:64px;}

#community-wrap ul.rating li a:hover {
	z-index:2;
	width:80px;
	height:16px;
	overflow:hidden;
	left:0;	
	background: url(../images/star-matrix.png) no-repeat 0 0
}
#community-wrap ul.rating li.one a:hover {background-position:0 -176px;}
#community-wrap ul.rating li.two a:hover {background-position:0 -192px;}
#community-wrap ul.rating li.three a:hover {background-position:0 -208px}
#community-wrap ul.rating li.four a:hover {background-position:0 -224px}
#community-wrap ul.rating li.five a:hover {background-position:0 -240px}
#community-wrap ul.rating li.six a:hover {background-position:0 -256px}

#community-wrap span.error {color:red;}
#community-wrap span.success {color:green;}