
// ####################
// IMPORTANT
// MAKE SURE TO USE FULL URL FOR IMAGE PATHS SO THAT IMAGES WILL SHOW UP FROM CALENDAR PAGES
// ####################



// get 1st index
var intImgIndex = rand2(4);  

// write HTML for 1st image, with enclosing <a>, alt text, and caption as defined above
// document.write('<div class="sidebox"><h2>What\'s Hot</h2></div>');  

document.write('<li class="' + aryImageItems[intImgIndex].div + '" style="background-image: url(images/' + aryImageItems[intImgIndex].imagefilename + '.jpg)"><span class="title">' + aryImageItems[intImgIndex].title + '</span><span class="text">' + aryImageItems[intImgIndex].text + '</span><span class="text"><a href="' + aryImageItems[intImgIndex].url + '">Learn More</span></a></li>');