rem: location = slideshowImages[thumbIndex]; 
add: if (!firstLoad) { location = slideshowImages[thumbIndex]; } else { hideLoadingMessage(); } 
context: function switchImages(thumbIndex, firstLoad) {    removeImageDataBlock();    if (currentImageIndex == thumbIndex && !firstLoad) {	addMessage("That image is already selected.");	return;    }    /* Wrap around */    if (thumbIndex < 0) {	thumbIndex = thumbnails.length - 1;    } else if (thumbIndex == thumbnails.length) {	thumbIndex = 0;    }    if (slideshowImageWidths[thumbIndex] < 0) {	/* This item is not a photo.. redirect to view it */	location = slideshowImages[thumbIndex];	return;    }    highlightCurrentThumb(thumbIndex);    updateItemTitle(thumbIndex);    hideLoadingMessage();    var newImageSrc = slideshowImages[thumbIndex];    var newImage = document.createElement('img');    mainPhoto.id = null; /* Isn't enough in some browsers */    mainPhoto.removeAttribute('id');    newImage.id = 'main-image';    addEvent(newImage, 'load', bigPhotoLoad, false);    addEvent(newImage, 'error', bigPhotoFail, false);    if (slideshowState == PLAYING) {	pause();	returnToPlaying = true;    }    /* Avoid showing loading message if its going to be fast */    showLoadingTimeout = setTimeout("showLoadingMessage()", 600);    addMessage("Swapping " + currentImageIndex + ", and " + thumbIndex + "...");    currentImageIndex = thumbIndex;    newImage.src = newImageSrc;    mainPhoto.parentNode.removeChild(mainPhoto);    document.getElementById('sliding-frame').getElementsByTagName('p')[0].appendChild(newImage);    setupMainImage();    if (mainPhoto.state == 'downsized') {	insertimagedatablock();    }}
meta: 3727	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3727/dfcee4b3f313c07278c3727d5013af8de2f7bf5c/thumbnail-functions.js/buggy/gallery2/themes/ajaxian/javascript/thumbnail-functions.js