var currentSnapshot = 1;
function nextSnapshot() 
{  
	if(currentSnapshot == 1)
	{
		document.btPrev.src = "img/varios/btprev_on.jpg"
	}
	if(currentSnapshot != snapshotsQ)
	{
		currentSnapshot++;
		document.snapshot.src = "./img/slideshow/snapshot" + currentSnapshot + ".jpg"; 
	}
	if(currentSnapshot == snapshotsQ)
	{
		document.btNext.src = "img/varios/btnext_off.jpg"
	}
}

function prevSnapshot() 
{  
	if(currentSnapshot == snapshotsQ)
	{
		document.btNext.src = "img/varios/btnext_on.jpg"
	}
	if(currentSnapshot != 1)
	{
		currentSnapshot--;
		document.snapshot.src = "./img/slideshow/snapshot" + currentSnapshot + ".jpg"; 
	}
	if(currentSnapshot == 1)
	{
		document.btPrev.src = "img/varios/btprev_off.jpg"
	}
}

function showSnapshotsPopup()
{
	var path = "img/slideshow/big";
	MM_openBrWindow('slideshow.htm?path=' + path + '&currentSnapshot=' + currentSnapshot + '&snapshotsQ=' + snapshotsQ, 'ampliacion', 'width=837, height=620');
}