$(document).ready(function() {	startSlider('#slideImage-1');	setTimeout(		function() { startSlider('#slideImage-2'); },		3000	);	setTimeout(		function() { startSlider('#slideImage-3'); },		6000	);	$('#slideshow_text').cycle(		{ timeout: 4000, cleartype: 1, speed: 1 }	);	$('.datefield').datepicker();	$('.simple-section-nav > ul > li > a').removeAttr('href');		$('img').removeAttr('title');		var nav = $("#sidebar .simple-section-nav");	if (nav.find("ul").html() == "") {		nav.hide();	}		$("#blogentries").insertAfter($("#blogentries + .ingress")).show()		.find(".post").slice(0, 3).show();		highlights = $("#highlights"); // Global	highlights.find(".link_widget").each(function(count) {		$(this).click(function() {			highlight(count); clearInterval(timer); return false;		});	});		highlight(0);	if (highlights.size() != 0) {		var i = 1;		timer = setInterval(function() {			if (i == highlights.find(".link_widget").size()) i = 0;			highlight(i++);		}, 5000);	}			// Make clicking on the comment tabs work	$("#commenttabs_wp").click(function(){				// Hide the fb comments		$("#commenttab_fb_content").addClass("hidetab");				// Show the wp comments		$("#commenttab_wp_content").removeClass("hidetab");		// Change class on the tab so it looks selected		$(this).addClass("activetab");		// Remove the active tab class from the other tab		$("#commenttabs_fb").removeClass("activetab");				return false;			});		$("#commenttabs_fb").click(function(){				// Hide the fb comments		$("#commenttab_wp_content").addClass("hidetab");				// Show the wp comments		$("#commenttab_fb_content").removeClass("hidetab");		// Change class on the tab so it looks selected		$(this).addClass("activetab");		// Remove the active tab class from the other tab		$("#commenttabs_wp").removeClass("activetab");				return false;			});	});function startSlider(id) {	$(id).cycle(		{ timeout: 9000, speed: 2000 }	);}function highlight(n) {	var item = highlights.find(".link_widget").eq(n);	item.addClass("active").animate({ width: 300 }, 250)		.siblings().removeClass("active").animate({ width: 280 }, 250);		// Set the description	highlights.find(".slideshow")		.find(".text")		.html(item.find(".description").html());		// Change link	highlights.find(".slideshow")		.find(".more")		.attr("href", item.find(".title").attr("href"));		// Swap the image	highlights.find(".slideshow")		.find("img")		.attr("src", item.find(".image img").attr("src"));};var addthis_config = {	ui_language : 'sv'}// Twingly// Tell the widget which related result that should be shown.var tw_searchresultName = "678_lundsdomkyrka";var tw_language = "swedish";
