$("a.ajax").live("click", function (event) {
    event.preventDefault();
    $.get($(this).attr('href'));
    //$.address.value($(this).attr('href'));  
});
$.address.change(function(event) {
    //$.get(event.value);
});  
jQuery.nette.updateSnippet = function (id, html) {
    if(id != 'snippet--menu' && id != 'snippet--sideMenu' && id != 'snippet-imageGallery-gallery') {
	   /* $("body").css({"overflow": "hidden"});
	    $("html").css({"overflow": "hidden"});*/
        $("#" + id).animate({
            "left": "-500px",
            "opacity": 0
          }, 500, function() {
            $(this).html(html);
            $("#" + id).css({
                "left": "500px",
                "opacity": 0
            });
            $("#" + id).animate({
                "left": "0px",
                "opacity": 1
              }, 500, function() {
		   /*   $("body").css({"overflow": "visible"});
	  $("html").css({"overflow": "visible"});*/
	      });
          });
	  
    } else {
        $("#" + id).html(html);
    }
};


