	$(function(){
    wholetexts = new Array;
    unpack = new Array;
    var newtext = new String;
    limit = 70;

    $(".blog-items .text a").each(function(i){
      wholetexts[i]=$(this).text();

      if($(this).text().length>limit) {
        newtext=$(this).text();
        newtext=newtext.substr(0,limit-1);
        $(this).text(newtext).append("&hellip;");
        unpack[i]="pack";
        $(this).attr("title","Click to display whole message");
        $(this).addClass("unpack");
      };

      this.id = "t" + i;
    });
    $(".blog-items .text a").click(function () {
    idecko=this.id.substr(1,2);
    if(unpack[idecko]=="pack") {
    $(this).text(wholetexts[idecko]);
    unpack[idecko]="unpack";
    $(this).attr("title","Click to hide");
      $(this).removeClass("unpack");
    } else {
    if($(this).text().length>limit) {
        newtext=$(this).text();
        newtext=newtext.substr(0,limit-1);
        $(this).text(newtext).append("&hellip;");
        unpack[idecko]="pack";
        $(this).attr("title","Click to display whole message");
        $(this).addClass("unpack");
      };
    };
    return false;
    });

  });