var captionWidth;
if (typeof rotatingImages !== 'undefined' &&
rotatingImages.length &&
typeof rotatingImageAlt !== 'undefined') {
var im = rotatingImages[Math.floor(rotatingImages.length * Math.random())];
document.write('');
var w = parseInt(im[1]);
captionWidth = (w > 341) ? '543px' : (543 - w) + 'px';
}