$(document).ready(function(){
	$("div#content").fadeIn("slow");

	$("a.menulink").live("click", function(event) {
		event.preventDefault();
		
		$("a.menulink").css('color','#000000')
		               .css('font-weight','100')
		               .removeClass("linkactiv");
		
		$(this).css('color','#690000')
		       .css('font-weight','bold');	
	
		var link = $(this).attr("href");
		
		$("div#content").fadeOut("slow", function(event){
			
			$("div#content").load("content.php"+link, { ajax: 'true' }, function(event){
				$("div#content").fadeIn("slow");
			});
			
		});
	});
	$("a.internlink").live("click", function(event) {
		event.preventDefault();
		
		var mlink = $(this).attr("rel");
		
		$("a.menulink").css('color','#000000')
		               .css('font-weight','100');
					   
		$("a."+mlink).css('color','#690000')
		             .css('font-weight','bold')
					 .removeClass("linkactiv");	
		
		var link = $(this).attr("href");
		
		$("div#content").fadeOut("slow", function(event){
			$("div#content").load("content.php"+link, { ajax: 'true' }, function(event){
				$("div#content").fadeIn("slow");
			});
			
		});
	});
});
