if (document.images) {
	stoproll = 0;
	starrightfull = new Image(); starrightfull.src = 'images/star-right-full.gif';
	starleftfull = new Image(); starleftfull.src = 'images/star-left-full.gif';
	  
	starrightempty = new Image(); starrightempty.src = 'images/star-right-empty.gif';
	starleftempty = new Image(); starleftempty.src = 'images/star-left-empty.gif';
	function changeImages() {
		if (document.images) {
			for (var i=0; i<changeImages.arguments.length; i+=2) {
				document.getElementById(changeImages.arguments[i]).src = eval(changeImages.arguments[i+1] + ".src");
			}
		}
	}
}
function changestars(starson, maxstars) {
	if (stoproll == 0) {
		for (x=1;x<=maxstars;x++) {
			if (x <= starson) ontype='full'; else ontype='empty';
			if (x % 2 == 0) type='right'; else type='left';
			startype = 'star'+type+ontype;
			starname = 'star'+x;
			changeImages(starname,startype);
			document.getElementById('startext').innerHTML = (starson/2)+' stars out of '+maxstars;
			document.getElementById('starval').value = starson/2;
		}
	}
}
function stopstars () {
	stoproll = 1;
	xx = setTimeout("startstars()",1500);
}
function startstars () {
	stoproll = 0;
}
