<!--
var currentdate = 0
var core = 0

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
	this[i] = ' '
  }
}

var numberofimages = 59

image = new StringArray(numberofimages)
image[0] = 'Images/gallery/gallery%20large/ainsiediningsideboard.jpg'
image[1] = 'Images/gallery/gallery%20large/carltoncoffee.jpg'
image[2] = 'Images/gallery/gallery%20large/ainsliediningchairs.jpg'
image[3] = 'Images/gallery/gallery%20large/carltondining.jpg'
image[4] = 'Images/gallery/gallery%20large/bartlettsideboard.jpg'
image[5] = 'Images/gallery/gallery%20large/bartlettcoffeetable.jpg'
image[6] = 'Images/gallery/gallery%20large/bouverieentunit.jpg'
image[7] = 'Images/gallery/gallery%20large/carlton4dr4drwsboard.jpg'
image[8] = 'Images/gallery/gallery%20large/bouveriedresser.jpg'
image[9] = 'Images/gallery/gallery%20large/showroom.jpg'
image[10] = 'Images/gallery/gallery%20large/stockton6drw2drsboard.jpg'
image[11] = 'Images/gallery/gallery%20large/carltonsboard&dining.jpg'
image[12] = 'Images/gallery/gallery%20large/commgames.jpg'
image[13] = 'Images/gallery/gallery%20large/carltondiningandsboard.jpg'
image[14] = 'Images/gallery/gallery%20large/carltonottoman.jpg'
image[15] = 'Images/gallery/gallery%20large/stocktondiningtorquay.jpg'
image[16] = 'Images/gallery/gallery%20large/TownhouseLindemanchairs.jpg'
image[17] = 'Images/gallery/gallery%20large/rushentcentresideboard.jpg'
image[18] = 'Images/gallery/gallery%20large/dangelocnrcabinet.jpg'
image[19] = 'Images/gallery/gallery%20large/lucasbed.jpg'
image[20] = 'Images/gallery/gallery%20large/showroomredgum.jpg'
image[21] = 'Images/gallery/gallery%20large/remstoolsdeb.jpg'
image[22] = 'Images/gallery/gallery%20large/remstoolshall.jpg'
image[23] = 'Images/gallery/gallery%20large/bouveriebookcase.jpg'
image[24] = 'Images/gallery/gallery%20large/gilliesbookcase.jpg'
image[25] = 'Images/gallery/gallery%20large/flindersmodwithaustinchairs.jpg'
image[26] = 'Images/gallery/gallery%20large/richmond2drwcoffee.jpg'
image[27] = 'Images/gallery/gallery%20large/bookcasestoyles.jpg'
image[28] = 'Images/gallery/gallery%20large/bookcasetrieste.jpg'
image[29] = 'Images/gallery/gallery%20large/triestesideboard.jpg'
image[30] = 'Images/gallery/gallery%20large/triestediningtriestechairs.jpg'
image[31] = 'Images/gallery/gallery%20large/carlton3drwhalltable.jpg'
image[32] = 'Images/gallery/gallery%20large/carltoncoffeetable.jpg'
image[33] = 'Images/gallery/gallery%20large/richmond%20DT%20Bromham%20chairs.jpg'
image[34] = 'Images/gallery/gallery%20large/carltonsilverdining&chairs.jpg'
image[35] = 'Images/gallery/gallery%20large/flushsboard3dr3drw.jpg'
image[36] = 'Images/gallery/gallery%20large/glenferriebathroom.jpg'
image[37] = 'Images/Dining/Dining%20tables%20LARGE/ainslie.jpg'
image[38] = 'Images/Dining/Dining%20tables%20LARGE/beaumont.jpg'
image[39] = 'Images/Dining/Dining%20tables%20LARGE/carlton.jpg'
image[40] = 'Images/Dining/Dining%20tables%20LARGE/claremont.jpg'
image[41] = 'Images/Dining/Dining%20tables%20LARGE/clarendon.jpg'
image[42] = 'Images/Dining/Dining%20tables%20LARGE/clifton.jpg'
image[43] = 'Images/Dining/Dining%20tables%20LARGE/como.jpg'
image[44] = 'Images/Dining/Dining%20tables%20LARGE/farmhouse.jpg'
image[45] = 'Images/Dining/Dining%20tables%20LARGE/grange.jpg'
image[46] = 'Images/Dining/Dining%20tables%20LARGE/flinders.jpg'
image[47] = 'Images/Dining/Dining%20tables%20LARGE/loxton.jpg'
image[48] = 'Images/Dining/Dining%20tables%20LARGE/monterey.jpg'
image[49] = 'Images/Entertainment%20Centres/Entertainment%20centres%20LARGE/EC1.jpg'
image[50] = 'Images/Entertainment%20Centres/Entertainment%20centres%20LARGE/EC2a.jpg'
image[51] = 'Images/Entertainment%20Centres/Entertainment%20centres%20LARGE/EC44b.jpg'
image[52] = 'Images/Entertainment%20Centres/Entertainment%20centres%20LARGE/EC4a.jpg'
image[53] = 'Images/Entertainment%20Centres/Entertainment%20centres%20LARGE/EC5a.jpg'
image[54] = 'Images/Entertainment%20Centres/Entertainment%20centres%20LARGE/EC6b.jpg'
image[55] = 'Images/Entertainment%20Centres/Entertainment%20centres%20LARGE/EC7b.jpg'
image[56] = 'Images/Entertainment%20Centres/Entertainment%20centres%20LARGE/EC45b.jpg'
image[57] = 'Images/Entertainment%20Centres/Entertainment%20centres%20LARGE/EC49b.jpg'
image[58] = 'Images/Entertainment%20Centres/Entertainment%20centres%20LARGE/EC561.jpg'

links = new StringArray(numberofimages)
links[0] = 'galleryainsliediningsboard.html'
links[1] = 'gallerycarltoncoffee.html'
links[2] = 'galleryainsliedining.html'
links[3] = 'gallerycarltondining.html'
links[4] = 'gallerybartlettsboard.html'
links[5] = 'gallerybartlettcoffee.html'
links[6] = 'gallerybouverieentcentre.html'
links[7] = 'gallerycarltonsboard.html'
links[8] = 'gallerybouveriedresser.html'
links[9] = 'galleryshowroom.html'
links[10] = 'gallerystocktonsboard.html'
links[11] = 'gallerycarltondinsboard.html'
links[12] = 'gallerycommgames.html'
links[13] = 'gallerycarltondinsboard1.html'
links[14] = 'galleryottoman.html'
links[15] = 'gallerystocktondintorquay.html'
links[16] = 'gallerythouselindeman.html'
links[17] = 'galleryrushentcentre.html'
links[18] = 'gallerybookcasedangelo.html'
links[19] = 'gallerybedlucas.html'
links[20] = 'galleryshowroomredgum.html'
links[21] = 'galleryremstoolsdeb.html'
links[22] = 'galleryremstoolshall.html'
links[23] = 'gallerybouveriebookcase.html'
links[24] = 'gallerybookcasegillies.html'
links[25] = 'galleryflindersdining.html'
links[26] = 'galleryrichmondcoffee.html'
links[27] = 'gallerybookcasestoyles.html'
links[28] = 'gallerybookcasetrieste.html'
links[29] = 'gallerysideboardtrieste.html'
links[30] = 'gallerydiningtrieste.html'
links[31] = 'gallerycarltonhall.html'
links[32] = 'gallerycarltoncoffee1.html'
links[33] = 'galleryrichmonddtbromham.html'
links[34] = 'gallerycarltonsilverchairs.html'
links[35] = 'galleryflushsboard.html'
links[36] = 'gallerybathroomcabinet.html'
links[37] = 'diningainslie.html'
links[38] = 'diningbeaumont.html'
links[39] = 'diningcarlton.html'
links[40] = 'diningclaremont.html'
links[41] = 'diningclarendon.html'
links[42] = 'diningclifton.html'
links[43] = 'diningcomo.html'
links[44] = 'diningfarmhouse.html'
links[45] = 'dininggrange.html'
links[46] = 'diningflinders.html'
links[47] = 'diningloxton.html'
links[48] = 'diningmonterey.html'
links[49] = 'ec1.html'
links[50] = 'ec2.html'
links[51] = 'ec44.html'
links[52] = 'ec4.html'
links[53] = 'ec5.html'
links[54] = 'ec6.html'
links[55] = 'ec7.html'
links[56] = 'ec45.html'
links[57] = 'ec49.html'
links[58] = 'ec56.html'

var ran1 = 60/image.length
var ran2 = 60/image.length
var ran3 = 60/image.length

function ranimage1() {
  currentdate = new Date()
  core = currentdate.getSeconds()
  core = Math.floor(core/ran1)
  if (core >= numberofimages)
   {
         core = core - (numberofimages - 1);  
   }
    return(core)
}

function ranimage2() {
  currentdate = new Date()
  core = currentdate.getSeconds()
  core = core + 10
  core = Math.floor(core/ran2)
  if (core >= numberofimages)
   {
         core = core - (numberofimages - 1);
   }
    return(core)
}

function ranimage3() {
  currentdate = new Date()
  core = currentdate.getSeconds()
  core = core + 20
  core = Math.floor(core/ran3)
  if (core >= numberofimages)
   {
         core = core - (numberofimages - 1);
   }
    return(core)
}

ran1 = ranimage1()
ran2 = ranimage2()
ran3 = ranimage3()

document.write("<br><p><a href='" +links[ran1]+ "'><img src='" +image[ran1]+ "' width='200' height='160' border='2' alt='" +image[ran1]+ "'></a></p>")
document.write("    <p><a href='" +links[ran2]+ "'><img src='" +image[ran2]+ "' width='200' height='160' border='2' alt='" +image[ran2]+ "'></a></p>")
document.write("    <p><a href='" +links[ran3]+ "'><img src='" +image[ran3]+ "' width='200' height='160' border='2' alt='" +image[ran3]+ "'></a></p>")
//-->