// Contains core code to support paging and display of next/previous buttons
// Relies on common naming of .htm files (page number appended to base name)
// Also relies on a custom .js file for the album. This .js file
// contains class overrides and should be loaded after this file!
// Author rjw 10/18/2001

var gAlbumNextPage='/';
var gAlbumPreviousPage='/';
var gAlbumNextAlt='Next';
var gAlbumPreviousAlt='Previous';

// set up Prev/Next PageLinks
function fAlbumSetPageLinks(sPrevPage, sPrevAlt, sNextPage, sNextAlt){
	gAlbumPreviousPage=sPrevPage;
	gAlbumPreviousAlt=sPrevAlt;
	gAlbumNextPage=sNextPage;
	gAlbumNextAlt=sNextAlt;
}

// Prototype for Writing Next Button Function
function fAlbumWriteNextButton(){
	alert('Programming Error: You did not assign a custom function to "fo_WriteNext"!');
}

// Prototype for Writing Previous Button Function
function fAlbumWritePrevButton(){
	alert('Programming Error: You did not assign a custom function to "fo_WritePrevious"!');
}

function fAlbumGoNext(){
	top.location.href = gAlbumNextPage;
}

function fAlbumGoPrevious(){
	top.location.href = gAlbumPreviousPage;
}


// Use prototypes to avoid errors until redefined.
var fo_WriteNext=fAlbumWriteNextButton;
var fo_WritePrevious=fAlbumWritePrevButton;

