$(document).ready(function(){
	$('div.hidable').hide();  	
    $('li.link').click(function() { // When an item is clicked
    	var id = $(this).attr('rel'); // Retrieve its content ID
        var showing = $(id).is(':visible'); // Remember if that content was already visible
        $('div.hidable').slideUp('fast'); // Hide them all
        $('.curve').css("background-color","transparent");
        
        if (!showing) { // If it wasn't visible
        	$(id).slideDown('slow'); // Show it
            $('.curve').css("background-color","white");
        }
   	});
});

$(document).ready(function(){
	$("div.hidable").hide(); 
	$("li.link a.kingfisher").click(function(){	
		$(this).toggleClass("active").next();
		$('li.link a.dsm').removeClass("active").next();
	});
});
		
$(document).ready(function(){
	$("div.hidable").hide(); 
	$("li.link a.dsm").click(function(){	
		$(this).toggleClass("active").next();
		$('li.link a.kingfisher').removeClass("active").next();
	});
});
