image = new Array

// Enter the images to appear
// All images should be saved in the /template-assets-custom/images/banners/ folder on the remote server
// The filenames are case sensitive
image[1]="/template-assets-custom/images/banners/130auckland-front-tile-UMAP.jpg"
image[2]="/template-assets-custom/images/banners/130erasmus-commerce-front-tile.jpg"
image[3]="/template-assets-custom/images/banners/130germany-front-page-tile.jpg"
image[4]="/template-assets-custom/images/banners/130estonia-front-tile.jpg"
image[5]="/template-assets-custom/images/banners/130swiss-news-front-tile.jpg"

address = new Array

// Enter the page destination
// There needs to be an address for each image
address[1]="/outgoing/apply/partners/partners4.html#New_Zealand"
address[2]="/outgoing/apply/partners/partners4.html#Netherlands"
address[3]="/outgoing/apply/partners/partners2.html#Germany"
address[4]="/outgoing/apply/partners/partners2.html#Estonia"
address[5]="/about-mgm/whats-new/"

// The next line creates a random number from within the number of images available
// The number appearing after Math.random()* must be one less than the total number of images listed above
random_num = (Math.round((Math.random()*4)+1))

// Write the image tag with a random array element
document.write("<p><a href=" + address[random_num] + "><img src=" + image[random_num] + "></a></p>"); 


