// Random Photo Generator
// By Travis Smith, Hop Studios, 2009


$(document).ready(function () {

// You can change each list of images here and it will affect all pages on the site.
// All the images have to be in the same directory

	var header_photos_list = new Array(

// change below here
"DSC_1374.jpg",
"DSC_1770.jpg",
"DSC_1871.jpg",
"DSC_1892.jpg",
"DSC_1988.jpg",
"DSC_2020.jpg",
"DSC_2022.jpg",
"DSC_2036.jpg",
"DSC_2162.jpg",
"DSC_2270.jpg",
"DSC_2289.jpg",
"DSC_2320.jpg",
"DSC_2321.jpg",
"DSC_2358.jpg",
"DSC_2374.jpg",
"DSC_2413.jpg",
"DSC_2440.jpg",
"DSC_2457.jpg",
"DSC_2473.jpg",
"DSC_2480.jpg"  // note: last image should have no comma after it
// change above here

	);

	var sidebar_photos_list = new Array(

// change below here
"DSC_1533.jpg",
"DSC_1578.jpg",
"DSC_1692.jpg",
"DSC_1725.jpg",
"DSC_1757.jpg",
"DSC_1866.jpg",
"DSC_1882.jpg",
"DSC_1946.jpg",
"DSC_1961.jpg",
"DSC_1967.jpg",
"DSC_1972.jpg",
"DSC_1989.jpg",
"DSC_1989_a.jpg",
"DSC_2012.jpg",
"DSC_2020.jpg",
"DSC_2033.jpg",
"DSC_2039.jpg",
"DSC_2043.jpg",
"DSC_2051.jpg",
"DSC_2159.jpg",
"DSC_2200.jpg",
"DSC_2305.jpg",
"DSC_2320.jpg",
"DSC_2330.jpg",
"DSC_2393.jpg",
"DSC_2414.jpg",
"DSC_2421.jpg",
"DSC_2428.jpg",
"DSC_2428_a.jpg",
"DSC_2441.jpg",
"DSC_2461.jpg",
"DSC_2479.jpg",
"DSC_2488.jpg" // note: last image should have no comma after it
// change above here

	);

	header_photos_random = Math.floor(Math.random()*header_photos_list.length)
	header_photos_new = '/images/header_photos/' + header_photos_list[header_photos_random];

    $("#header_photos").attr("src", header_photos_new);

	sidebar_photos_random = Math.floor(Math.random()*sidebar_photos_list.length)
	sidebar_photos_new = '/images/sidebar_photos/' + sidebar_photos_list[sidebar_photos_random];

    $("#sidebar_photos").attr("src", sidebar_photos_new);
});

