var count = 0;

function getNextImage(increment)
{
	switch(count % 4)
	{
		case 0:
		{
			document.write('<img src=\"../../images/hearts.gif\" alt=\"\" />');
			if (increment)
			{
				count++;
			}
			break;
		}
		case 1:
		{
			document.write('<img src=\"../../images/clubs.gif\" alt=\"\" />');
			if (increment)
			{
				count++;
			}
			break;
		}
		case 2:
		{
			document.write('<img src=\"../../images/diamonds.gif\" alt=\"\" />');
			if (increment)
			{
				count++;
			}
			break;
		}
		case 3:
		{
			document.write('<img src=\"../../images/spades.gif\" alt=\"\" />');
			if (increment)
			{
				count++;
			}
			break;
		}
	};
}

