// JavaScript Document

// JavaScript Document


var imagenumber = 9 ;
var randomnumber = Math.random() ;
var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1 ;
images = new Array
images[1] = "header_img/1.jpg"
images[2] = "header_img/2.jpg"
images[3] = "header_img/3.jpg"
images[4] = "header_img/4.jpg"
images[5] = "header_img/5.jpg"
images[6] = "header_img/6.jpg"
images[7] = "header_img/7.jpg"
images[8] = "header_img/8.jpg"
images[9] = "header_img/9.jpg"
var image = images[rand1]


//Edit this line to list all of your background images
//var backgroundSrcs = new Array("/sites/pwypdev.gn.apc.org/themes/pwyp/inner_img/1.jpg","/sites/pwypdev.gn.apc.org/themes/pwyp/inner_img/2.jpg","/sites/pwypdev.gn.apc.org/themes/pwyp/inner_img/3.jpg","/sites/pwypdev.gn.apc.org/themes/pwyp/inner_img/4.jpg","/sites/pwypdev.gn.apc.org/themes/pwyp/inner_img/5.jpg")

//window.onload = function() { pickimage();}
//function pickimage()
//{
//This line picks an image at random from the list you entered above
//var bgimage=backgroundSrcs[(Math.round(Math.random()*(backgroundSrcs.length-1)))]

//This line applies the background image to your masthead
//document.getElementById("header").style.background = "url('" + bgimage + "') no-repeat top right";
//} 


