var viscaptions = new Array();

function showCaption(id){
	var caption = document.getElementById(id);
	if(caption) {
		caption.style.visibility = "visible";
		viscaptions.push(caption);
	}
}

/*
function hideCaption() {
	alert("hiding caption");
	if(viscaptions.length) {
		for (x in viscaptions) {
			x.style.visibility = "hidden";
		}
	}
}*/


function hideCaption(id){
	var caption = document.getElementById(id);
	if(caption) {
		caption.style.visibility = "hidden";
	}
}
