// JavaScript Document
<!-- Begin
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 3000;
// Duration of crossfade (seconds)
var crossFadeDuration = 3;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic[0]= '/slideshow/bayoucountry.jpg';
Pic[1]= '/slideshow/bayoucountryblackandwhite.jpg';
Pic[2]= '/slideshow/bayoucountryd1.jpg';
Pic[3]= '/slideshow/bourbonandtoulouse.jpg';
Pic[4]= '/slideshow/cajunincapecod.jpg';
Pic[5]= '/slideshow/championdulis.jpg';
Pic[6]= 'slideshow/chimesstreetd1.jpg';
Pic[7]= 'slideshow/chimesstreetd2.jpg';
Pic[8]= 'slideshow/coffeeandbeignets.jpg';
Pic[9]= 'slideshow/cranedulisd1.jpg';
Pic[10]= 'slideshow/hurricaneinthequarterd1.jpg';
Pic[11]= 'slideshow/hurricaneinthequarterd2.jpg';
Pic[12]= 'slideshow/jawbreakerchoctawd1.jpg';
Pic[13]= 'slideshow/jazzfunerald1.jpg';
Pic[14]= 'slideshow/jazzfunerald2.jpg';
Pic[15]= 'slideshow/jazzfunerald3.jpg';
Pic[16]= 'slideshow/jeanlafittesblacksmithshop.jpg';
Pic[17]= 'slideshow/jeanlafittesblacksmithshopblackandwhite.jpg';
Pic[18]= 'slideshow/lightswitchd1.jpg';
Pic[19]= 'slideshow/lightswitchd3.jpg';
Pic[20]= 'slideshow/lightswitchd4.jpg';
Pic[21]= 'slideshow/lightswitchd5.jpg';
Pic[22]= 'slideshow/mardigraspalaced1.jpg';
Pic[23]= 'slideshow/mardigraspalaced2.jpg';
Pic[24]= 'slideshow/mardigraspalaced3.jpg';
Pic[25]= 'slideshow/morningonstcharles.jpg';
Pic[26]= 'slideshow/naturalfleurdelis.jpg';
Pic[27]= 'slideshow/naturalfleurdelisblackandwhite.jpg';
Pic[28]= 'slideshow/oakalley.jpg';
Pic[29]= 'slideshow/pipedreamd1.jpg';
Pic[30]= 'slideshow/pipedreamd2.jpg';
Pic[31]= 'slideshow/signaturefleurdelis.jpg';
Pic[32]= 'slideshow/stlouiscathedral.jpg';
Pic[33]= 'slideshow/stlouiscathedralblackandwhite.jpg';
Pic[34]= 'slideshow/visiblysoundjazz.jpg';
Pic[35]= 'slideshow/visiblysoundjazzd1.jpg';
Pic[36]= 'slideshow/watermeter.jpg';
Pic[37]= 'slideshow/willameana.jpg';
Pic[38]= 'slideshow/willameana1.jpg';
Pic[39]= 'slideshow/willameana2.jpg';
Pic[40]= 'slideshow/winstonsellshissould2.jpg';


// do not edit anything below this line
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
function runSlideShow() {
if (document.all) {
document.images.SlideShow.style.filter="blendTrans(duration=2)";
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow.filters.blendTrans.Apply();
}
document.images.SlideShow.src = preLoad[j].src;
if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}



function viewPic(img)
{ 	
    picfile = new Image(); 
    picfile.src =(img); 
    fileCheck(img); 
}

function fileCheck(img)
{ 	
    if( (picfile.width!=0) && (picfile.height!=0) )
    { 
        makeWindow(img); 
    }
    else 
    {
        funzione="fileCheck('"+img+"')"; 
        intervallo=setTimeout(funzione,50); 
    }
}

function makeWindow(img)
{ 	
    ht = picfile.height + 20;
    wd = picfile.width + 20; 

    var args= "height=" + ht + ",innerHeight=" + ht;
    args += ",width=" + wd + ",innerWidth=" + wd;
    if (window.screen) 
    { 
        var avht = screen.availHeight; 
        var avwd = screen.availWidth;
        var xcen = (avwd - wd) / 2; 
        var ycen = (avht - ht) / 2;
        args += ",left=" + xcen + ",screenX=" + xcen;
        args += ",top=" + ycen + ",screenY=" + ycen + ",resizable=yes"; 	
    }
    return window.open(img, '', args); 
} 

//Start Main Code
runSlideShow();
