$(document).ready(function() {

	$("dl.collapsed dd").hide();
	$("dl.collapsed dt").click(function() {
		dd = $(this).next();
		if (dd.get(0).tagName.toLowerCase() == 'dd') {
			if (dd.css('display') == 'none') {
				$(this).next().slideDown('fast');
			} else {
				$(this).next().slideUp('fast');
			}
		}
	});

	$(".page-home .favourite-links-select select").change(function() {
		link = $(this).attr('value');
		if (link != '') {
			document.location.href = link;
		}
	});

	if ($(".page-home").size() > 0) {
		c1 = $(".body-column-1 .block9:first");
		c2 = $(".body-column-2 .block9:first");
		height1 = parseInt(c1.height());
		height2 = parseInt(c2.height());
		if (height1 < height2) {
			c1.height(height2 + "px");
		} else {
			c2.height(height1 + "px");
		}

	}

	$(".body .teaser:first").css("border", "0");

	$(".page-internal .navigation-middle").click(function() {
		document.location.href = window.home_link == undefined ? '/' : home_link;
	}).hover(
		function() {
			$(this).css('cursor', 'pointer');
		},
		function() {
			$(this).css('auto');
		}
	);

});
