
function initialise_scripting () {
	locations = document.getElementsByTagName('span');
	for (var i=0; i<locations.length; i++) {
		if (locations[i].className == 'reveal') {
			locations[i].onclick = toggleAbstract;
			}
		}
	}
	
function toggleAbstract () {
	// onclick code to expose or hide the abstract in a following sibling element
	if (this.nextSibling.style.display=='block') { 
		this.nextSibling.style.display='none';
		this.childNodes[1].src='/images/right.png';
		this.title='open';
		this.childNodes[1].alt='open';
		} 
	else {
		this.nextSibling.style.display='block';
		this.childNodes[1].src='/images/down.png';
		this.title='close';
		this.childNodes[1].alt='close';
		}
	}
	
function oldinitialise_scripting () {
	locations = document.getElementsByTagName('img');
	for (var i=0; i<locations.length; i++) {
		if (locations[i].className == 'reveal') {
			locations[i].onclick = toggleAbstract;
			}
		}
	}
	
function oldtoggleAbstract () {
	// onclick code to expose or hide the abstract in a following sibling element
	if (this.nextSibling.style.display=='block') { 
		this.nextSibling.style.display='none';
		this.src='/images/right.png';
		} 
	else {
		this.nextSibling.style.display='block';
		this.src='/images/down.png';
		}
	}
