$(document).ready(function(){
	$("#newsPage1").click(function(event){
		$("#accueilNews").fadeOut('fast');
		$.ajax({
			url: '/modules/news/ajaxPagesNews.php',
			async: false,
			cache: false,
			type: "GET",
     		data: ({page : '0'}),
			success: function(data) {
				$('#accueilNews').html(data);
			}
		});
		$("#accueilNews").fadeIn('fast');
		return false;
	});
	$("#newsPage2").click(function(event){
		$("#accueilNews").fadeOut('fast');
		$.ajax({
			url: '/modules/news/ajaxPagesNews.php',
			async: false,
			cache: false,
			type: "GET",
     		data: ({page : '1'}),
			success: function(data) {
				
				$('#accueilNews').html(data);
				
			}
		});
		$("#accueilNews").fadeIn('fast');
		return false;
	});
	$("#newsPage3").click(function(event){
		$("#accueilNews").fadeOut('fast');
		$.ajax({
			url: '/modules/news/ajaxPagesNews.php',
			async: false,
			cache: false,
			type: "GET",
     		data: ({page : '2'}),
			success: function(data) {
				$('#accueilNews').html(data);
			}
		});
		$("#accueilNews").fadeIn('fast');
		return false;
	});
	
	<!-- twitter -->
	$("#showTweetsPage2_1").click(function(event){
		event.preventDefault();
		$("#tweetsPage1").fadeOut('fast');
		setTimeout(function() {$("#tweetsPage2").fadeIn('fast')},200);
	});
	$("#showTweetsPage3_1").click(function(event){
		event.preventDefault();
		$("#tweetsPage1").fadeOut('fast');
		setTimeout(function() {$("#tweetsPage3").fadeIn('fast')},200);
	});
	
	$("#showTweetsPage1_2").click(function(event){
		event.preventDefault();
		$("#tweetsPage2").fadeOut('fast');
		setTimeout(function() {$("#tweetsPage1").fadeIn('fast')},200);
	});
	$("#showTweetsPage3_2").click(function(event){
		event.preventDefault();
		$("#tweetsPage2").fadeOut('fast');
		setTimeout(function() {$("#tweetsPage3").fadeIn('fast')},200);
	});
	
	$("#showTweetsPage1_3").click(function(event){
		event.preventDefault();
		$("#tweetsPage3").fadeOut('fast');
		setTimeout(function() {$("#tweetsPage1").fadeIn('fast')},200);
	});
	$("#showTweetsPage2_3").click(function(event){
		event.preventDefault();
		$("#tweetsPage3").fadeOut('fast');
		setTimeout(function() {$("#tweetsPage2").fadeIn('fast')},200);
	});
});

