	

$(document).ready(function() {

	$("a#active1").addClass('active');

	$("a#active1").click(function(){
		$('#navigation a').removeClass('active');
		$(this).addClass('active');
		refreshContent();

	})
	

	$("a#active2").click(function(){
		$('#navigation a').removeClass('active');
		$(this).addClass('active');
		refreshContent2();

	})
	
	$("a#active3").click(function(){
		$('#navigation a').removeClass('active');
		$(this).addClass('active');
		refreshContent3();

	})
	
	$("a#active4").click(function(){
		$('#navigation a').removeClass('active');
		$(this).addClass('active');
		refreshContent4();

	})
	
	$("a#active5").click(function(){
		$('#navigation a').removeClass('active');
		$(this).addClass('active');
		refreshContent5();

	})
	
	$("a#active6").click(function(){
		$('#navigation a').removeClass('active');
		$(this).addClass('active');
		refreshContent6();

	})

});

function refreshContent() {
  	$("#content").fadeOut("fast", function(){
		$('#content-holder').animate({	width:'300px',
										opacity:'0.8',
									});
		$('#content').animate({	width:'300px',
										opacity:'0.8',
							});
    $("#content").load("getarticle.php?pageid=14",false, function() {
      $("#content").fadeIn("0");
    });
  })

  return false;
}

function refreshContent2() {
  	$("#content").fadeOut("fast", function(){
		$('#content-holder').animate({	width:'300px',
										opacity:'0.8',
									});
		$('#content').animate({	width:'300px',
										opacity:'0.8',
							});
    $("#content").load("getarticle.php?pageid=8",false, function() {
      $("#content").fadeIn("fast");
    });
  })

  return false;
}

function refreshContent3() {
  $("#content").fadeOut("fast", function(){
	$('#content-holder').animate({	width:'300px',
									opacity:'0.8',
								});
	$('#content').animate({	width:'300px',
									opacity:'0.8',
						});
    $("#content").load("getarticle.php?pageid=18",false, function() {
      $("#content").fadeIn("fast");
    });
  })

  return false;
}


/*function refreshContent4() {
  $("#content").fadeOut("0", function(){
	$('#content-holder').animate({	width:'848px',
									opacity: '1',
								});
	$('#content').animate({	width:'848px',
						 	opacity:'1',
						});
    $("#content").load("getarticle.php?pageid=20",false, function() {
      $("#content").fadeIn("fast");
    });
  })

  return false;

}*/

function refreshContent5() {
  	$("#content").fadeOut("fast", function(){
		$('#content-holder').animate({	width:'300px',
										opacity:'0.8',
									});
		$('#content').animate({	width:'300px',
										opacity:'0.8',
							});	
    $("#content").load("getarticle.php?pageid=22",false, function() {
	
      $("#content").fadeIn("fast");
    });
  })

  return false;
}

function refreshContent6() {
  	$("#content").fadeOut("fast", function(){
		$('#content-holder').animate({	width:'300px',
										opacity:'0.8',
									});
		$('#content').animate({	width:'300px',
										opacity:'0.8',
							});
    $("#content").load("getarticle.php?pageid=24",false, function() {
      $("#content").fadeIn("fast");
    });
  })

  return false;
}



