////////////////////////////////////////////////////////////////////////
// This is a simplification of the slide projector system used in the //
// Coleman Family website. The two external variables are used by the //
// calling routine but are located  here to avoid  certain JavaScript //
// idiosyncracies.                                                    //
////////////////////////////////////////////////////////////////////////

var timerID       // Timer standard identifier
var slide  = 00   // Current slide number
var wrap_n = 33   // Wrap slides if greater than this value
var wrap_1 = 01   // Wrap slides (backwards) if it is less than 1 after first time
function projector(slide,ii)
{   var theImage,nn,NN,file
    nn=slide+ii
    if (nn>wrap_n) {nn=wrap_1}
    if (nn<wrap_1) {nn=wrap_n}
    if (slide==00) {nn=01}
    NN=String(nn);
    if (NN.length<2) {NN='0'+NN}
    file=('slides/'+NN+'.gif')
    theImage=false
    if (document.images) {theImage=document.images["Screen"]}
    if (theImage) {theImage.src=file}
    return (nn)
}


