jQuery.fn.fadeToggle = function(speed, easing, callback) {
  return this.animate({opacity: 'toggle'}, speed, easing, callback); 
};

jQuery(document).ready(function() {
	
	$("#ifStudent, .newsIndex").hide();
	
	$("li.boardList").find("p:last").css({ 'margin': '0' });

	$("#yesStudent").bind("click", function() {
		$("#ifStudent").fadeIn(300);
		$(this).unbind("click");
	});

	$("#noStudent").bind("click", function() {
		$("#ifStudent").hide();
		$("#yesStudent").bind("click", function() {
			$("#ifStudent").show();
		});
	});

	//$(".sidebar").find("ul.list").corner("bl");

	/*$("span.date").hide();
	$("span.title").hover(function() {
		$(this).find("span.date").fadeIn(300);
	}, function() {
		$(this).find("span.date").fadeOut(300);
	});*/


	/* Custom fonts
	------------------------------------------------------------*/
	Cufon.replace("h1", {
		color: '-linear-gradient(#3152b6, #253e86)'
	});

	Cufon.replace("h2, legend", {
		color: '-linear-gradient(#3152b6, #253e86)'
	});

	/*$("#navigation li a").hover(function() {
		$(this).animate({ 
				marginLeft: '5px'
		 },200);
	}, function() {
		$(this).animate({ 
				marginLeft: '0px'
		 },200);
	});*/
	

	/* Banner
	------------------------------------------------------------*/
	$(".slide").hide();
	$(".slide").fadeIn(1400);
	
	
	/* About - Boardmembers
	------------------------------------------------------------*/
	$(".memberBio").hide();
	/*$("img.pplImg").width(100).height(100);
	$(".boardMember").bind("click", function() {
		$(this).find(".memberBio").slideToggle(600);
	});*/
	
	
	/* Jobs
	------------------------------------------------------------*/
	/*$("img.plus-person, img.alter-ego").hide();
	
	$(".person").hover(function() {
		$(this).stop().find("img.plus-person, img.alter-ego").fadeIn(300);
	},function() {
		$(this).stop().find("img.plus-person, img.alter-ego").fadeOut(300);
	});*/
	
	$("table.scheme").find("tr:even").css({ backgroundColor: '#efede4' });

});