﻿window.onload = function () {
    var header = document.getElementById('header');
    var pictures = new Array('/images/header1.jpg','/images/header2.jpg','/images/header3.jpg');
    var numPics = pictures.length;
    if (document.images) {
        var chosenPic = Math.floor((Math.random() * numPics));
        header.style.background = 'url(' + pictures[chosenPic] + ')';
    }
}