function RotatePic(itemName, path, total)
{
	randomNumber = Math.floor(Math.random()*total + 1);
	rb = path + '/rotate_' + randomNumber + '.jpg';

	if (document.getElementById)
	{
		rotated = new Image();
		rotated.src = rb;	
		document.getElementById(itemName).src = rotated.src;
	}

}
