rem: fullsizeLink.href = thumbnails[currentImageIndex].parentNode.href + '&thumbIndex=' + currentImageIndex; 
add: fullsizeLink.href = thumbnails[currentImageIndex].parentNode.href + (thumbnails[currentImageIndex].parentNode.href.indexOf('?') >= 0 ? '&' : '?') + 'thumbIndex=' + currentImageIndex; 
context: function insertimagedatablock() {    var dataBlock = document.createElement('div');    dataBlock.id = 'imagedatablock';    var dataBlockHeading = document.createElement('h3');    dataBlockHeading.appendChild(document.createTextNode(PHOTO_DATA));    dataBlock.appendChild(dataBlockHeading);    if (thumbnails[currentImageIndex].className.match(/size:=([0-9]+)=/)) {	var imageSize = Number(RegExp.$1) / 1024;	var sizeInfo = document.createElement('p');	sizeInfo.appendChild(	    document.createTextNode(FILE_SIZE.replace(/%SIZE%/, Math.round(imageSize))));	dataBlock.appendChild(sizeInfo);    }    if (thumbnails[currentImageIndex].className.match(/summary:=([^=]+)=/)) {	var summaryInfo = document.createElement('p');	summaryInfo.appendChild(document.createTextNode(SUMMARY + RegExp.$1));	dataBlock.appendChild(summaryInfo);    }    if (thumbnails[currentImageIndex].className.match(/description:=(.+)=/)) {	var descriptionInfo = document.createElement('p');	descriptionInfo.appendChild(document.createTextNode(DESCRIPTION + RegExp.$1));	dataBlock.appendChild(descriptionInfo);    }    var fullsizeLink = document.createElement('a');    fullsizeLink.id = 'fullsizelink';    fullsizeLink.href = thumbnails[currentImageIndex].parentNode.href +	'&thumbIndex=' + currentImageIndex;    /* Allow a user to rejoin the slideshow at this point */    addEvent(fullsizeLink, 'click', saveCurrentImageIndex, false);    fullsizeLink.appendChild(document.createTextNode(VIEW_IMAGE));    var linkPara = document.createElement('p');    linkPara.appendChild(fullsizeLink);    dataBlock.appendChild(linkPara);    /* In Gecko-based browsers, this'll fade the data block in smoothly. */    dataBlock.style.MozOpacity = 0.2;    showImageDataFadeTimeout = setTimeout('fadeInImageDataBlock()', 50);    document.getElementById('main-image-container').appendChild(dataBlock);}
meta: 3727	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3727/b631f6d266dbe0d9c0fccd9ec2a7e6c289a8c840/thumbnail-functions.js/buggy/gallery2/themes/ajaxian/javascript/thumbnail-functions.js