window.addEvent('domready', function() {
	if ($('liveContent')) {
		var links = $$(".news_links");
		var contents = $$(".hiddenContent");
		var bin = $('liveContent');
		//Set this to the ID of the DIV with the default content for page load
		bin.setHTML($('personal').innerHTML);
		//Set Default 'active' link
		links[0].addClass('active');

		var myStyle = new Fx.Style(bin, 'opacity', {duration:750});

		links.each(function(link, i) {
			link.addEvent('click', function(e) {
				new Event(e).stop();
				myStyle.start(0);
				(function() {
					bin.setHTML(contents[i].innerHTML);
					myStyle.start(1);
				}).delay(800);

				links.each(function(other, j) {
					if (other.hasClass('active')) {
						other.removeClass('active');
					}
				});

				link.addClass('active');
			});
		});	
	}
});