var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; };
if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } }
{
  let window = _____WB$wombat$assign$function_____("window");
  let self = _____WB$wombat$assign$function_____("self");
  let document = _____WB$wombat$assign$function_____("document");
  let location = _____WB$wombat$assign$function_____("location");
  //let top = _____WB$wombat$assign$function_____("top");
  let parent = _____WB$wombat$assign$function_____("parent");
  let frames = _____WB$wombat$assign$function_____("frames");
  let opener = _____WB$wombat$assign$function_____("opener");

$(function(){

    function buildLenta(){

        var lenta ='<div class="lenta"><ul class="line line1 clearfix">',

            lineLength = letters.length / 2;

        for (var i = 0; i < letters.length; i++)
            {
                var idNum = i + 1,

                    sender = (letters[i].sender != '')? 'от ' + letters[i].sender : '',

                    region = (letters[i].region != '') ? ', ' + letters[i].region : '',

                    namePatronymic = (letters[i].name_patronymic != '') ? letters[i].name_patronymic : '<span class="ghost-name">0</span>';

                    if (letters[i].region == '')
                        {
                            region = '';
                        }

                    else if (letters[i].sender != '')
                        {
                            region = ', ' + letters[i].region;
                        }

                    else
                        {
                            region = letters[i].region;
                        }


                    letter = '<li class="letter" id="l' + idNum + '"><div class="letter-inner"><a href="letters.php#letter' + idNum + '"><img class="letter-bg" src="img/tile/' + idNum + '.jpg" /><div class="letter-text-block"><div class="addressee"><span class="surname">' + letters[i].surname + '</span><span class="name-patronymic">' + namePatronymic + '</span></div><div class="sender">' + sender + region + '</div></div><div class="letter-overlay"></div></a></div></li>';

                if ( idNum == lineLength )
                    {
                        lenta = lenta + letter + '</ul><ul class="line line2 clearfix">';
                    }

                else
                    {
                        lenta = lenta + letter;
                    }
            }

        lenta = lenta +'</ul></div>';

        $('.content').append(lenta);

    }

    buildLenta();
	
	$('.lenta').waitForImages(function(){
		$('.lenta').frontLetters();
	});
	
	$('.socials').share();
	
	
});


}
/*
     FILE ARCHIVED ON 16:21:54 Jan 19, 2020 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 10:33:46 Nov 16, 2024.
     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
     SECTION 108(a)(3)).
*/
/*
playback timings (ms):
  captures_list: 0.652
  exclusion.robots: 0.022
  exclusion.robots.policy: 0.01
  esindex: 0.012
  cdx.remote: 6.751
  LoadShardBlock: 203.677 (6)
  PetaboxLoader3.datanode: 169.976 (7)
  PetaboxLoader3.resolve: 69.37 (2)
  load_resource: 50.665
*/