function onStarRaterMouseOver(id, name, numStars, currentIndex, isOver, folder, obj, event, tipText, tipWidth) {	

	for (var starIndex = 1; starIndex <= numStars; starIndex++) {
	    var isDisplay = (isOver && (starIndex <= currentIndex));
	    var starInactive = document.getElementById(name+'_'+id+'_i'+starIndex);
	    if (starInactive != null) starInactive.src = folder + 'rate_' + (isDisplay ? '2' : '0') + '.gif';
	    var starActive = document.getElementById(name+'_'+id+'_a'+starIndex);
	    if (starActive != null) starActive.src = folder + 'rate_' + (isDisplay ? '2' : (isOver ? '0' : '1')) + '.gif';
	}
}	    


function setStarRater(id, name, numStars, starWidth, starHeight, starRating, folder) {	
	for (var starIndex = 1; starIndex <= numStars; starIndex++) {
	    var width = starWidth;
	    
	    if (starIndex - 1 >= Math.ceil(starRating)) width = 0;
	    else if (starIndex - 1 >= Math.floor(starRating)) width = starWidth * (starRating - Math.floor(starRating));

	    var starDiv = document.getElementById(name+'_'+id+'_'+starIndex);
	    if (starDiv != null); starDiv.style.clip = 'rect(0px,'+width+'px,'+starHeight+'px,0px)';
	    
	    var starInactive = document.getElementById(name+'_'+id+'_i'+starIndex);
	    if (starInactive != null) starInactive.src = folder + 'rate_0.gif';
	    var starActive = document.getElementById(name+'_'+id+'_a'+starIndex);
	    if (starActive != null) starActive.src = folder + 'rate_1.gif';
	}
}	    
