/*Feature_Image_Array.js
*/

  
   // ====================
   // Setup Random Image Array:
   // ====================

var currentdate = 0
var core = 0


function StringArray (n) {
  this.length = n;   
  for (var i =1; i <= n; i++) {
    this[i] = ' '
  
  }
}

image = new StringArray(10)
image[0] = 'img/works/th_img01.jpg'
image[1] = 'img/works/th_img02.jpg'
image[2] = 'img/works/th_img03.jpg'
image[3] = 'img/works/th_img04.jpg'
image[4] = 'img/works/th_img05.jpg'
image[5] = 'img/works/th_img06.jpg'
image[6] = 'img/works/th_img07.jpg'
image[7] = 'img/works/th_img08.jpg'
image[8] = 'img/works/th_img09.jpg'
image[9] = 'img/works/th_img10.jpg'

var ran = 60/image.length

function ranimage() {
  currentdate = new Date()
  core = currentdate.getSeconds()
  core = Math.floor(core/ran)
    return(image[core])
}

