/**
 * @author Marleen
 */
$(function(){// hide all links except for the first
$('ul.child:not(:first)').hide();
$("a.slide:first").css("background-color","#BBB7B4");
// for image
// $("a.slide:first").css("background-image","url('path')");
$('ul.parent a.slide').click(function(){
$('ul.parent a.slide').css("background-color","#BBB7B4");
$('ul.parent a.slide').hover(function(){
$(this).css("background-color","#FF0000");
});
$('ul.parent a.slide').mouseout(function(){
$(this).css("background-color","#BBB7B4");
});
$(this).mouseout(function(){
$(this).css("background-color","#FF0000");
});
$(this).css("background-color","#FF0000");
// slide all up
$('ul.child').slideUp('slow');
// show the links of current heading
$(this).next().find('a').show();
// slide down current heading
$(this).next().slideDown('fast');
// prevent default action
return false;
});
});

