$(function() {

	$(".div-276 img")
		.css({'cursor':'pointer'})
		.mouseenter(function() {
			var splitsrc = $(this).attr("src").split("_");
			var image = "/files/images/data/large_"+splitsrc['1']+"_"+splitsrc['2'];
			$(".div-255 *").hide();
			$(".div-255").prepend("<p class='largeimage'><img src='"+image+"' width='100%' alt='' /></p>"+
				"<p class='largeimage' style='padding-top:5px;'>Billede af "+$(".div-253 h1").html()+"</p>");
		})
		.click(function() {
			var splitsrc = $(this).attr("src").split("_");
			var image = "/files/images/data/large_"+splitsrc['1']+"_"+splitsrc['2'];
			window.open(image, "Billede af "+$(".div-253 h1").html(), "height=400px,width=525px");
		});
	
	$(".div-276").mouseleave(function() {
		$(".div-255 *").show();
		$(".largeimage").remove();
	});
	
	$('.div-269 p').each(function() {
		if ($(this).text().search(' ,-') != -1) {
			$(this).parent().parent().hide();
		}
	});
	
	$('.div-248 p').each(function() {
		if ($(this).text().search(' ,-') != -1) {
			$(this).hide();	
		}
	});
	
	$(".div-341 a").each(function() {
		$(this).attr({'href':$(".div-341 a").attr('href').replace(", "," ")});
	});
});
