

$(document).ready(function(){
				    
	// oddly enough, we can chuck all the images initially
	// loaded and derive new ones from the menus

	$(".picture > img").attr("src","");
//	$(".picture").css("display","none");
	$(".picture").remove();

//	$("#active-picture").show;
//	$("#active-picture > img").show;	

	initLightbox();

	$(".picture-display").click(function (){
		showImg(this.id,rpCurrentGallery);
	});

	applyAnchor(rpCurrentGallery);

//	$("#active-picture").attr("onclick","showLightbox(this); return false;");
	$("#active-picture").click(function (){
		showLightbox(this);
		return false;
	});
});

