function nextSlide(play){
	var location = '/media_vault/images/';
	startCount=startCount+1;
	if(!slideFile[startCount]){
		startCount=0;	
	}
	
	document.getElementById('slidecaption').innerHTML = slideCap[startCount];
	document.getElementById('imagedata').src = location+slideFile[startCount];
	if(play=='continue'){
		playSlideShow();	
	}
}

function prevSlide(){
	var location = '/media_vault/images/';
	if(startCount == 0){
		startCount = total-1;	
	}else{
		startCount = startCount-1;	
	}
	
	document.getElementById('imagedata').src = location+slideFile[startCount];
	document.getElementById('slidecaption').innerHTML = slideCap[startCount];
}

function playSlideShow(){
	if(automatic==true){
	setTimeout("nextSlide('continue')",3000);
	}
}

	function popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=425,height=400,left = 634,top = 437.5');");
	}
