function get_object(id)
{
	if (document.getElementById)
	{
		return document.getElementById(id);
	}
	else if (document.all)
	{
		return document.all[id];
	}
	else if (document.layers)
	{
		return document.layers[id];
	}
	else
	{
		return null;
	}
}

function show_hide (id)
{
	object = get_object (id);
	if (object)
	{
		if (object.style.display == "none")
		{
			object.style.display = "";
		}
		else
		{
			object.style.display = "none";
		}
	}
}

function RatingIn (num, file, url, total)
{
	for (var x = 1; x <= num; x++)
	{
		object = get_object ('rating_' + file + '_' + x);
		object.src = url + 'images/rating_solid.gif';
	}
	for (var x = num + 1; x <= total; x++)
	{
		object = get_object ('rating_' + file + '_' + x);
		object.src = url + 'images/rating_empty.gif';
	}
}

function RatingOut (num, file, url, total)
{
	for (var x = 1; x <= num; x++)
	{
		object = get_object ('rating_' + file + '_' + x);
		object.src = url + 'images/rating_empty.gif';
	}
	RatingIn (num, file, url, total);
}