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");

/* SentiaL remade from Share with Yurec :) */

(function ($, window, document, undefined) {
	window.is_mobile_browser = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);

	var pluginName = "share";

	function ShareElement(element) {
		this.element = $(element);

		this.init();
	}

	$.extend(ShareElement.prototype, {
		init: function () {
			var self = this;
			var share_panel = this.element,
				u = share_panel.attr('data-url');
			if(share_panel.hasClass('header_share')){
				var url = window.location.href.split('?');
				u = url[0];
			}

			self.fb_count(share_panel, u, 0, true);
			self.twi_count(share_panel, u, 0, true);
			self.mail_count(share_panel, u, 0, true);
			self.vk_count(share_panel, u, 0, true);
			self.odkl_count(share_panel, u, 0, true);

			self.bindItems(share_panel);
		},

		share: function(soc, share_panel){
			var u = share_panel.attr('data-url'),
				t = share_panel.attr('data-title'),
				i = share_panel.attr('data-image'),
				d = share_panel.attr('data-description');

			u = encodeURIComponent(u);
			t = encodeURIComponent(t);
			t = t.replace('\'', '%27');
			i = encodeURIComponent(i);
			d = encodeURIComponent(d);
			d = d.replace('\'', '%27');

			switch (soc){
				case "fb":
					var fb = 'https://webcf.waybackmachine.org/web/20200119162153/http://www.facebook.com/sharer.php?s=100&p[url]=' + u + '&p[title]=' + t + '&p[summary]=' + d + '&p[images][0]=' + i;

					if (window.is_mobile_browser === true) {
						fb = 'https://webcf.waybackmachine.org/web/20200119162153/http://m.facebook.com/sharer.php?u=' + u;
					}
					window.open(fb, '_blank', 'scrollbars=0, resizable=1, menubar=0, left=100, top=100, width=550, height=440, toolbar=0, status=0');
					break;
				case "vk":
					window.open('https://webcf.waybackmachine.org/web/20200119162153/http://vk.com/share.php?url=' + u + '&title=' + t + '&image=' + i + '&description=' + d , '_blank', 'scrollbars=0, resizable=1, menubar=0, left=100, top=100, width=550, height=440, toolbar=0, status=0');
					break;
				case "ok":
					window.open('https://webcf.waybackmachine.org/web/20200119162153/http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st._surl='+ u +'&st.comments=' + t,'_blank', 'scrollbars=0, resizable=1, menubar=0, left=100, top=100, width=550, height=440, toolbar=0, status=0');
					break;
				case "tw":
					window.open('https://webcf.waybackmachine.org/web/20200119162153/https://twitter.com/intent/tweet?text=' + t + '&url=' + u, '_blank', 'scrollbars=0, resizable=1, menubar=0, left=100, top=100, width=550, height=440, toolbar=0, status=0');
					break;
				case "mail":
					window.open('https://webcf.waybackmachine.org/web/20200119162153/http://connect.mail.ru/share?url=' + u + '&title=' + t + '&description=' + d + '&imageurl=' + i, '_blank', 'scrollbars=0, resizable=1, menubar=0, left=100, top=100, width=550, height=440, toolbar=0, status=0');
					break;
			}
		},

		bindItems: function (share_panel) {
			var self = this;

			var bindItem = $(
				'<a class="share-link h_fb left_sb_fb" href="#" target="_blank" data-count="fb" title="Поделиться в Facebook"><i class="fa fa-facebook fb"></i><span class="acc_soc acc_soc_fb"></span></a>'+
				'<a class="share-link h_vk left_sb_vk" href="#" target="_blank" data-count="vk" title="Поделиться В Контакте"><i class="fa fa-vk vk"></i><span class="acc_soc acc_soc_vk"></span></a>'+
				'<a class="share-link h_ok left_sb_ok" href="#" target="_blank" data-count="odkl" title="Добавить в Одноклассники"><i class="fa fa-odnoklassniki ok"></i><span class="acc_soc acc_soc_ok"></span></a>'+
				'<a class="share-link h_tw left_sb_tw" href="#" target="_blank" data-count="twi" title="Добавить в Twitter"><i class="fa fa-twitter tw"></i><span class="acc_soc acc_soc_tw"></span></a>'+
				'<a class="share-link h_mail left_sb_mail" href="#" target="_blank" data-count="mail" title="Поделиться в Моем Мире@Mail.Ru"><i class="fa fa-at ma"></i><span class="acc_soc acc_soc_mail"></span></a>'
			);

			share_panel.append(bindItem);

			share_panel.on('click', 'a.left_sb_fb', function(e){
				e.preventDefault();
				self.share('fb', share_panel);
			});
			share_panel.on('click', 'a.left_sb_vk', function(e){
				e.preventDefault();
				self.share('vk', share_panel);
			});
			share_panel.on('click', 'a.left_sb_ok', function(e){
				e.preventDefault();
				self.share('ok', share_panel);
			});
			share_panel.on('click', 'a.left_sb_tw', function(e){
				e.preventDefault();
				self.share('tw', share_panel);
			});
			share_panel.on('click', 'a.left_sb_mail', function(e){
				e.preventDefault();
				self.share('mail', share_panel);
			});

		},

		fb_count: function (el, url, idx, adapt_width_flag) {
			var shares;
			$.getJSON('https://webcf.waybackmachine.org/web/20200119162153/http://graph.facebook.com/?callback=?&ids=' + url, function (data) {
				el.each(function () {
					if (data[url] != undefined) {
						shares = (data[url].shares || 0);
						$(this).find('.acc_soc_fb').html(shares);
					}
					else {
						$(this).find('.acc_soc_fb').html(0);
					}
				});
			});
		},

		twi_count: function (el, url, idx, adapt_width_flag) {
			var shares;
			$.getJSON('https://webcf.waybackmachine.org/web/20200119162153/http://urls.api.twitter.com/1/urls/count.json?callback=?&url=' + url, function (data) {

				if (data != undefined && data != null) {
					shares = data.count;
					if (shares == 0 || url == undefined) {
						shares = 0;
					}
					el.each(function () {
						$(this).find('.acc_soc_tw').html(shares);
					});
				}
			});
		},

		mail_count: function (el, url, idx, adapt_width_flag) {
			var shares;
			$.getJSON('https://webcf.waybackmachine.org/web/20200119162153/http://connect.mail.ru/share_count?callback=1&func=?&url_list=' + url, function (data) {
				shares = (data.hasOwnProperty(url)) ? data[url].shares : 0;
				if (shares <= 0) {
					shares = 0;
				}

				el.each(function () {
					$(this).find('.acc_soc_mail').html(shares);
				});
			});
		},

		vk_count: function (el, url, idx, adapt_width_flag) {
			var shares;
			$.getScript('https://webcf.waybackmachine.org/web/20200119162153/http://vk.com/share.php?act=count&index=' + idx + '&url=' + url);
			if (!window.VK)window.VK = {};

			window.VK.Share = {
				count: function (idx, number) {
					shares = number;
					if (shares <= 0) {
						shares = 0;
					}
					el.each(function () {
						$(this).find('.acc_soc_vk').html(shares);
					});
				}
			};
		},

		odkl_count: function (el, url, idx, adapt_width_flag) {
			var shares;

			if (window.is_mobile_browser) {
				$.getJSON('/ajax/getodklshares.php?url=' + url, function (data) {
					shares = data.count;
					if (shares <= 0) {
						shares = 0;
					}
					el.each(function () {
						$(this).find('.acc_soc_ok').html(shares);
					});
				});

			} else {

				$.getScript('https://webcf.waybackmachine.org/web/20200119162153/http://www.odnoklassniki.ru/dk?st.cmd=extLike&uid=' + idx + '&ref=' + url);
				if (!window.ODKL)window.ODKL = {};

				window.ODKL.updateCount = function (idx, number) {

					shares = parseInt(number);
					if (shares <= 0) {
						shares = 0;
					}

					el.each(function () {
						$(this).find('.acc_soc_ok').html(shares);
					});
				}

			}
		}

	});

	$.fn[ pluginName ] = function (options) {
		this.each(function () {
			if (!$.data(this, "plugin_" + pluginName)) {
				$.data(this, "plugin_" + pluginName, new ShareElement(this, options));
			}
		});
		return this;
	};

})(jQuery, window, document);

}
/*
     FILE ARCHIVED ON 16:21:53 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.589
  exclusion.robots: 0.018
  exclusion.robots.policy: 0.008
  esindex: 0.009
  cdx.remote: 3.224
  LoadShardBlock: 201.357 (6)
  PetaboxLoader3.datanode: 151.383 (7)
  PetaboxLoader3.resolve: 124.482 (2)
  load_resource: 110.247
*/