﻿var tw_language = "swedish";
/* test code
var tw_url = "http://www.centerpartiet.se/";
var tw_toplistUrl = "http://www.centerpartiet.se";*/
var tw_localCss = "/Functions/CommonUnits/Styles/RelatedBlogPosts.css";
var tw_helpFrame;
var tw_postLimit = 5;

var tw_onComplete = function() {
	jQuery(".tw_rss_icon").remove();

	if (jQuery(".tw_item").get().length > 0) {
		jQuery(".tw_reportbutton").attr("src", "/Functions/CommonUnits/Images/report.gif");
		jQuery(".tw_lw_header").append("<a href='javascript:void(0)' class='toogleTwinglyItemsLink' onclick='toogleTwinglyItems()'>" + twing_hide_blogItemsText + "</a>");
		jQuery(".tw_logo").remove();
	}

	toogleTwinglyItems(true);
};

function toogleTwinglyItems(hide) {
	if (hide) {
		jQuery(".tw_list").hide();
		jQuery(".toogleTwinglyItemsLink").text(twing_show_blogItemsText);
	} else {
		jQuery(".tw_list").toggle();
		if (jQuery(".tw_list").is(":visible"))
			jQuery(".toogleTwinglyItemsLink").text(twing_hide_blogItemsText);
		else
			jQuery(".toogleTwinglyItemsLink").text(twing_show_blogItemsText);
	}
}