SIV.addHandlers({	

	getPage : function(success, data) {
		
		//$('#newsArchive').fadeOut('normal', function () {
 				//console.log(data.html);
				$('#newsArchive').html(data.html);
				//$('#newsArchive').fadeIn();			
    	//});
	}
});

$(function(){
		
		//used for news archive page
		$("#Pagination").pagination(DataBridge.numItems, {
                    callback: function(p) { 
							  SIV.ajaxCall({
							  url: '/news/ajax/getPage',
							  handler: 'getPage',
							  postData: {'pageNum':p}
							  });		
							  
							  return false;
		
		 			},
                    items_per_page:10 // Show 10 items per page
        });		
		
		 
		//used on latest news page
		 $('.showOtherNews').click(function(ev){
		 	ev.preventDefault();
			$('#otherNewsList').slideToggle();
		 });	
});

//function loadContents(ev){
		//console.log(ev);
	//}
