// JavaScript Document

//Random Image Display

NumberOfImagesToRotate = 31;

FirstPart = '<a href="http://www.miamiparties.com/random/miami-parties-random-';
MiddlePart='.jpg" rel="lightbox" title="Hit Refresh for another Random Pic!"><img src="http://www.miamiparties.com/random/miami-parties-random-';
LastPart = '.jpg" width="143" height="215"></a>';

function printImage() {
var r = Math.ceil(Math.random() * NumberOfImagesToRotate);
document.write(FirstPart + r + MiddlePart + r + LastPart);
}
