
	function imgViewer(){
		FullImg.assign('a.smallFoto', {
			'origin': 'img',
			'type': 'image',
			'shadow': 'onOpenEnd',
			'resizeFactor': 0.9,
			'cutOut': false,
			'opacityResize': 0.1,
			'dragging': true,
			'centered': true
		});		
	}

	function expandGal(which){
		if($(which).hasClass('collapsed')){
			$(which).removeClass('collapsed');
		}else{
			$(which).addClass('collapsed');
		}
	}
	
	function printPage(which, lang){
		window.open("print.php?page_id="+which+"&lang="+lang,"printPage","width=500, height=600, top=300, left=500, toolbar=0, menubar=0, location=0, status=0, scrollbars=0, resizable=0");
	}

	window.addEvent('domready', function() {	

		imgViewer();

		$$(".show_foto").filter(function(el) {
			return el.href && !el.href.indexOf("http://www.groenewoldmedia.nl/") && el.firstChild && el.firstChild.src;
		}).slimbox({
			loop: true,
			initialWidth: 400,
			initialHeight: 300,
			overlayOpacity: 0.6,
			overlayFadeDuration: 200,
			resizeDuration: 700,
			resizeTransition: Fx.Transitions.Elastic.easeOut,
			counterText: "Dit is afbeelding <strong>{x}</strong> van <strong>{y}</strong>.",
			previousKeys: [37, 80, 16],
			nextKeys: [39, 78, 17]
		});
	});