I'm not sure if I understood your needs properly or not, still tried to help you . see the below link if your needs are satisfied or not..
//Colour Settings Menu//
var clicked1 = false;
$("#coloursettings").click(function () {
if (clicked) {
return;
}
$("#colourselect").toggle();
$(".content, .tab").toggleClass('blur');
if (clicked1) {
//$("#tab a").unbind("click", foo);
clicked1 = false;
} else {
//$("#tab a").click(foo);
clicked1 = true;
}
});
//Power Menu//
var clicked = false;
$("#powersettings").click(function () {
if (clicked1) {
return;
}
$("#powermenu").toggle();
$(".content, .tab").toggleClass('blur');
if (clicked) {
//$("#tab a").unbind("click", foo);
clicked = false;
} else {
//$("#tab a").click(foo);
clicked = true;
}
});
//foo
function foo(e) {
if(clicked || clicked1)
{
return;
}
hideContentDivs();
var tmp_div = $(this).parent().index();
$('.main #content').eq(tmp_div).fadeIn(1000);
}