/* 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)*/

/**** HTML CODE FOR INTERGRATION ****/
/*
<link href="rating.css" rel="stylesheet" media="all" type="text/css">
<div>note :</div>
<div>
	<ul class="rating nostar" id="ratingstar" name="ratingstar">
		<li class="one"><a href="javascript:;" onclick="javascript:document.getElementById('note').value='1';document.getElementById('ratingstar').className='rating onestar';" title="1">1</a></li>
		<li class="two"><a href="javascript:;" onclick="javascript:document.getElementById('note').value='2';document.getElementById('ratingstar').className='rating twostar';" title="2">2</a></li>
		<li class="three"><a href="javascript:;" onclick="javascript:document.getElementById('note').value='3';document.getElementById('ratingstar').className='rating threestar';" title="3">3</a></li>
		<li class="four"><a href="javascript:;" onclick="javascript:document.getElementById('note').value='4';document.getElementById('ratingstar').className='rating fourstar';" title="4">4</a></li>
		<li class="five"><a href="javascript:;" onclick="javascript:document.getElementById('note').value='5';document.getElementById('ratingstar').className='rating fivestar';" title="5">5</a></li>
	</ul>
	<input name="note" id="note" type="hidden">
</div>
*/
/**** END HTML CODE ****/

/* 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*/
.rating{
	width:60px;
	height:10px;
	margin:0 0 0 0;
	padding:0;
	list-style:none;
	clear:both;
	position:relative;
	background: url(/images/scripts/star-matrix.png) no-repeat 0 0;
}
/* add these classes to the ul to effect the change to the correct number of stars */
.nostar {background-position:0 0}
.onestar {background-position:0 -10px}
.twostar {background-position:0 -20px}
.threestar {background-position:0 -30px}
.fourstar {background-position:0 -40px}
.fivestar {background-position:0 -50px}
ul.rating li {
	cursor: pointer;
 	/*ie5 mac doesn't like it if the list is floated\*/
	float:left;
	/* end hide*/
	text-indent:-999em;
}
ul.rating li a {
	position:absolute;
	left:0;
	top:0;
	width:12px;
	height:10px;
	text-decoration:none;
	z-index: 200;
}
ul.rating li.one a {left:0}
ul.rating li.two a {left:12px;}
ul.rating li.three a {left:24px;}
ul.rating li.four a {left:36px;}
ul.rating li.five a {left:48px;}
ul.rating li a:hover {
	z-index:2;
	width:60px;
	height:10px;
	overflow:hidden;
	left:0;	
	background: url(/images/scripts/star-matrix.png) no-repeat 0 0

}
ul.rating li.one a:hover {background-position:0 -10px;}
ul.rating li.two a:hover {background-position:0 -20px;}
ul.rating li.three a:hover {background-position:0 -30px}
ul.rating li.four a:hover {background-position:0 -40px}
ul.rating li.five a:hover {background-position:0 -50px}
/* end rating code */

