// JavaScript Document
var currentdate = 0;
var core = 0;
var totalimages = 42;
var imagesurl = "ownphotogreetings/thumb/";

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
	this[i] = imagesurl + i + '.JPG';

  }
}

image = new StringArray(totalimages)
var ran = 60/image.length

function displaytextimage() {
	currentdate = new Date();
	core = currentdate.getSeconds();
	core = Math.floor(core/ran);
	if(typeof image[core] == 'undefined') {
		image[core] = imagesurl + '1.JPG';
	}
	return(image[core]);
}

document.write("<img src='" +displaytextimage()+ "' width='160' border='0' alt='Send Your Own Photo Greetings' />")