$(document).ready(function(){
	jQuery(function(){jQuery(document).pngFix();});
}); 

$(document).ready(function() {
$("a[rel=fotogroep]").fancybox({
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over"><span style="float:right">Afbeelding ' +  (currentIndex + 1) + ' / ' + currentArray.length + '</span>' + (title && title.length ? title : '&nbsp;' ) + '</span>';
		}
	}); 
	$("a.zoom").fancybox();
	
	$("a.group").fancybox({
		'hideOnContentClick': false,
		'overlayOpacity': 0.6,
		'overlayColor': '#000',
		'frameWidth': 425,
		'frameHeight': 344
	});
	
	$("a#happykip").fancybox({
	'frameWidth': 640,
	'frameHeight': 480
	});
	
	//$("#start").trigger('click');
});

$.validator.methods.equal = function(value, element, param) {
	return value == param;
};

jQuery(function($){
	$("#contact").validate({
		rules: {
			math: {
				equal: 30
			}
		}
	});
	$("#reserveringForm").validate({
		rules: {
			emailadres2: {
				required: true,
				minlength: 5,
				equalTo: "#emailadres"
			}
		}
	});
});

