window.fbAsyncInit = function() {
        FB.init({
          appId   : '115218098556228',
          session : '{$json}',
          status  : true,
          cookie  : true,
          xfbml   : true 
        });
        FB.Event.subscribe('auth.login', function() {
			//window.location.reload();
			var x = 0;
        });
      };
      (function() {
		var e = document.createElement('script');
        e.src = document.location.protocol + '//connect.facebook.net/cs_CZ/all.js';
        e.async = true;
        document.getElementById('fb-root').appendChild(e);
      }());
