
// Home page main images

var image = new Array()
image[0] = '/images/home/'
image[1] = 'colby.jpg'
image[2] = 'susan.jpg'
image[3] = 'grace.jpg'

var readlink = new Array()
readlink[0] = ''
readlink[1] = 'living_with_mitochondrial_disease.php'
readlink[2] = 'living_with_mitochondrial_disease.php'
readlink[3] = 'living_with_mitochondrial_disease.php'

function nextimage(e)
{ if (!e) var e = window.event;
  e.cancelBubble = true;
  if (e.stopPropagation) e.stopPropagation();
  imagenum++
  if (imagenum > 3) imagenum = 1
  document.getElementById('home_image').style.backgroundImage = 'url(' + image[0] + image[imagenum] + ')'
}

function readmore(e)
{ if (!e) var e = window.event;
  e.cancelBubble = true;
  if (e.stopPropagation) e.stopPropagation();
  location.href = readlink[imagenum]
}

// Set home page image

document.getElementById('home_image').style.backgroundImage = 'url(' + image[0] + image[imagenum] + ')'

// Sliding feature - see slider.js

var mover = document.getElementById(moverid)		// div to be moved
var statik = document.getElementById(staticid)		// div to be static
var uburster = document.getElementById(uburstid)	// upper div to show sunburst
var lburster = document.getElementById(lburstid)	// lower div to show sunburst
var flasher = document.getElementById('flash')

switcheroo()							// show the first feature
autoslide = window.setInterval("switcheroo()",autointerval)	// switch features periodically
