$(document).ready(function(){
	$("#nav li").hover(function(){
		$(this).fadeTo("slow", 0.5);
			},function(){
				$(this).fadeTo("slow", 1.0);
			});
	});

$(document).ready(function(){
	$(".disclist a").click(function(){
		$("#right_col").hide();
			var id = $(this).attr("id");
				$.ajax({
					url: 'getdisc.php',
					type: 'GET',
					data: 'q=' + id.substr(1),
					dataType: 'html',
					error: function(objAJAXRequest, strError){
						alert('Error loading info - ' + strError);
					},
				success: function(html){
					$("#right_col").empty();
						$("#right_col").append(html);
							$("#right_col").show("slow");
				}
			});
		});
	});

$(document).ready(function(){
	$(".projlist a").click(function(){
		$("#right_col_wide").hide();
			var id = $(this).attr("id");
				$.ajax({
					url: 'getproj.php',
					type: 'GET',
					data: 'q=' + id,
					dataType: 'html',
					error: function(objAJAXRequest, strError){
						alert('Error loading info - ' + strError);
					},
				success: function(html){
					$("#right_col_wide").empty();
						$("#right_col_wide").append(html);
							$("#right_col_wide").show("slow");
				}
			});
		});
	});


$(function(){
    $('.fadein img:gt(0)').hide();
    setInterval(function(){
      $('.fadein :first-child').fadeOut(1000)
         .next('img').fadeIn(1000)
         .end().appendTo('.fadein');}, 
      3000);
});

