document.write('<script type="text/javascript" src="http://www.juniata.edu/javascript/prototype.js"></script>');
document.write('<script type="text/javascript" src="http://www.juniata.edu/javascript/scriptaculous.js"></script>');

function updatephoto(photo, dir)
{
	document.getElementById('photopic').src = dir + photo + ".jpg";
}

function showMovie()
{
    document.getElementById('photo').style.display = "none";
	document.getElementById('flashcontent').style.display = "block";
}

function showMovies(moviename, moviedesc)
{
	var fo = new SWFObject(moviename, moviedesc, '350', '300', '8.0.22', '#f5f0dd', true);
	fo.write('flashcontent');
}

function updatephotoandmovie(photo, dir)
{
	document.getElementById('flashcontent').style.display = "none";
    document.getElementById('photo').style.display = "block";
	document.getElementById('photopic').src = dir + photo + ".jpg";
}

function ExpandableGallery(whichway, bigorsmall, directory) {

	if(whichway == 0) {
		picture--;
		if (picture < 0)
			picture = max_pictures;
		}
		
	else if(whichway == 1) {
		picture++;
		if (picture > max_pictures)
			picture = 0;
		}
		
	if(bigorsmall == 0)
		document.getElementById("expandablegallery_image").src = "i/gallery/" + directory + picture + ".jpg";
	else if(bigorsmall == 1)
		document.getElementById("expandablegallery_big_image").src = "i/gallery/" + directory + picture + "_big.jpg";
		document.getElementById("expandablegallery_image").src = "i/gallery/" + directory  + picture + ".jpg";
	
}

function ExpandableGallery_Full() {
	document.getElementById("expandablegallery_big_image").src = "i/gallery/" + directory + picture + "_big.jpg";
	document.getElementById("expandablegallery_big").style.visibility = "visible";
	}
	
function ExpandableGallery_Full_Close() {
	document.getElementById("expandablegallery_big").style.visibility = "hidden";
	document.getElementById("expandablegallery_big_image").src = "http://www.juniata.edu/blank.gif";
	}

function updatephotoblog(photo, dir, photoplace)
{
	document.getElementById(photoplace).src = dir + photo + ".jpg";
}
