jQuery(function(){
	var groups = new Array();
	jQuery('a[rel^=lightbox]').each(function(){
		var rel = jQuery(this).attr('rel');
		if(!groups[rel]){
			jQuery('a[rel=' + rel + ']').lightBox();
			groups[rel] = 1;
		}
	});
});

beforeName = 'staffBox01';

$(document).ready(function(){
	$('.showBox').bind('click', fadeImages);
});

function fadeImages() {
	var className = $(this).children().attr('class');
	if (className != beforeName) {
		var foundClass = '.' + className;
		var beforeClass = '.' + beforeName;
		beforeName = className;
		var box00In = $('div.box00').nextAll();
		box00In.children().children(beforeClass).css('display', 'none');
		box00In.children().children(foundClass).fadeIn('slow');
	}
}
