$(document).ready(function(){
	
	$('#newslist').load('/uk/importer.php #content',function(){	
	$('#wrapper').evtpaginate({perPage:3});
	var wrap = $('#wrapper');				
				$('.action').click(function(){
					var action = $(this).attr('rel'); // get the appropriate action from the rel attribute
					wrap.trigger(action+'.evtpaginate');
					return false;
				});	
				// listen out for events triggered by the plugin to update the counter
				wrap.bind( 'initialized.evtpaginate', function(e, startnum, totalnum ){
					$('#count2').text(startnum);
					$('#total2').text(totalnum);
				}); 
				wrap.bind( 'finished.evtpaginate', function(e, num, isFirst, isLast ){ $('#count2').text(num); } ); 
				
				wrap.evtpaginate({perPage:3, atEnd:'loop'}); // call the plugin!	

			});	

	$('#eventslist').load('/uk/imp_ev.php #content',function(){	
		
	$('#wrapper2').evtpaginate({perPage:8})
				var wrap2 = $('#wrapper2');				
				$('.action2').click(function(){
					var action2 = $(this).attr('rel'); // get the appropriate action from the rel attribute
					wrap2.trigger(action2+'.evtpaginate');
					return false;
				});	
				// listen out for events triggered by the plugin to update the counter
				wrap2.bind( 'initialized.evtpaginate', function(e, startnum, totalnum ){
					$('#count3').text(startnum);
					$('#total3').text(totalnum);
				}); 
				wrap2.bind( 'finished.evtpaginate', function(e, num, isFirst, isLast ){ $('#count3').text(num); } ); 
				wrap2.evtpaginate({perPage:8, atEnd:'loop'}); // call the plugin!	//
			});	
			
			$('#articlelist').load('/uk/imp_inthenews.php #content',function(){	
		
	$('#wrapper2').evtpaginate({perPage:8})
				var wrap3 = $('#wrapper3');				
				$('.action3').click(function(){
					var action3 = $(this).attr('rel'); // get the appropriate action from the rel attribute
					wrap3.trigger(action3+'.evtpaginate');
					return false;
				});	
				// listen out for events triggered by the plugin to update the counter
				wrap3.bind( 'initialized.evtpaginate', function(e, startnum, totalnum ){
					$('#count4').text(startnum);
					$('#total4').text(totalnum);
				}); 
				wrap3.bind( 'finished.evtpaginate', function(e, num, isFirst, isLast ){ $('#count4').text(num); } ); 
				wrap3.evtpaginate({perPage:2, atEnd:'loop'}); // call the plugin!	//
			});	

	 

		});				




  