function showHideChildren(whereItIs)
	{
		
		if (document.getElementById)
		{
			// identify the parent HTML tag of where this got clicked
			m = whereItIs.parentNode.parentNode;
	
			// if the style of the parent is closed...
			if ('closed' == m.className)
			{
				// ...open it.
				whereItIs.childNodes[0].src = 'graphics/nav_arrow_open.gif';
				m.className = 'open';
			}
			// ...or if the style of the parent is open...
			else if ('open' == m.className)
			{
				// ...close it.
				whereItIs.childNodes[0].src = 'graphics/nav_arrow_closed.gif';
				m.className = 'closed';
			}
			
			whereItIs.blur();
		}
		return false;
	}



function calendarPopUp(postArgs)
	{
	var openerURI = documentRoot + 'calendar/calendar.phtml';
	if(postArgs) openerURI += '?' + postArgs;
	window.open( openerURI, 'calendar', 'toolbar=1,status=0,resizable=1,height=410,width=600');
	}


function printPopUp()
	{
	window.open(documentRoot + '_printpopup.phtml', 'print', 'toolbar=1,status=0,resizable=1,height=410,width=600');
	}


function acrobatPopUp()
	{
	window.open(documentRoot + '_acrobatpopup.phtml', 'acrobat', 'toolbar=1,status=0,resizable=1,height=410,width=600');
	}


function mailinglistPopUp (mailingListID)
	{
	var openerURI = documentRoot + 'mailing_lists/';
	if(mailingListID) openerURI += '?mailing_list_id=' + mailingListID;
	window.open(openerURI, 'mailinglists', 'toolbar=1,status=0,resizable=1,height=410,width=600');
	}


function privacypolicyPopUp ()
	{
	window.open(documentRoot + '_privacypolicy.phtml', 'privacypolicy', 'toolbar=1,status=0,scrollbars=1,resizable=1,height=410,width=600');
	}


function openPhoto(p,w,h)
	{
	var window_width = String(Number(w) + 20);
	var window_height = String(Number(h) + 20);
	var window_scroll = "no";
	
	if(screen.width)
		{
		if((Number(w) + 20) > screen.width)
			{
			window_width = String(Number(screen.width) - 80);
			window_scroll = "yes";
			}
		if((Number(h) + 20) > screen.height)
			{
			window_height = String(Number(screen.height) - 80);
			window_scroll = "yes";
			}
		}
	else
		{
		if(w > 560)
			{
			window_height = "560";
			window_scroll = "yes";
			}
		if(h > 400)
			{
			window_height = "400";
			window_scroll = "yes";
			}
		}
	var open_specs = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=" + window_scroll + ",resizable=no,copyhistory=no,height=" + window_height + ",width=" + window_width + ",top=10,left=10";
	window.open(p,'one',open_specs);
	}
