var c = 0;
var cards = new Array();
var t;
var inputC;
cards[0] = "images/photo/cards/card08.jpg";
cards[1] = "images/photo/cards/card01.jpg";
cards[2] = "images/photo/cards/card02.jpg";
cards[3] = "images/photo/cards/card03.jpg";
cards[4] = "images/photo/cards/card04.jpg";
cards[5] = "images/photo/cards/card05.jpg";
cards[6] = "images/photo/cards/card06.jpg";
cards[7] = "images/photo/cards/card07.jpg";
function rotateImages()
{
	document.getElementById("myImage").src=cards[c];
	c = c + 1;
	c = c % cards.length;
	clearTimeout(t);
	t = setTimeout("rotateImages()",6000);
}

function rotateGroupImages(inputC)
{
	c = inputC;
	document.getElementById("myImage").src=cards[c];
	c = c + 1;
	c = c % cards.length;
	clearTimeout(t);
	t = setTimeout("rotateGroupImages(c)",6000);
}

function showImage(imageName) {
	if (document.getElementById) {
		var imageType = imageName.substring(0,(imageName.length - 2));
		var fileName = "images/photo/" + imageType + "/" + imageName + ".jpg";
		document.getElementById("mainImage").src = fileName;
	}
}

function assignImage(elementName, imageName) {
	if (document.getElementById) {
		var fileName = "images/photo/cards/" + imageName + ".jpg";
		document.getElementById(elementName).src = fileName;
	}
}




