$(document).ready(function(){
	$('div.InfoPages01foto').each(function() {
		var ah = $(this).height();
		var ph = $("a img", this).height();
		var mh = Math.ceil((ah - ph) / 2) - 1;
		$(this).css('padding-top', mh);
		$(this).height(ah - mh);
	});
	$('div.InfoPages01Detailfoto').each(function() {
		var ah = $(this).height();
		var ph = $("a img", this).height();
		var mh = Math.ceil((ah - ph) / 2) - 1;
		$(this).css('padding-top', mh);
		$(this).height(ah - mh);
	});
	$('div.highlightInfoPages01foto').each(function() {
		var ah = $(this).height();
		var ph = $("a img", this).height();
		var mh = Math.ceil((ah - ph) / 2) - 1;
		$(this).css('padding-top', mh);
		$(this).height(ah - mh);
	});
	
	$('#InfoPages01tabs').tabs({ fx: { height: 'toggle', opacity: 'toggle' } });
	
	$('head').append('<link href="http://' + document.domain + '/includes/formIncludes/botblocker.css" rel="stylesheet" type="text/css" />');
	
	$('div#InfoPages01omsch2').hide();
	$('a#InfoPages01showall').click(function() {
		$('div#InfoPages01omsch2').show(500);
	});
	$('a#InfoPages01hiddeall').click(function() {
		$('div#InfoPages01omsch2').hide(500);
	});
	
	$('div.InfoPages01tekst').each(function() {
		var clickLink = $("a", this).attr('href');
		$(this).click(function() {
			window.location.href = clickLink;
		});
	});
	$('div.highlightInfoPages01tekst').each(function() {
		var clickLink = $("a", this).attr('href');
		$(this).click(function() {
			window.location.href = clickLink;
		});
	});
});


