/* Script containing common functions for the whole site */

function popupPicture(pic_url)
{
	window.open(pic_url, "", "resizable=0, HEIGHT=200, WIDTH=200");
}

/*
This function will hide all div sections on the calling page, which have an id equal to the name composed 
of the passed in div_name_prefix and a number appended at the end during the iteration of the loop.
Ex. if div_name_prefix is photos_id_ , then all (except show_div_id) div sections in the format photos_id_1, 
photos_id_2 and so on will get hidden.
After that, the only div section that will be shown is the one with the show_div_id
*/
function showPhotos(div_name_prefix, show_div_id, num_div_sections)
{
	//	Hide all other photo div sections and only show the one passed in

	var i = 1;
	for (i = 1; i <= num_div_sections ;i++)
	{
		if (i == show_div_id)
			document.getElementById(div_name_prefix + i).style.display = '';
		else
			document.getElementById(div_name_prefix + i).style.display = 'none';
	}

	window.scrollBy(0, 300);
}

