<!-- Paste this code into an external JavaScript file named: banner.js.js  -->

/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Lee Underwood :: http://javascript.internet.com/ */

var bannerImg = new Array();
  // Enter the names of the images below
  bannerImg[0]="/images/collaborator/burnet.png";
  bannerImg[1]="/images/incollaborationwith/sahealth1.png";
  /*bannerImg[2]="/images/collaborator/biogrid1.png";*/
  bannerImg[2]="/images/incollaborationwith/dha1.png";
  bannerImg[3]="/images/collaborator/kirby.png";
  bannerImg[4]="/images/incollaborationwith/nhmrcr1.png";
  bannerImg[5]="/images/collaborator/cersh.png";
  bannerImg[6]="/images/incollaborationwith/vichealth1.png";
  bannerImg[7]="/images/collaborator/nrl1.png";
  bannerImg[8]="/images/incollaborationwith/cancer-council1.png";
  bannerImg[9]="/images/collaborator/deakin1.png";
  bannerImg[10]="/images/incollaborationwith/ndss1.png";
  bannerImg[11]="/images/incollaborationwith/greaterhealth1.png";
  bannerImg[12]="/images/incollaborationwith/dgp.png";
  bannerImg[13]="/images/incollaborationwith/vpac1.png";
  bannerImg[14]="/images/incollaborationwith/aboriginal-research.png";
  bannerImg[15]="/images/incollaborationwith/magda.png";
  /*bannerImg[17]="/images/collaborator/access.png";
  bannerImg[18]="/images/incollaborationwith/accept-cersh.png";*/


var newBanner = 0;
var totalBan = bannerImg.length;

function cycleBan() {
  newBanner++;
  if (newBanner == totalBan) {
    newBanner = 0;
  }
  var t = $("#banner").attr("width");
  $("#banner").attr("src", bannerImg[newBanner]).stop(true, true).hide().fadeIn();
  //document.banner.src=bannerImg[newBanner];
  // set the time below for length of image display
  // i.e., "4*1000" is 4 seconds
  setTimeout("cycleBan()", 4*1000);
}
window.onload=  setTimeout("cycleBan()", 4*1000);
