﻿var _711 = {
	language: $.cookie('__711_language')
};


function jsSwitchLang(lg) {
	$.getJSON('/services/process.aspx', 'lg=' + lg, function (d) {
		window.location.reload();
	});
}


function jsLoadFBLikeBtn(container) {
	var u = document.location.href;
	var h = document.location.hash;
	u = u.indexOf(h) > 0 ? u.substring(0, u.indexOf(h)) : u;

	h = h.indexOf("#!&") == 0 ? h.substring(3) : h.substring(1);
	u = u + "?_escaped_fragment_=" + escape(h);

	try { console.log(u); } catch (e) { }

	setTimeout(function () {
		var like = $("<fb:like show_faces='false' data-href='" + u + "' stream='false' header='false' width='0' send='false' layout='button_count'></fb:like>");
		if (!u) u = window.location.href;
		$(like).attr("href", u);
		$(container).empty().append(like);
		FB.XFBML.parse($(container).get(0));
	}, 200);
}

