
///////////////////////////////////////////////////////////////////
//										SHOW VOLUNTEER INFORMATION

function show_volunteer(volunteer_name)
	{
	// RESET PAGE DATA
	// ...
	
	
	// LOAD PAGE DATA
	document.getElementById('popup_title').innerHTML	= volunteer_name;										// TITLE
	document.getElementById('popup_copy').innerHTML		= document.getElementById(volunteer_name).innerHTML;	// COPY


	
	// MAIN WINDOW
	ModalPopup('popup')
	}


ModalPopup = function (elem,options)
	{
	var HasBackground			= true;
	var BackgroundColor			= '#000000';
	var BackgroundOpacity		= 60;
	var BackgroundOnClick		= function(){};
	var BackgroundCursorStyle	= "default";
	var Zindex					= 90000;



	// POPUP
	var obj = document.getElementById('popup');
	obj.style.display	= 'block';
	obj.style.zIndex	= 1000000;



	// BACKGROUND
	if (HasBackground)
		{		
		if (!ModalPopup._BackgroundDiv)
			{
			ModalPopup._BackgroundDiv 					= document.createElement('div');
			ModalPopup._BackgroundDiv.style.display		= "none";
			ModalPopup._BackgroundDiv.style.width		= "100%";
			ModalPopup._BackgroundDiv.style.position	= "absolute";
			ModalPopup._BackgroundDiv.style.top			= "0px";
			ModalPopup._BackgroundDiv.style.left		= "0px";
			
			document.body.appendChild(ModalPopup._BackgroundDiv);
			}
			
		ModalPopup._BackgroundDiv.onclick 			=  BackgroundOnClick;
		ModalPopup._BackgroundDiv.style.background	= BackgroundColor;	
		ModalPopup._BackgroundDiv.style.height		= document.all ? Math.max(Math.max(document.documentElement.offsetHeight, document.documentElement.scrollHeight), Math.max(document.body.offsetHeight, document.body.scrollHeight)) : (document.body ? document.body.scrollHeight : ((document.documentElement.scrollHeight != 0) ? document.documentElement.scrollHeight : 0)) + "px";
		ModalPopup._BackgroundDiv.style.filter		= "progid:DXImageTransform.Microsoft.Alpha(opacity=" + BackgroundOpacity +")";
		ModalPopup._BackgroundDiv.style.MozOpacity	= BackgroundOpacity / 100;
		ModalPopup._BackgroundDiv.style.opacity		= BackgroundOpacity / 100;
		ModalPopup._BackgroundDiv.style.zIndex		= Zindex;
		ModalPopup._BackgroundDiv.style.cursor		= BackgroundCursorStyle;

		//Display the background
		ModalPopup._BackgroundDiv.style.display = "";
		}
	}
	

ModalPopup.Close = function(id)
	{
	if (id)							document.getElementById(id).style.display	= "none";
	if (ModalPopup._BackgroundDiv)	ModalPopup._BackgroundDiv.style.display		= "none";
	}
