
var currentdate = 0
var core = 0

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}

image = new StringArray(2)

image[0] = '<a href="http://www.dialconstruct.ro/servicii.html" target="_blank"><img src="http://www.orice-mures.ro/banner/470/0001.gif" border="0"></a>'

image[1] = '<a href="http://www.oricemedia.ro/servicii/design-siteuri-web.html" target="_blank"><img src="http://www.orice-mures.ro/banner/470/0002.gif" border="0"></a>'

var ran = 60/image.length

function radAD() {
  currentdate = new Date()
  core = currentdate.getSeconds()
  core = Math.floor(core/ran)
    return(image[core])
}

document.write(radAD())
