I'm trying to add a lightbox script to a slideshow application. When I close the lightbox, the javascript that controls the slideshow thinks I want to move to the next slide, but in reality I want to go back to where I was. I was thinking I could add hasvalue(target.rel, "lightbox") as an OR condition to the following clicker function:

Code:
function clicker(e) {
	number = undef;
	var target;
	if (window.event) {
		target = window.event.srcElement;
		e = window.event;
	} else target = e.target;


	if (target.getAttribute('href') != null || hasValue(target.rel, 'external') || isParentOrSelf(target, 'controls') || isParentOrSelf(target,'embed') || isParentOrSelf(target,'object')) return true;
	if (!e.which || e.which == 1) {
		if (!incrementals[snum] || incpos >= incrementals[snum].length) {
			go(1);
		} else {
			subgo(1);
		}
	}
}
but when I do that, nothing changes:

Code:
if (target.getAttribute('href') != null || hasValue(target.rel, 'external') || hasValue(target.rel, "lightbox") || isParentOrSelf(target, 'controls') || isParentOrSelf(target,'embed') || isParentOrSelf(target,'object')) return true;
Here's a sample of how the page looks:
http://www.lemoyne.edu/presentation/test.html

Any suggestions would be most appreciated!