/* Random Image Generators */

var titleCount, leftPhotoCount, rightPhotoCount;

// Set the following variables to the number of random files that exist for each image
// All these images are located in /images/headers/

// titleCount is for the title/logo graphic (filenames are titleX.jpg)
// leftPhotoCount is for the center-left photograph (filenames are leftphotoX.jpg)
// rightPhotoCount is for the center-right photograph (filenames are rightphotoX.jpg)
// sidePhotoCount is for the right-side block photograph (filenames are sidephoto4.jpg)

titleCount = 1;
leftPhotoCount = 3;
rightPhotoCount = 3;
sidePhotoCount = 1;



function ShowTitleImage() {
	var randomNum;
	randomNum = Math.floor(Math.random() * titleCount) + 1;

	document.write('<img src="../images/headers/title' + randomNum + '.jpg" alt="U.S. Senator Patty Murray - Washington State" width="416" height="63">');
}

function ShowLeftPhoto() {
	var randomNum;
	randomNum = Math.floor(Math.random() * leftPhotoCount) + 1;

	document.write('<img src="../images/headers/leftphoto' + randomNum + '.jpg" alt="" width="208" height="62">');
}

function ShowRightPhoto() {
	var randomNum;
	randomNum = Math.floor(Math.random() * rightPhotoCount) + 1;

	document.write('<img src="../images/headers/rightphoto' + randomNum + '.jpg" alt="" width="208" height="62">');
}

function ShowSidePhoto() {
	var randomNum;
	randomNum = Math.floor(Math.random() * sidePhotoCount) + 1;

	document.write('<img src="../images/headers/sidephoto4.jpg" alt="" width="161" height="130">');
}