﻿<!-- // Make the Secondary level template masthead images rotate.

function GetMastheadImageSecondary() {
    var myBGs = new Array();
    
    // The list of images goes here. These can be relative (to the root) or fully qualified.

    myBGs[0] = "/images/masthead_secondary_bridges.jpg";
    myBGs[1] = "/images/masthead_secondary_aviation.jpg";
    myBGs[2] = "/images/masthead_secondary_bridges.jpg";
    myBGs[3] = "/images/masthead_secondary_seaports.jpg";
    myBGs[4] = "/images/masthead_secondary_mass_transit.jpg";
    myBGs[5] = "/images/masthead_secondary_railways.jpg";
    myBGs[6] = "/images/masthead_secondary_roadways.jpg";
    myBGs[7] = "/images/masthead_secondary_seaports.jpg";
    myBGs[8] = "/images/masthead_secondary_spaceports.jpg";
    
    var theIndex = Math.ceil((myBGs.length - 1) * Math.random());

    // DIAGNOSTICS ONLY! DO NOT UNCOMMENT THE NEXT LINE IN PRODUCTION!!!
    //alert(theIndex);

    document.getElementById('image').style.backgroundImage='url(' + myBGs[theIndex] + ')';
}

// -->
