<!--Focal Image Randomizer-->


var currentdate = 0
var core = 0

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

}
}


image = new StringArray(24)
image[0] = 'images/DallasResidence.jpg'
image[1] = 'images/Emory.jpg'
image[2] = 'images/allsteel.jpg'
image[3] = 'images/BellSouth.jpg'
image[4] = 'images/mercer.jpg'
image[5] = 'images/corpshowroom.jpg'
image[6] = 'images/studio.jpg'
image[7] = 'images/glenlake.jpg'
image[8] = 'images/alfie.jpg'
image[9] = 'images/houstonresidence.jpg'
image[10] = 'images/liturgical1.jpg'
image[11] = 'images/facade1.jpg'
image[12] = 'images/kids2.jpg'
image[13] = 'images/childrens.jpg'
image[14] = 'images/supergroup.jpg'
image[15] = 'images/atlantaRes.jpg'
image[16] = 'images/juve.jpg'
image[17] = 'images/levine.jpg'
image[18] = 'images/cushman.jpg'
image[19] = 'images/bunn.jpg'
image[20] = 'images/pinterior.jpg'
image[21] = 'images/hok.jpg'
image[22] = 'images/bunnrear.jpg'
image[23] = 'images/interconohare.jpg'



caption = new StringArray(24)
caption[0] = 'PRIVATE RESIDENCE'
caption[1] = 'Emory University &bull; Marian K. Heilbrun Library for Music and Media'
caption[2] = 'Allsteel + Gunlocke Showroom'
caption[3] = 'Corporate Campus'
caption[4] = 'Mercer University &bull; Fickling Hall for Music'
caption[5] = 'Corporate Environments'
caption[6] = 'Studio'
caption[7] = 'One Glenlake'
caption[8] = 'Alief-Taylor High School'
caption[9] = 'PRIVATE RESIDENCE'
caption[10] = 'Riverbend Church'
caption[11] = 'Corporate Campus'
caption[12] = 'KidsII'
caption[13] = 'Children\'s Healthcare of Atlanta'
caption[14] = 'Super Group'
caption[15] = 'Private Residence'
caption[16] = 'DeKalb County Juvenile Court'
caption[17] = 'Levine Children\'s Hospital'
caption[18] = 'Cushman + Wakefield'
caption[19] = 'Private Residence'
caption[20] = 'Culinary Institute of Charleston'
caption[21] = 'HO+K'
caption[22] = 'Private Residence'
caption[23] = 'Intercontinental Hotel O\'Hare'



subhed = new StringArray(24)
subhed[0] = 'FORT WORTH, TEXAS'
subhed[1] = 'ATLANTA, GEORGIA'
subhed[2] = 'ATLANTA, GEORGIA'
subhed[3] = 'Atlanta, GEORGIA'
subhed[4] = 'Macon, GEORGIA'
subhed[5] = 'Atlanta, GEORGIA'
subhed[6] = 'Buenos Aires, Argentina'
subhed[7] = 'Atlanta, GEORGIA'
subhed[8] = 'Alief, TEXAS'
subhed[9] = 'Houston, TEXAS'
subhed[10] = 'Austin, TEXAS'
subhed[11] = 'Atlanta, Georgia'
subhed[12] = 'Alpharetta, Georgia'
subhed[13] = 'Atlanta, Georgia'
subhed[14] = 'Atlanta, Georgia'
subhed[15] = 'Atlanta, Georgia'
subhed[16] = 'Decatur, Georgia'
subhed[17] = 'Charlotte, NORTH CAROLINA'
subhed[18] = 'Atlanta, Georgia'
subhed[19] = 'Atlanta, Georgia'
subhed[20] = 'Charleston, South Carolina'
subhed[21] = 'Atlanta, Georgia'
subhed[22] = 'Atlanta, Georgia'
subhed[23] = 'Chicago, Illinois'




var ran = 60/image.length

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

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

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

/*function ranprojlink() {
  currentdate = new Date()
  core = currentdate.getSeconds()
  core = Math.floor(core/ran)
  return(projlink[core])
}*/



	  
	  
	  

 <!--End Focal Image randomizer-->