function newsPagination() {
	
	$(".newsPaginator a").click(function() {
	    var href = $(this).attr('href');  
	    var postData = $('form').serialize();      
	    
	    $.ajax({
	        
	        type: "POST",
	        url: href,
	        data: postData,
	        async: true,    
	              
	        success: function(msg) {         
	          $('#newsAjaxWrap').html(msg);
	          $(".newsContentBox:first").css("padding-top","0px");
	          newsPagination();
	        },
	        
	        error: function (msg) {               
	        }
	        
	      });
	    return false
	}); 
}

$(document).ready(function(){
	
	/*$("#content").css("opacity","1");*/
	/*$(function(){ 
		  
		 var settings = {
		          tl: { radius: 5 },
		          tr: { radius: 5 },
		          bl: { radius: 5 },
		          br: { radius: 5 },
		          antiAlias: true,
		          autoPad: true,
		          validTags: ["div"]
		      }


		  //$('#menu').corner(settings);
		  
	});*/
	
	$("#menu1 li a:last").css("border-bottom","1px solid #617154");
	$(".odkazy a:last").css("border-bottom","1px solid #617154");

	$(".newsContentBox:first").css("padding-top","0px");
	$("#content").pngFix();
	
  newsPagination();
  
  if($(".imageViewListImages").length > 0) {
	  $("a[rel^='prettyPhoto']").prettyPhoto();
  }


});