var theImages = new Array() // do not change this
theImages[0] = 'rotate1'
theImages[1] = 'rotate2'
theImages[2] = 'rotate3'
theImages[3] = 'rotate4'

var theCaption = new Array() // Captions may be used if user has stylesheets turned off. Make sure rotate Image is set to 'true' in init.js
theCaption[0] = '<h3>Award</h3><span>Voted Among America\'s Best Hospitals 2007</span>'
theCaption[1] = '<h3>Award</h3><span>Test Description 2</span>'
theCaption[2] = '<h3>Award</h3><span>Test Description 3</span>'
theCaption[3] = '<h3>Award</h3><span>Test Description 4</span>'

// do not edit anything below this line
var j = 0
var p = theImages.length;
var whichImage = Math.round(Math.random()*(p-1));

function rotateImage(id,caption){
    var box = document.getElementById(id);
    if (box){
        box.className = theImages[whichImage];
        if (caption) box.innerHTML = theCaption[whichImage];
    }
}

scrippsSafeAddOnload("rotateImage('h_awards', true)");

