$(document).ready(function(){
	$(".start-news-text").css("display", "none");
	$(".more-dots").css("display", "inline");
});


function toggleText(id)
{
	var teasertext = $("#news-teasertext-id-"+id).html();

	var display = $("#news-text-id-"+id).css("display");
	
	if(display == "none")
	{	
		$("#news-text-id-"+id).slideDown();
		$("#news-teasertext-id-"+id+" .more-dots").css("display", "none");
	}
	else
	{
		var checkDots = teasertext.substring(teasertext.length -10, teasertext.length);

		if($("#news-text-id-"+id).length > 0)
		{
			//$("#news-teasertext-id-"+id).html(teasertext + "...</span>");
			$("#news-teasertext-id-"+id+" .more-dots").css("display", "inline");
		}

		$("#news-text-id-"+id).slideUp();
	}
}