$( function() {
	$('.leidingsfotos').livequery(function() { $(this).find('a').lightbox(); });
	$('#nyroModalWrapper').livequery(function() {  });
	$('.leidingskader a').click( function(e) {
		e.preventDefault();
		$.nyroModalManual({
			url: "/ajax.php?getleider=" + $(this).attr('href'),
			closeButton: null,
			zIndexStart: 40,
			contentLoading: '<div><img src="/images/lightbox/loading.gif" alt="" width="32" height="32" /></div><div>gegevens laden&hellip;</div><div><a href="#" class="nyroModalClose">venster sluiten</a></div>',
			contentError: '<div>De gegevens konden niet worden geladen. Probeer later opnieuw.</div><div><a href="#" class="nyroModalClose">venster sluiten</a></div>',
			//IE7 ClearType fix
			endShowContent: function() { $('#nyroModalWrapper').show(function() { if (this.style.removeAttribute) this.style.removeAttribute("filter"); }) }
		});
		return false;
	});
} );
