/*
 * Random Photo
 *
 */
function randomPhoto( varPhotos, varPath ){

	myPhotos = varPhotos;
	myPath = varPath;

	var myPhoto = myPhotos[ Math.floor( Math.random() * myPhotos.length ) ];

	// Check for photo
	// Nothing found? Pick default.
	// Else, show a random photo from array
	if ( !myPhoto || myPhoto == 'undefined' || !myPath || myPath == 'undefined'){

		myElm = document.getElementById( 'container' );
						myElm.style.backgroundImage = "url(site/img/headers/default-home.jpg)";

	} else {

		myElm = document.getElementById( 'container' );
						myElm.style.backgroundImage = "url(" + myPath + myPhoto + ")";

	}

}
