jQuery.fn.fadeToggle = function(speed, easing, callback) { 
   return this.animate({opacity: 'toggle'}, speed, easing, callback); 
};

$(document).ready(function() {
	/*$('#navdrop').corner("6px");*/
	$("a.menu-button").click(function() {
		$('#navdrop').fadeToggle();
	});
	$('#navdrop').mouseleave(function(){
		$('#navdrop').fadeToggle();
	});
	//slide functions
	$(".slidebio").click(function()
	{
		$(".artistbio").slideUp(600);
		$(".slidebio").each(function (i) {
			if (this.style.color != "") {
				this.style.color = "";
			}
		});		
		if ($(this).next(".artistbio").is(':visible')) {
			$(this).style.color = "black";
			$(this).next(".artistbio").slideUp(600);
			
		} else {
			$(this).next(".artistbio").slideToggle(600);
		}
		if ($(this).next(".artistbio").is(':visible')) {
			this.style.color="black";
		}
	});
	$('#navcrumb').corner("6px");
	$('#searchfield').corner("6px");
	$('#tooltip').corner("6px");
   
});
