<!-- 
    // JavaScript to interpolate random images into a page.
    
    var ic = 17;                     // Number of alternative images
    var i = new Array(ic);          // Array to hold filenames
    
    // Set up the images. save space by including path in the 'writeln' statement 
    for (var loop = 1; loop <ic; loop++)
{
   i[loop] = loop;
}
    
  
    function pickRandom(range) {
        if (Math.random)
            return Math.round(Math.random() * (range-1));
        //for older browser that doesn't support 'Math.random()'
        else {
            var now = new Date();
            return (now.getTime() / 1000) % range; //get rid of the milliseconds for Navigator
        }
    }

    // Write out 3 IMG tags, using a randomly-chosen image name.
        var choice = pickRandom(ic);
        for (loop = 0; loop <1; loop++){   
        document.writeln('<img src="http://www.actioncanada.ca/en/images/short/' + i[choice] + '.jpg" width="492" height="auto" />');
    //ensure that we don't go higher than the max of array, but get 3 different in most cases
        if(choice < 11){
            choice++;                 
        }else{
        choice=0;
        }
    }
// -->


 
