function initBoxDiensten() {
	// Get the document location
	var docLocation = document.location.toString();

	// Check for anchor
	if (docLocation.match('#')) {
		// Get the anchor value
		var anchorName = docLocation.split('#')[1];
	}

	$('.diensten dl dt').each(function() {
		// variable init
		dt = $(this);
		dd = dt.next();
		a = $('a', dt);

		// calculate the height while all elements are expanded
		dd.css('height', dd.height());

		// Get the document location
		var docLocation = document.location.toString();

		// Activate the item if refered to
		if(a.attr('id') == anchorName) {
			dt.addClass('open');
		} else {
			dd.hide();
		}

		// add visibility toggle on click
		a.click(function() {
			// variable init
			a = $(this);
			dt = a.parents('dt');
			dd = dt.next();

			// toggle active class
			dt.toggleClass('open');

			// toggle visbility
			if($.browser.msie && $.browser.version == 6) {
				$('> .bottomLeft', $(this).parents('.box')).hide();
				$('> .bottomRight', $(this).parents('.box')).hide();
				
				dd.toggle();
				
				$('> .bottomLeft', $(this).parents('.box')).show();
				$('> .bottomRight', $(this).parents('.box')).show();
			} else {
				dd.slideToggle('slow');
			}

			// return false to prevent execution of href
			return false;
		});
	});
	
	// Open the first
	$('.diensten dl dt:first').each(function() {
		// variable init
		dt = $(this);
		dd = dt.next();
		
		dt.addClass('open');
		
		if($.browser.msie && $.browser.version == 6) {
			$('> .bottomLeft', $(this).parents('.box')).hide();
			$('> .bottomRight', $(this).parents('.box')).hide();
			
			dd.show();
			
			$('> .bottomLeft', $(this).parents('.box')).show();
			$('> .bottomRight', $(this).parents('.box')).show();
		} else {
			dd.show();
		}
	});
}
$(function() {
	
	// Diensten box
	initBoxDiensten();
	
});
