  function imageCall(position) {
	// Set up the image files to be used.
	var randomImages = new Array() // do not change this
	// To add more image files, continue with the
	// pattern below, adding to the array.

	switch (position) {
		case 'one':
				randomImages[0] = 'http://www.cutloosesurf.com.au/templates/surf2/headerimages/surf_01.jpg'
				break;
		}
	// do not edit anything below this line
	var j = 0
	var p = randomImages.length;
	var preBuffer = new Array()
	for (i = 0; i < p; i++){
	   preBuffer[i] = new Image()
	   preBuffer[i].src = randomImages[i]
	}
	var whichImage = Math.round(Math.random()*(p-1));
	document.write('<img src="'+randomImages[whichImage]+'">');
  }
