


// This function should be present on the "onload" area of the <body> tag on _all_ pages.

function loaded()
	{
	//alert('Page Loaded');
	}
	


// Hide something ...

function hide(pagePart)
	{
	document.getElementById(pagePart).className='off';
	}
	
// Show something ...

function show(pagePart)
	{
	document.getElementById(pagePart).className='article on';
	}

	
	
// ----- auto-caption script (John Mounsey 2008) --------------------------------------

function cap(obj)
	{
	if (obj.accessKey)
		{
		obj.title=obj.innerText;
		//obj.title=obj.innerText + " (shortcut = alt+" +obj.accessKey+ " then Enter)";
		}
	
	else
		{
		obj.title=obj.innerText;
		}
	}
	


// ----- auto-caption for Gallery Page(s) ----


function autoCap(theElement,theCaption)
	{
	defaultCap = '<b>Tip:</b> Hover over these images for a brief description, or click for a larger image.';
	document.getElementById(theElement).innerHTML='<h3 class="caption">'+theCaption+'</h3>';
	}
	
	
	

