	var starTimer;
	function showStars(starCount)
	{
		starCount = Number(starCount);
		clearStarTimer();
		if(starCount)
		{		
			for (var i = 1; i <= starCount; i++)
				document.getElementsByName("star-" + i)[0].className = "icon-star-full";	
			for (var i = starCount + 1; i <= 5; i++)
			{
				document.getElementsByName("star-" + i)[0].className = "icon-star";
			}									
		}	
	}
	
	function clearStarTimer(){
		if(starTimer){
			window.clearTimeout(starTimer);
			starTimer=null;
		}
	}
	
	function resetStars()
	{
		clearStarTimer();
		starCount = document.getElementsByName("saved_rating")[0].value;
		showStars(starCount);
	}
	
	function clearStars()
	{
		starTimer=window.setTimeout("resetStars()",300);
	}
