function COverview() {
	if (typeof countMyself.counter == 'undefined') {
		// It has not... perform the initilization
		countMyself.counter = 0;
	}
}

function setVisibility(objId, sVisibility) {
	var obj = document.getElementById(objId);
	obj.style.visibility = sVisibility;
}

function setDisplay(objId, sDisplay) {
	var obj = document.getElementById(objId);
	obj.style.display = sDisplay;
}


/**Javascript method for advancing and rewinding the
image slideshow.
\param imgId \b string Id attribute of image element.
\param txtId \b string Id attribute of element containing the image number string.
\param anchorId \b string Id attribute of anchor element around the image.
\param numImages \b int total number of images to cycle through.
\param urlArray \b array Array of strings containing image URLs.
\param direction \b int 0 is forward, >0 is backward.*/
function advanceImageSlideshow(imgId, txtId, anchorId, numImages, urlArray, direction) {
	if (typeof advanceImageSlideshow.nextPos == "undefined")
		advanceImageSlideshow.nextPos = 0;

	var imgObj = document.getElementById(imgId);
	var txtObj = document.getElementById(txtId);
	var anchorObj = document.getElementById(anchorId);

	if (direction == 0) {
		if (advanceImageSlideshow.nextPos >= numImages - 1)
			advanceImageSlideshow.nextPos = 0;
		else
			advanceImageSlideshow.nextPos++;
	}
	else {
		if (advanceImageSlideshow.nextPos <= 0)
			advanceImageSlideshow.nextPos = numImages - 1;
		else
			advanceImageSlideshow.nextPos--;
	}

	imgObj.src = urlArray[advanceImageSlideshow.nextPos];
	anchorObj.href = urlArray[advanceImageSlideshow.nextPos];
	txtObj.firstChild.data = advanceImageSlideshow.nextPos + 1;
}


function enableOverview() {
	setDisplay('Txt_Overview', 'inline');
	setDisplay('Txt_Specs', 'none');
}

function enableSpecs() {
	setDisplay('Txt_Overview', 'none');
	setDisplay('Txt_Specs', 'inline');
}

