﻿// JScript File

function downloadPhoto () {
    var handle = window.open(orignalPhotoDir + escape(photoArray[photoId][0]));
    if (handle) handle.focus();
}

function outputThumbnails (photoArray, photoDir, photoId) {

    for (var i = 0; i < photoArray.length; i++)
    {
        var cssClass = "";

        if (photoId == i)
        {
            cssClass = 'class="selected"';
        }

        document.write('<div ' + cssClass + '><a href="#' + (i+1) + '"><img src="' + escape(photoDir) + photoArray[i][4] + '" alt="' + photoArray[i][3] + '" border="0" /></a></div>');
    }
}

function movePhoto (id, element)
{
    photoId = id;
    
    var myPhoto = new Slideshow(id);
	myPhoto.initSwap();
	
}
