


// actions taken upon clicking the expand all (collapse all) link
$('#container #expand').click( function() {
        // if link was expand then show and toggle text
        var currHTML = $('#container #expand').html();
		
        if (currHTML.indexOf("plus")>0) {
		
                $('#container .section').slideDown();
                $('#container #expand').html("<img src=\"menu-accordeon/minus.gif\"/>");
        }
        // if link was collapse then hide and toggle text
        else {
                $('#container .section').slideUp();
                $('#container .section').each(function(i){
                    if (i==0) $(this).slideDown();
                });
                $('#container #expand').html("<img src=\"menu-accordeon/plus.gif\"/>");
        }

});

// actions taken upon clicking the expand all (collapse all) link
$('#container2 #expand2').click( function() {
        // if link was expand then show and toggle text
        var currHTML = $('#container2 #expand2').html();
		
        if (currHTML.indexOf("plus")>0) {
		
                $('#container2 .section').slideDown();
                $('#container2 #expand2').html("<img src=\"menu-accordeon/minus.gif\"/>");
        }
        // if link was collapse then hide and toggle text
        else {
                $('#container2 .section').slideUp();
                $('#container2 .section').each(function(i){
                    if (i==0) $(this).slideDown();
                });
                $('#container2 #expand2').html("<img src=\"menu-accordeon/plus.gif\"/>");
        }
});